Published: 2025-11-07
A proxy checks who you are in one of two ways: by a login and password that your software sends with every connection, or by your IP address on a whitelist in the provider's dashboard. We ran login-and-password authentication through 20 client setups in Python, Node, curl and three browser engines. The most common failure was a password with @, #, / or ? pasted into a proxy URL without encoding. Provider limits on this page were checked in their documentation in November 2026.
Short answer
✅ Default choice
Login and password
Works from home, 4G, a laptop in a café and a server. The only option for SOCKS5 in most tools.
✅ A server with a fixed IP
IP whitelist
No secret in your code. Also the way to use a proxy in a browser or app that has no password field.
⚠️ Avoid
Whitelisting a home or office IP
It changes, and everyone behind the same address can use your proxy.
How each method works
With a login and password, the proxy first answers your software with code 407, "Proxy Authentication Required". The software repeats the request with a Proxy-Authorization header that carries your login and password in Base64. For an HTTPS site this happens on the very first line, the CONNECT request that opens the tunnel, before any encryption starts. SOCKS5 does the same in its own handshake.

With a whitelist, the proxy sends nothing back. It looks at the address the connection came from, and if that address is on your list, it lets you in. Your software only needs the host and port.
Login and password or IP whitelist
| Login and password | IP whitelist | |
|---|---|---|
| Works when your IP changes | Yes | No, you update the list each time |
| Something that can leak | The password, in code, logs or screenshots | Nothing, but anyone on your IP gets in |
| Browsers and apps without a password field | Need an extension or a workaround | Work with host and port only |
| SOCKS5 | Supported by most tools | Not offered by some providers, see the table below |
| Country and session | Written into the login | Set in the dashboard, by port or host name |
| Several machines | The same login everywhere | Each IP goes on the list |
Which one to use
Home internet or a phone
Login and password. A home IP changes after a router restart or at the provider's will, and on 4G it changes all the time. Many mobile and some home connections also sit behind a shared carrier address (CGNAT), so whitelisting it lets in every subscriber behind that address.

A server or VPS
Either works. A whitelist keeps the password out of your code and logs. Add the server's public IP, the one curl https://ipinfo.io/ip prints on the server without a proxy, not the address of its network card.
A team behind one office IP
Login and password, one sub-user per person where the provider has them. A whitelisted office IP gives the proxy to everyone in the office and to their guests on the Wi-Fi.
An antidetect browser
Login and password, typed into the proxy fields of each profile. Antidetect browsers have their own fields for the login and password, so the browser limits below do not apply to them. See our multi-accounting guide for the full setup.
A phone without an app
On iPhone the Wi-Fi proxy settings have an "Authentication" switch with login and password fields. On Android the Wi-Fi proxy has only host and port, so use a whitelist or a proxy app there.
How providers set up each method
Most providers offer both methods. The details differ, and two of them matter: how many IPs you can whitelist and how you choose a country without a login.
| Provider | Methods | IPs on the whitelist | Country and session with a whitelist |
|---|---|---|---|
| Proxy Seller | Both, on one order | Limited, no number given. IPv6 accepted, ranges not | Set in a proxy list in the dashboard |
| NodeMaven | Both for rotating and mobile, ISP only by login | Not stated | Set in each whitelist entry, the dashboard builds the endpoints |
| Geonix | Both | Not stated | Set in a proxy list in the dashboard |
| IPRoyal | Both for rotating, ISP and datacenter | Not stated | Saved with each whitelist entry |
| Webshare | Both, at the same time | 1 per account, more as a paid add-on | Chosen by port |
| Oxylabs | Both, not mixed on one connection | 10 IPv4 | Written into the host name. No SOCKS5 with a whitelist |
| Decodo | Both | 10, more through support. No IPv6 | Written into the host name |
| Bright Data | Login always, the whitelist is an extra lock | No limit, ranges accepted | Through its Proxy Manager |
| Evomi | Login only | No whitelist | Written into the password |
| Proxy-Cheap | Both for static, rotating and mobile only by login | Not stated, changes once per 30 minutes | Chosen in the dashboard |
None of these providers says how fast a new whitelist entry starts working, and none lists the characters allowed in a proxy password.
NodeMaven sets the country, session type and protocol in the same window where you add the IP, and builds the endpoints for it right away.

