OP-Proxy
PricingBlogResellerAPI
Dashboard
← Blog
Setup·August 13, 2026·4 min read

Proxy authentication by IP or by login: when to use which

A proxy has two ways to recognise a client: a login and password pair, or the address the connection came from. The choice is usually framed as convenience, yet in half of all scenarios only one of the two actually works.

In this article

  • How it looks from the proxy's side
  • When a whitelist is the only option
  • When a login is safer
  • Both schemes at once is a working configuration
  • Whitelist risks worth knowing
  • Diagnosis: which scheme actually worked
  • What the target site sees

How it looks from the proxy's side

With login authentication the client passes credentials in the connection itself and the proxy checks them against the plan. With address authentication there is nothing to pass: the proxy looks at which IP the connection came from and searches for it in the allowed list. Every further difference follows from that.

bash
# Login authentication: credentials in the connection string
curl -sI -x http://LOGIN:PASSWORD@GATEWAY:PORT https://example.com | head -1

# IP authentication: the same string without credentials.
# Works only if this machine's address is in the whitelist.
curl -sI -x http://GATEWAY:PORT https://example.com | head -1

# Which external address this machine has — that is what goes in the whitelist
curl -s https://op-proxy.com/api/check

When a whitelist is the only option

A whole class of programs accepts only an address and a port, with no credentials field in the interface. Headless browsers are a separate story: Chromium ignores credentials passed in the launch argument and shows a native authentication dialog instead, which the driver will not fill in.

  • Software with fields for host and port only.
  • Puppeteer and other Chromium wrappers, where credentials need a separate call.
  • Scheduled runs, where you would rather not keep a password in a config or environment.

When a login is safer

Exactly the opposite situation: when the machine's address is not fixed. Home and mobile connections almost always hand out a dynamic IP — it changes on reconnect, the whitelist stops matching, and the proxy responds as though the password were wrong.

  • A laptop that moves between networks.
  • An ISP with dynamic addressing.
  • Several people running the work, each from their own address: whitelist slots will not stretch.

Both schemes at once is a working configuration

You do not have to pick one for the whole project. Here login and whitelist are active simultaneously, which maps neatly onto real infrastructure: a server that runs around the clock with a fixed address connects by whitelist without a password, while a developer's laptop and one-off scripts use the login.

A separate benefit is diagnosis. When something stops working, you check the same proxy the other way and immediately know where the problem is — credentials or address.

Whitelist risks worth knowing

  • The address changed — access is gone, and the symptom looks like a wrong password.
  • An entire office can sit behind one external address: allowing it allows anyone on that network.
  • Whitelist slots are limited, and a dozen machines may not fit.
If access disappeared suddenly with no code changes, check your current external address first and compare it with the whitelist. That is the most common cause and the least visible one.

Diagnosis: which scheme actually worked

Both schemes fail similarly, and the symptom does not distinguish them: either way the proxy replies that it did not recognise the client. But you can test them in turn against the same proxy, and the result shows immediately where the problem is.

bash
# Whichever address the proxy sees from your side is the one to whitelist.
# A machine's external address and the address in its network settings almost
# always differ.
curl -s https://op-proxy.com/api/check

# Testing both schemes in turn against the same proxy:
curl -sI -x http://LOGIN:PASSWORD@GATEWAY:PORT https://example.com | head -1  # by login
curl -sI -x http://GATEWAY:PORT               https://example.com | head -1  # by whitelist

# First works, second does not -> the address is not on the list.
# Second works, first does not -> wrong login and password.

The first thing to establish when access disappears is your current external address. It differs from the address in your machine's settings whenever a router or carrier NAT sits between you and the internet, which is nearly always.

What the target site sees

The authentication method does not affect this — the site does not know how you authenticated with the proxy. But there is an adjacent misconception worth clearing up, because people choose protocols and plans on the basis of it.

Proxies have service headers conventionally used to mark a proxied request: the originating client's address, an indication that an intermediary was involved, and a standardised version of the same. Proxies are sometimes graded as transparent, anonymous or elite on that basis.

That grading is industry jargon and appears in no standard. More to the point: over HTTPS it is meaningless, because the proxy cannot add headers inside the tunnel. A leak is only possible over plain http, or through a proxy that decrypts traffic.
  • Working over https — there is physically nowhere to add headers that reveal a proxy.
  • Working over http — check what actually reaches the server with an echo endpoint.
  • Promises of elite proxies for HTTPS work describe a property that changes nothing there.

Both authentication methods on every plan

Whitelist and login work in parallel, with nothing to switch. The number of whitelist slots is chosen in the configurator.

View pricing

Proxies for this job

  • For multi-threaded software
  • Static datacenter IPv4

Check it with our tools

  • My IP address

Read next

  • Automating proxies over the API: whitelist, purchase and renewal from a scriptA PUT to the whitelist replaces the whole list rather than adding to it — that is how people lock themselves out. A walkthrough of our API: the key and its limits, updating an address from cron, purchase and renewal, error codes.
  • Authenticated proxies in Selenium: why every old recipe brokeAcross 2025 Chrome removed four separate things, and each one breaks a different line of the decade-old tutorial. What actually broke, what MV3 did not lose, and four routes that work today.
  • Proxies in Key Collector: why account modules need static addresses, not rotationThe program splits into modules, and the right proxy differs per module. An account pins one address until restart, Google.Ads rejects IPv6 and SOCKS, and the browser handler drops SOCKS entirely.
OP-Proxy
Plans & Information
PricingBlogReseller programAPITerms of ServicePrivacy Policy
Proxies by use case
For parsing and scrapingFor multi-threaded softwareFor marketplacesFor antidetect browsersFor captcha softwareFor SEO and SERP checksRotating IPv6 and IPv4IPv6 proxiesStatic datacenter IPv4
Tools
My IP AddressSpeed TestAnonymity CheckWHOIS LookupDNS Leak TestWebsite Check
ИП Артамонов Анатолий Михайлович ОГРНИП 324700000026212 ИНН 701755408691