v1.10.90-0e025b8
Skip to main content
← Back to Glossary

IP Whitelisting

Security

Definition

IP whitelisting is a security mechanism where a proxy service only accepts connections from pre-approved IP addresses, granting automatic access without username/password credentials.

What is IP Whitelisting?

IP whitelisting is a security mechanism where a proxy service only accepts connections from pre-approved IP addresses. Instead of authenticating with username and password, the user's origin IP is verified against a whitelist, granting automatic access to the proxy.

How Whitelist-Based Authentication Works

The user registers their static IP address (typically their server or home IP) in the proxy provider's dashboard. When a connection request arrives at the proxy gateway, the system checks the source IP against the whitelist. If the source IP matches an authorized entry, the connection is accepted without requiring additional credentials. If it does not match, the connection is rejected. This method requires the user to have a stable, known IP address and to update the whitelist if their IP changes.

In the Hex Proxies dashboard, you add your server's public IP to the whitelist. Afterward, any connection from that IP to gate.hexproxies.com:8080 is automatically authenticated with no credentials needed in the request itself. This simplifies integrations that do not support proxy auth headers.

Benefits and Trade-Offs of Whitelisting

IP whitelisting simplifies proxy authentication by eliminating the need to embed credentials in your code or configurations. It reduces the risk of credential exposure and simplifies integration with tools that do not support proxy authentication natively. Hex Proxies supports IP whitelisting as an alternative authentication method across all proxy products.

Why It Matters for Proxy Users

IP whitelisting eliminates credential management overhead for server-based operations. You never risk exposing proxy passwords in code repositories, configuration files, or logs. However, it requires a static server IP, which is standard for cloud-hosted scrapers but problematic for local development or dynamic infrastructure. Understanding when to use whitelisting versus credential auth helps you choose the most secure and practical authentication method for each deployment scenario.

**Practical example:** A DevOps team deploys a scraping cluster on AWS with a fixed Elastic IP. They whitelist this single IP in the Hex Proxies dashboard. All 20 scraping containers on the cluster automatically authenticate with the proxy gateway without any credentials in their environment variables, Docker images, or code. When a developer accidentally pushes a configuration file to a public repository, no proxy credentials are exposed because the authentication relies entirely on the whitelisted server IP.

The main limitation of IP whitelisting is that it does not work for dynamic infrastructure like auto-scaling groups where server IPs change, or for distributed teams where developers connect from different locations. In these scenarios, credential-based authentication is the practical choice, ideally combined with IP whitelisting where fixed infrastructure exists.

Put Your Knowledge Into Practice

Explore proxy plans optimized for your workflow.