Why Headless Chrome Gets Detected Even Behind a Proxy
By the ProxyV4 Engineering Team · Updated:
If headless Chrome is detected even with a proxy, the proxy is usually doing its job: it changed your IP address, but sites that look for automation check the browser and its behavior, not only the IP. A proxy cannot change those signals, and many of them exist precisely so sites can tell when a browser is under automated control. This page explains what sites look at, how to confirm your proxy is working, and the legitimate options when a site does not want automated visitors.
Why headless Chrome is detected even with a proxy
A proxy relays your traffic, so the site sees the proxy's IP address and its location instead of yours. Everything else comes from your machine: the browser, the headers it sends, the JavaScript environment pages can inspect, and the way your script moves through the site. Automation detection mostly works on those other layers, which is why swapping the IP rarely changes the outcome.
It also helps to separate two different problems that look the same in a log: the proxy not working (connection errors, a 407, your own IP showing up) and the proxy working while the site declines automated traffic (a challenge page, a 403, or an empty result). The fixes differ, so check which one you have first.
Automation is announced by design
The W3C WebDriver specification defines navigator.webdriver, a property that is true when a browser is under automated control, so that sites can tell. Chrome sets it when driven by Selenium, Playwright or Puppeteer. In older Chrome versions the headless mode also identified itself in the default User-Agent string. These are disclosures built into the platform, not bugs, and a proxy does nothing to them.
Behavior and request patterns
Sites also look at how a client behaves: many pages requested in quick succession, no cookies carried between visits, the same path repeated at machine-regular intervals, or form submissions faster than a person could type. A script that loads hundreds of pages per hour stands out on any IP.
IP reputation and network type
The IP does play a part. Some sites apply extra checks to traffic from hosting and datacenter ranges, and an address with a history of abuse may be challenged more often. But a different IP type does not change the browser signals above, so a site that challenges automated browsers will usually keep doing so whatever proxy you use.
Why we do not cover detection workarounds
Guides that promise to make headless Chrome undetected work by hiding the automation flag, faking browser characteristics or imitating a different device. We do not publish those steps. When an operator has chosen to keep automated browsers out, defeating that choice can breach the site's terms, and depending on the country and what you access it can raise legal issues under computer-misuse laws. It is also an arms race: detection changes often, and scripts built on concealment break without warning.
If you are not sure whether your use is allowed, read the site's terms and robots.txt, and get legal advice for anything commercial or large scale.
Legitimate ways to run automation that gets blocked
Most real needs behind this search have a clean path. Which one fits depends on whose site it is.
Use the site's API or ask for access
If you need data from a site you do not operate, look for an official API, a data export or a partner feed first. These are stable, documented and usually cheaper to maintain than browser scraping. If none exists, contact the operator, explain what you collect and how often, and ask whether they will allow your traffic. A fixed exit IP makes that request easier, because the operator can allow a specific address in their firewall or bot-management rules.
Testing your own site
If your own end-to-end tests are blocked by your own bot protection, solve it on the server side. Most WAF and bot-management products let you add an exception for specific source IPs, a test environment without the bot rules, or a secret header your test runner sends. Running tests from a static IP is what makes an IP-based exception practical; check your provider's documentation for the exact rule type, since names vary.
Identify your automation honestly
For crawling you are allowed to do, make the traffic easy to recognize. Send a From header or a descriptive User-Agent with a contact address, keep the request rate low, respect robots.txt and Retry-After, and stop if the operator asks. Sites are far more willing to tolerate a crawler they can identify and contact.
Check that the proxy itself is working
Before blaming detection, confirm the browser really uses the proxy. Playwright takes the server and credentials in the proxy launch option, as shown below in Python; the Playwright proxy guide covers Node.js and per-context proxies. The script opens an IP echo endpoint and prints its JSON response, whose ip field is the exit address, which should be your proxy's IP, not your server's.
# pip install playwright && playwright install chromium
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch(
headless=True,
proxy={"server": "http://203.0.113.10:8080", "username": "USER", "password": "PASS"},
)
context = browser.new_context(
# Identify the automation honestly so the site operator can reach you
extra_http_headers={"From": "[email protected]"},
)
page = context.new_page()
page.goto("https://proxyv4.com/api/my-ip", timeout=30_000)
print(page.text_content("body")) # JSON with the exit "ip" and country
browser.close()If you use Puppeteer, credentials go through page.authenticate() as shown in the Puppeteer proxy setup; with Selenium, Chrome's --proxy-server flag has no field for a username and password, so follow the Selenium proxy guide for the options. In current Chrome versions the browser does not handle SOCKS5 username and password authentication, so set the proxy to HTTP mode for browser automation.
Read the result this way: an error such as ERR_PROXY_CONNECTION_FAILED or ERR_TUNNEL_CONNECTION_FAILED, or a 407, means the proxy setup is wrong. Your own IP on the echo page means the proxy is not applied. The proxy's IP on the echo page plus a challenge or 403 on the target means the proxy is fine and the site is declining automated traffic, which is where the options in the previous section apply. You can also open the free my IP tool in the automated browser to see the exit address and its location.
When a static proxy helps an automated browser
A static IP is useful for automation that is allowed: QA runs against your own site from an address you can add to your WAF exceptions, monitoring a partner's site under an agreement that names your IP, or checking how pages render from another country. ProxyV4 sells private datacenter IPv4 in seven countries (United States, Vietnam, Japan, South Korea, Singapore, United Kingdom and Hong Kong) and static ISP proxies in 23 countries, one tenant per IP for the whole term, so the address an operator allows is yours alone. Renewing before expiry keeps the same IP, which keeps those exceptions valid.
It does not help if the goal is to get an automated browser past a site that blocks automation. No proxy type changes the browser signals described above, and we do not sell proxies for that purpose. It is also not a fit if a workflow needs mobile carrier IPs or a new IP on every request; rotating proxies are waitlist only. Every proxy supports HTTP(S) and SOCKS5 with username and password, and traffic is unmetered. See live prices and start with one IP.
Frequently asked questions
Will a residential or static ISP proxy stop headless Chrome being detected?
Usually not. The IP type can affect how much scrutiny traffic gets, but the automation signals come from the browser and your script's behavior, which no proxy changes.
What is navigator.webdriver?
It is a browser property defined in the W3C WebDriver specification that is true when the browser is under automated control. It exists so websites can tell that a browser is being driven by software.
Is it legal to bypass bot detection?
It depends on the site's terms, what you access and the law where you and the site are. It can breach the terms of service and, in some cases, computer-misuse laws, so ask a lawyer before relying on it.
Can Playwright use a SOCKS5 proxy with a username and password?
Chromium does not support SOCKS5 authentication in current versions, so use the HTTP mode of the proxy for browser automation. ProxyV4 lets you choose HTTP only, SOCKS5 only, or both on the same port per order.
What if a proxy I bought cannot connect at all?
A proxy that fails for a technical reason, such as not connecting or showing the wrong location, is covered by the refund policy and credited to your account balance.
A fixed IP your QA and partners can allow
Private IPv4 in seven countries and static ISP in 23 countries, one tenant per IP, with the same IP on renewal. Buy one IP and test it in your automation first.
Build your IP pool