Skip to content
EN
Get Started

Proxy Authentication

Proxy authentication checks that your app may use a proxy, usually with a username and password, before the proxy forwards requests.

Table of Contents (8 sections)

How proxy authentication works

When your app connects to a proxy server, the proxy checks its credentials before forwarding traffic. With an HTTP proxy, missing or invalid credentials usually produce:

HTTP/1.1 407 Proxy Authentication Required

The client then retries with a Proxy-Authorization header. With Basic authentication, username:password is Base64-encoded, not encrypted. The proxy consumes this header, so the target website normally doesn’t receive it. When authentication is enabled on a SOCKS5 proxy, it happens during the SOCKS handshake instead of through HTTP headers.

Password authentication vs IP allowlisting

Username and password authentication works from changing networks. IP allowlisting grants access based on the public IP connecting to the proxy.

Method Best fit Main constraint
Username and password Laptops, servers or changing IPs Secret must be stored safely
IP allowlisting Servers with a fixed public IP Fails when the client IP changes

A proxy service can require either method or combine both.

Configure credentials safely

  1. Use the exact endpoint. Copy the host, port, username and password. Proxy credentials are separate from any website login.

  2. Prefer dedicated credential fields. They avoid URL parsing problems. If your app requires a proxy URL, percent-encode characters such as @, : and # inside credentials.

  3. Test one request. Use placeholders rather than putting production secrets in shell history.

    curl --proxy http://HOST:PORT --proxy-user 'USERNAME:PASSWORD' https://example.com/
  4. Protect the secret. Don’t commit credentials to source control or print them in logs. If the service offers a TLS-encrypted proxy endpoint, use it because target-site HTTPS doesn’t encrypt a plaintext client-to-proxy authentication exchange.

A 407 Proxy Authentication Required response means the proxy didn’t receive credentials it accepts.

Proxy authentication on FlashIP

FlashIP rotating residential proxies connect with the supplied host, port, username and password. Static ISP proxies and datacenter proxies also use username and password authentication. Copy the values from the console into your tool’s proxy fields instead of retyping them.

FAQ

Is proxy authentication the same as logging into a website?

No. Proxy authentication gives your app access to the proxy. A website login uses separate credentials, cookies or tokens after the proxy forwards the request.

Why do I get a 407 with the correct proxy password?

The client may not be sending the credentials to the correct host and port. Check its proxy authentication fields, remove accidental spaces and verify how it handles special characters.

Does proxy authentication encrypt or hide my traffic?

No. It controls who may use the proxy. Encryption depends on the connection protocol, while the proxy changes the IP address that the website sees.

Related Terms

View All Terms