Selenium Proxies

Rotating Proxies for Selenium

Drive a real Chrome or Firefox session through Proxy Rotator and get a fresh IP per request from a 100M+ pool of residential, datacenter, mobile and IPv6 proxies. Selenium Wire handles username and password auth cleanly, and plain Selenium works with IP whitelisting. One plan, all proxy types.

Plans from $24.95/mo   New IP per request   HTTPS & SOCKS5

Rotating & sticky Residential, datacenter, mobile, IPv6 HTTPS & SOCKS5 City & country targeting User:pass or IP whitelist
Why Proxy Rotator

Why Proxy Rotator for Selenium

Browser automation needs reliable, geo-accurate IPs. The gateway handles rotation so your driver code stays clean.

New IP per request

The gateway rotates exit IPs automatically, so your browser sessions blend into normal traffic.

Rotating or sticky

Use sticky sessions to hold one IP through a login or checkout, or rotate for broad data collection.

All proxy types

Residential, datacenter, mobile and IPv6 in one pool, switchable from your dashboard with no code change.

HTTPS & SOCKS5

Standard protocols work with Selenium Wire and with Chrome's --proxy-server flag.

City & country targeting

Render localized pages by targeting a country, and a city on residential IPs.

Two auth methods

Username and password through Selenium Wire, or IP whitelisting with plain Selenium.

Before you start

Prerequisites

  • An active Proxy Rotator plan (from $24.95/mo).
  • Your gateway host and port: gateway.proxyrotator.com:8080.
  • Your gateway username and password, or a whitelisted server IP, from your dashboard. See the rotating proxy API for endpoint details.
  • Selenium and, for user:pass auth, Selenium Wire: pip install selenium selenium-wire.

Throughout this guide, replace USER:PASS with your real gateway credentials.

Setup

Add Proxy Rotator to Selenium

Plain Selenium cannot easily pass a username and password to a proxy, so use Selenium Wire for user:pass auth. Use plain Selenium with an IP whitelist as the fallback.

Selenium Wire with user:pass (recommended)

Selenium Wire is the standard way to use authenticated proxies with Selenium. Pass the gateway URL with credentials in seleniumwire_options.

selenium_wire.py
from seleniumwire import webdriver

opts = {
    "proxy": {
        "http":  "http://USER:PASS@gateway.proxyrotator.com:8080",
        "https": "http://USER:PASS@gateway.proxyrotator.com:8080",
        "no_proxy": "localhost,127.0.0.1",
    }
}

driver = webdriver.Chrome(seleniumwire_options=opts)
driver.get("https://api.ipify.org")
print(driver.find_element("tag name", "body").text)  # exit IP
driver.quit()

Plain Selenium with IP whitelist (fallback)

If you would rather not add Selenium Wire, whitelist your server IP in the dashboard and pass the gateway with Chrome's --proxy-server flag. No username or password is sent, so no auth popup appears.

selenium_whitelist.py
from selenium import webdriver
from selenium.webdriver.chrome.options import Options

options = Options()
options.add_argument("--proxy-server=http://gateway.proxyrotator.com:8080")

driver = webdriver.Chrome(options=options)
driver.get("https://api.ipify.org")
print(driver.find_element("tag name", "body").text)  # exit IP
driver.quit()

This works because the gateway authorizes your whitelisted IP instead of requiring a username and password.

Verify

Verify it works

Confirm your credentials and the gateway are working from the command line before launching a browser.

cURL
curl -x http://USER:PASS@gateway.proxyrotator.com:8080 https://api.ipify.org
# run it again, you get a different IP

A different IP on each run confirms the gateway is reachable and rotating.

Rotating vs sticky for Selenium

Browser automation often spans several requests in one session, so sticky proxies are a good fit when you need the same IP across a login, navigation and checkout. For broad collection where each page load can come from a different IP, use rotating proxies. Switch between them from your dashboard without changing your driver setup.

FAQ

Selenium proxy FAQ

Why do I need Selenium Wire for user:pass auth?
Plain Selenium cannot easily pass a username and password to a proxy; Chrome shows a native auth popup that the driver cannot fill. Selenium Wire injects the credentials for you, which is why it is the standard approach for authenticated proxies.
Can I use plain Selenium without Selenium Wire?
Yes, if you whitelist your server IP in the dashboard. Then pass the gateway with the --proxy-server flag and no credentials, since the gateway authorizes requests by IP.
Which plan do I need for Selenium?
Any Proxy Rotator plan works with Selenium. Plans start at $24.95/mo and scale with how many concurrent browsers you run. See pricing.
Do you support SOCKS5 with Selenium?
Yes. The gateway supports HTTPS and SOCKS5. Point Selenium Wire or the --proxy-server flag at the SOCKS endpoint shown in your dashboard.
Can I keep the same IP across a session?
Yes. Use a sticky proxy to hold one IP through a multi-step flow like a login, then switch back to rotating for broad crawls.
Selenium fixes the proxy at driver startup, so how do IPs rotate without relaunching the browser?
You do not need to relaunch. Selenium sets the proxy when the WebDriver is created, but if that one proxy points at gateway.proxyrotator.com:8080 the gateway rotates the exit IP per request on our side, so a single long-lived browser keeps getting fresh IPs.
Will rotating proxies stop a headless Selenium browser from being detected?
Rotating residential IPs defeat IP-based rate limiting and bans, but they do not change browser fingerprints. For headless detection such as navigator.webdriver and TLS signals, pair our proxies with undetected-chromedriver so the IP and the fingerprint both look legitimate.
Do free proxies work with Selenium, or do I need residential?
Free proxies are typically already flagged and get Selenium blocked fast. Our pool of residential, datacenter, mobile and IPv6 IPs appears as ordinary user connections, which is much harder to detect. Plans start at $24.95/mo.

Run Selenium on rotating proxies

Create an account, grab your gateway credentials, and drive real browsers through a 100M+ IP pool. Plans from $24.95/mo.

Copied!