Glossary

Protocols & authentication

Proxy authentication

How a proxy verifies you are allowed to use it, most commonly by username and password or by allowing specific source IPs.

Proxy authentication is the only thing standing between a paid proxy and an open proxy. Without it, anyone who learns the host and port can use the service, which is precisely how the abandoned endpoints on public proxy lists came to exist. The gate is not a formality; it is the difference between a product and a liability.

There are two mechanisms in general use and they fail in opposite directions. Credentials, a username and password sent when the connection opens, travel with you and work from any network. IP whitelisting authorises by origin instead, accepting connections from addresses you registered in advance and refusing everything else.

Credentials suit anything that moves or scales: a laptop changing networks, containers with ephemeral addresses, cloud jobs with no fixed IP. The cost is that a secret now exists, and secrets end up committed to repositories, printed in logs and pasted into support tickets. Anyone who obtains it can spend your bandwidth from anywhere on earth.

Whitelisting suits a fixed server and eliminates the secret entirely, since nothing is transmitted and there is nothing to leak. The cost is rigidity: the moment your own address changes, a home connection renewing a dynamic IP, a laptop moving to another network, a container getting a new address, access stops until you update the list.

On this network the credential also carries the targeting, which is the part worth understanding because it changes how you configure things. Country, city and session are expressed as modifiers on the username rather than as different hosts, so switching from German to American exits is a credential change with the host and port untouched.

The practical answer for most people is to use both where the provider allows it, and to treat credentials the way you would any other secret: in environment variables rather than in source, rotated if exposed, and never in a repository. A leaked proxy credential is not merely an access problem, it is somebody else's traffic accumulating on addresses whose reputation you depend on.

Frequently asked questions

Which is better, username and password or IP whitelisting?

It depends entirely on whether your own address stays put. A fixed server is well served by whitelisting, which removes the secret altogether. Anything mobile or ephemeral needs credentials, because a whitelist stops matching the moment your address changes. Neither is more secure in the abstract; they fail in different circumstances.

What happens if my proxy credentials leak?

Whoever has them can use your account from anywhere, spending your bandwidth and, more damagingly, attaching their behaviour to addresses whose reputation your work depends on. Rotate the credentials immediately, and add IP whitelisting alongside them if your provider supports both, so a leaked secret alone is not sufficient to use the service.

Why does my proxy username have extra text after it?

Because targeting is usually expressed as modifiers on the username rather than as separate endpoints. Sections specifying country, city or session length are read by the gateway to decide which exit to give you, which is what allows one host and port to serve every location without any reconfiguration on your side.

Can I use proxy authentication in a browser?

Browsers accept proxy credentials, though they typically prompt for them rather than reading them from the address, and some will not accept credentials embedded in a proxy URL at all. For automated browser work an extension or the automation framework's own proxy configuration is more reliable than the operating system's proxy settings.

Back to the full glossary.

HProxy.

Ready when you are.Your dashboard is ten seconds away.

Get Startedor talk to us at support@hproxy.com
HProxy