Proxies for Selenium
Selenium drives real browsers, and Chrome does not accept a password in the proxy flag. The usual fix is a small extension or a library that adds the password.
Our pick for Selenium
Residential
$2.64 per GB
- Setting
- The same IP for each session
- Targeting
- Country, state and city
- Protocols
- HTTP and SOCKS5
How to set it up for Selenium
The same IP for each session. Keep one IP for as long as a session lasts, usually 10 to 30 minutes, by adding a session ID to the username in the generator.
- For Chrome, use an extension or a helper library to supply the username and password.
- For Firefox, set the proxy in the profile and accept the login prompt once.
- Give each browser session its own sticky IP.
Other proxy types that work
Start with our pick. If Selenium still blocks or challenges you, move to the next type in the list; if it works, you can try the cheaper option for bulk work.
Steps
- Buy the smallest Residential plan, one gigabyte, to test with Selenium. Pay by card or crypto; the plan is delivered by itself, usually within a minute.
- Open the plan in your dashboard and copy the ready-to-paste line, or make a list in the generator with the country and session you need.
- Paste it into your Selenium code or settings, and press the test button on the plan page to see the IP and country.
- Run a small job on Selenium first. If it works, top up the same plan and keep the login; if it is blocked, try the next proxy type above.
A proxy changes where your traffic comes from. It does not change Selenium's rules: follow its terms and the law, and our acceptable use policy applies to every plan.
Questions about proxies for Selenium
Which proxy is best for Selenium?
Residential, set to the same ip for each session. Selenium drives real browsers, and Chrome does not accept a password in the proxy flag. The usual fix is a small extension or a library that adds the password.
Why does Chrome ignore my proxy password in Selenium?
Chrome's --proxy-server flag has no place for one. Use an extension or a helper library.
Is Selenium or Playwright easier with proxies?
Playwright, because it accepts usernames and passwords directly.