Proxy Authentication Methods: Username/Password vs IP Allow-List

Proxy authentication is how a proxy decides who is allowed to use it. There are two main methods: a username and password that you send with each connection, or an IP allow-list (often called a whitelist) where the proxy accepts any connection from addresses you have registered. Both work; they suit different situations. Picking the wrong one is behind many “it works on my laptop but not on the server” problems. This guide explains both, shows how to set them up in common tools, and how to fix the error you get when authentication fails.

New to proxies? See what a proxy server is first.

Why proxies need authentication

A proxy without any login is open to anyone who finds it. That is exactly the problem with public free proxies — see free proxy vs paid proxy. A paid proxy needs to know the traffic is yours: so that only you use what you pay for, so your usage is counted to your account, and so nobody else’s activity is mixed into yours.

Method 1: Username and password

Your provider gives you a username and password. Your tool sends them to the proxy with each new connection, in a header called Proxy-Authorization. Most tools let you put them in the proxy address:

http://username:password@proxy-host:port

Think of it like a key card: it works from any building, as long as you carry it.

  • Pros: works from any network, including laptops on the move and servers whose address changes; easy to give different logins to different projects.
  • Cons: some apps cannot send a proxy password (for example, many apps that follow the Windows system proxy); the password must be stored somewhere, and can leak through code, logs or shell history.

Method 2: IP allow-list

You register your own public IP address with the provider. The proxy then accepts any connection that comes from that address, with no password. Think of it like a guest list at the door: if your name is on it, you walk in.

Note it must be your public address — the one websites see — not the private one your computer shows with ipconfig. See public vs private IP address. A quick way to find it:

curl https://api.ipify.org
  • Pros: no password to store or leak; works with apps that cannot send a proxy password; simple to configure — just host and port.
  • Cons: breaks when your public address changes (home connections, mobile data, some cloud servers); everyone behind the same public address — your whole office, or many households on a shared carrier address — can use your proxy too.

Side-by-side comparison

Username and password IP allow-list
What proves it is you Something you send Where you connect from
Works when your network changes Yes No — update the list each time
Works with apps that cannot send a password No Yes
Risk if leaked Anyone with the password can use it Anyone on your network can use it
Best for Scripts, laptops, servers with changing IPs Fixed servers, office networks, system-wide setups

Which one to use

  • Script on your laptop, or on a server whose IP can change → username and password.
  • A server with a fixed public IP → IP allow-list is simpler and keeps passwords out of code.
  • Browser or app set through the Windows system proxy → IP allow-list, because Windows has no password field. See Windows proxy settings.
  • Shared office network you do not fully control → username and password, so not everyone on the network can use your access.

Many providers let you use both — for example the allow-list for your office server and a password for scripts run from laptops.

Settings carried in the username

Many providers, especially for rotating proxies, let you add options to the username itself — for example the country, or a session ID that keeps the same address for a few minutes (a sticky session). The format varies by provider; it might look something like username-country-de-session-abc123. Check your provider’s documentation or client for the exact format. If you change these options, the password stays the same; only the username changes.

This only works with username-and-password login, which is one more reason rotating setups usually use it. For what sticky sessions are, see what a rotating proxy is.

How to set each one up in common tools

Tool Username and password IP allow-list
curl curl -x http://proxy-host:port -U user:pass URL curl -x http://proxy-host:port URL
Python requests "http://user:pass@proxy-host:port" "http://proxy-host:port"
Node.js axios new HttpsProxyAgent("http://user:pass@host:port") new HttpsProxyAgent("http://host:port")
Windows system proxy Not supported in the settings; browsers prompt Host and port only
macOS system proxy “Proxy server requires password” Host and port only
Chrome Prompts for login when needed Works without prompts

Full guides: curl, Python requests, Node.js axios, Mac, Chrome.

If your password contains @, : or #, encode it before putting it in an address (Python urllib.parse.quote, JavaScript encodeURIComponent), or use a separate username/password option where the tool offers one.

Keeping your access safe

  • Keep passwords out of code. Read them from environment variables or a config file excluded from version control.
  • Watch your logs. Verbose output (such as curl -v) can include your login; do not paste it into public forums or tickets.
  • Use separate logins per project where your provider allows it, so you can change one without breaking the others.
  • Keep the allow-list short. Remove addresses you no longer use, and avoid adding shared networks such as cafés or co-working spaces.
  • Change the password if it may have been exposed, and when someone with access leaves the team.

Fixing 407 Proxy Authentication Required

A 407 response means the proxy is reachable but did not accept your authentication. Work through these:

  1. Typo or wrong credentials — copy them again from your provider’s dashboard or client.
  2. Special characters not encoded in the password.
  3. The tool is not sending the login — common with apps that follow the system proxy. Use the allow-list instead, or configure the proxy inside the app.
  4. Allow-list mismatch — your public address changed, or you registered a private address. Check with curl https://api.ipify.org (without the proxy) and update the list.
  5. Wrong format for username options — a mistyped country or session setting can make the whole username invalid.

Authentication with YiluProxy

YiluProxy supports multiple authentication methods, and static residential proxies support IP whitelist authentication. Your connection details and the options available for each line are shown in the client after you sign up. All five lines work over HTTP or SOCKS5: rotating residential, static residential, rotating datacenter, static datacenter and mobile.

Authentication controls who can use the proxy; it does not change any website’s rules. Use your proxy for publicly visible pages and your own assets.

FAQ

Q1. Is IP whitelisting safer than a username and password?

A. Neither is safer in every case. An allow-list has no password to leak, but anyone on your network can use the proxy. A password works anywhere, but must be stored carefully.

Q2. Can I use both methods at once?

A. With many providers, yes — for example the allow-list for a fixed server and a password for laptops.

Q3. Why does my allow-list stop working every few days?

A. Your public IP address is changing, which is common on home and mobile connections. Use username and password for that device instead.

Q4. What does 407 Proxy Authentication Required mean?

A. The proxy received your connection but did not accept the login or your address. Check credentials, encoding, and your current public IP.


Test first, then buy

Try both login methods with a trial proxy and see which fits how you work.

Start a free trial

(This article describes common proxy authentication methods in general; exact options differ between providers. No pool-size, success-rate or performance figures are given. Written November 2026.)

Scroll to Top