Proxy Seller first adds the IP on its own, one IP to one proxy list.

The method is chosen later, when you create a proxy list: "Username & Password" or "By IP".

Which tools accept a proxy password
We ran each tool against our own test proxy that asks for a login and password over HTTP and over SOCKS5.
| Tool | HTTP proxy with password | SOCKS5 with password |
|---|---|---|
| curl | Yes | Yes |
| Python requests | Yes | Yes, with requests[socks] |
| Python httpx | Yes | Yes, with httpx[socks] |
| Python aiohttp | Yes | Yes, with aiohttp-socks |
| Node: undici, axios | Yes | Through socks-proxy-agent |
| Playwright: Chromium, Firefox, WebKit | Yes, in the proxy option | No: "Browser does not support socks5 proxy authentication" |
Chromium with --proxy-server=http://user:pass@… | No: ERR_NO_SUPPORTED_PROXIES | No |
So for a browser with SOCKS5, either whitelist your IP or switch to the provider's HTTP port. Webshare and Proxy Seller's rotating proxies, for example, accept both protocols with the same login.
Special characters in the password
A proxy URL has the shape http://login:password@host:port, so characters that mean something in a URL break it. We set the test proxy to nine passwords and pasted each into every client as is and percent-encoded.
| Character in the password | Pasted as is | Percent-encoded |
|---|---|---|
| : (colon) | Works everywhere | Works everywhere |
| @ | curl fails, Python and Node work | Works everywhere |
| # / ? | Fails in every client | Works everywhere |
| % (percent) | Node undici fails | Works everywhere |
| Space | curl fails | Works everywhere |
| Cyrillic letters | Python requests and aiohttp fail | The same two still fail |
When the password went into a separate field instead of the URL (curl -U, aiohttp proxy_auth, axios auth, Playwright password), every character worked, except Cyrillic in aiohttp. Requests and aiohttp encode the header in Latin-1, so a password with letters outside it never reaches the proxy. Keep proxy passwords to Latin letters and digits, and percent-encode anything else.
Errors and what they mean
| What you see | What it means | What to do |
|---|---|---|
407 Proxy Authentication Required, curl CONNECT tunnel failed, response 407 | The proxy did not accept the login and password, or got none | Copy them again from the dashboard. If you use a whitelist, check that your current IP is on it |
Python InvalidURL: Failed to parse or Invalid port, curl Unsupported proxy syntax | A character in the password broke the URL | Percent-encode the password |
curl User was rejected by the SOCKS5 server | Wrong login or password on a SOCKS5 port | Check them, or the port: some providers use a different port for SOCKS5 |
curl No authentication method was acceptable | The SOCKS5 port wants a password and you sent none | Add the login and password, or whitelist your IP |
| A headless browser hangs on an HTTPS page until the timeout | It waits for a login window that nobody fills | Pass the login and password in the browser's proxy option |
ERR_NO_SUPPORTED_PROXIES in Chromium | The login and password are in the --proxy-server flag | Remove them and use a whitelist, an extension or Playwright |
Who can see your proxy password
Anyone on the network between you and the proxy, on a plain HTTP or SOCKS5 connection. This is what we captured between curl and our test proxy while opening an HTTPS site:
CONNECT auth-test.example:443 HTTP/1.1
Proxy-Authorization: Basic dXNlcjpTM2NyZXQtUGFzcw==
The last line decodes to user:S3cret-Pass with one command. Through SOCKS5 the password went out as plain text. The site itself stays encrypted, only the proxy login is exposed. On public Wi-Fi that is enough for someone to use your traffic.
Connect to the proxy over TLS
Evomi, Oxylabs and Decodo have proxy ports with an encrypted connection to the proxy itself. NodeMaven and Proxy Seller's rotating residential proxies do not offer one.
Use sub-users
NodeMaven, IPRoyal and Webshare let you create separate logins with their own passwords and limits. A leaked login then costs one sub-user, not the whole account.
Keep the password out of the code
Read it from an environment variable, not from a line in a script that ends up in Git or a screenshot. After a leak, change it in the dashboard. At NodeMaven a new password stops every proxy string made with the old one.
Examples to copy
curl, with the password in a separate option so no encoding is needed:
curl -x http://gate.example.com:8080 -U 'login:p@ss#word' https://ipinfo.io/json
Python requests, with the password encoded:
import os, requests
from urllib.parse import quote
pw = quote(os.environ["PROXY_PASS"], safe="")
proxy = f"http://login:{pw}@gate.example.com:8080"
print(requests.get("https://ipinfo.io/json", proxies={"http": proxy, "https": proxy}).text)
Node with undici:
import { ProxyAgent, fetch } from 'undici'
const pw = encodeURIComponent(process.env.PROXY_PASS)
const agent = new ProxyAgent(`http://login:${pw}@gate.example.com:8080`)
console.log(await (await fetch('https://ipinfo.io/json', { dispatcher: agent })).text())
Playwright:
const browser = await chromium.launch({
proxy: { server: 'http://gate.example.com:8080', username: 'login', password: process.env.PROXY_PASS }
})
Providers with both methods
All four have both a login and a whitelist on rotating residential proxies. NodeMaven builds the whitelist endpoints for you, Proxy Seller and Geonix use the same proxy list setup.

How we checked
On 24 November 2026 we ran our own test proxy with HTTP and SOCKS5 on the same machine as the clients: curl 8.5, Python requests, httpx and aiohttp, Node 24 with undici, axios and socks-proxy-agent, and Chromium, Firefox and WebKit through Playwright. Each of nine passwords went into each client as is, percent-encoded and, where the client has one, in a separate field. The capture above was taken on the same machine. Provider rules come from their own documentation, read the same day, and the dashboard screenshots were taken on our accounts.
FAQ
- Which is more secure, IP whitelist or login and password?
- A whitelist has no password to leak, but it trusts everyone behind your IP: an office, a carrier's shared address or a hotel Wi-Fi. A login and password is safer when the IP is not yours alone. On a server with its own fixed IP, a whitelist is the safer choice.
- Why do I get error 407?
- The proxy did not accept your login and password, or your software sent none. Copy them again from the dashboard and percent-encode the password if it has @, #, / or ?. With a whitelist, check that your current IP is on the list.
- Can I use a password with SOCKS5 in Chrome?
- No. In our test Chromium, Firefox and WebKit all refused SOCKS5 with a password. Use the provider's HTTP port with the same login, whitelist your IP or use an antidetect browser, which has its own login fields.
- Can I choose a country with IP authorization?
- Yes, but not in the login. Depending on the provider it is set in the whitelist entry or proxy list in the dashboard (NodeMaven, Proxy Seller, IPRoyal), by port (Webshare) or in the host name (Oxylabs, Decodo).
- How many IPs can I whitelist?
- It depends on the provider: Webshare allows 1 per account by default, Oxylabs and Decodo 10, Bright Data has no limit. Most others do not publish a number.
- Can I use both methods at once?
- Some providers allow it on one account, Proxy Seller and Webshare among them. Oxylabs asks you not to mix them on one connection, and Proxys.io answers 407 when both are sent.
- Is my proxy password encrypted?
- Not on a plain HTTP or SOCKS5 connection. It travels in Base64 or plain text, and the site behind it stays encrypted. Evomi, Oxylabs and Decodo have proxy ports with TLS that hide the login too.


