How to use a proxy with Selenium
This guide walks you through integrating HypeProxies with Selenium to bypass IP restrictions, overcome geo-targeting, and manage rate limiting in web scraping workflows.
$1 one-time verification. Unlock your trial today.
Speed
Success
Consistency
Reliability
Flexibility
Prerequisites
Before integrating proxies into Selenium, ensure your development environment is properly configured.
Selenium installation
Install Selenium and confirm it runs locally. If you’re new to Selenium, start with the official installation guide.

HypeProxies setup
You’ll need active proxy credentials from your HypeProxies dashboard:
Log in to your HypeProxies dashboard (or create an account). New users can also request a 24-hour trial.
Choose the right proxy type for your workflow and purchase a plan that fits your needs – ISP proxies, sneaker proxies, or ticket proxies.
Locate your active proxies in the dashboard, formatted as IP:PORT:USERNAME:PASSWORD.

Tip – use the proxy checker tool to verify connectivity before implementation.
Setting up one proxy
Selenium can set a proxy host/port, but it doesn’t offer a clean, cross-browser way to pass HTTP proxy usernames and passwords – you’ll often hit a native auth pop-up. Selenium Wire extends WebDriver and exposes network requests. It also simplifies authenticated proxy setup – pass a proxy URL with credentials, and it adds the correct Proxy-Authorization header for you.
Install Selenium Wire. Pin blinker to avoid import errors:
Here's the code:
When you run the code, the output will be:

This shows your proxy's IP address (68.182.95.4) located in New York City, confirming that the proxy authentication is working correctly through Selenium Wire.
Troubleshooting connection failures – If you encounter ERR_TUNNEL_CONNECTION_FAILED or ERR_TIMED_OUT errors:
Verify that your proxy credentials haven’t expired
Test connectivity using the HypeProxies checker tool
Try a different proxy from your pool
Rotating multiple proxies
A single exit IP is an easy target for rate limits and soft bans. Rotating proxies spreads requests across many identities – lowering block rates, smoothing throughput, and keeping your session graph boringly normal.
Here's the code:
The output would be – you can see IP addresses changing with each rotation:

For production use, consider connection pooling, async requests, error handling with failover, and proxy health monitoring to scale beyond this basic approach.
Note – the original Selenium Wire is no longer actively maintained (archived January 2024). Consider using the maintained fork selenium-wire-2 for new projects.
SeleniumBase – the easier alternative
SeleniumBase is a maintained Python framework built on top of Selenium. It simplifies proxy usage and adds stealth features (UC/CDP) for tougher targets.
Why SeleniumBase:
Native authenticated proxy support
Actively maintained
Built-in stealth mode
Zero driver hassle
Simply install it via:
Here’s an example showing an authenticated proxy in one line:
Learn more – SeleniumBase docs
Best practices
Follow these best practices for stable and responsible proxy scraping:
Proxy rotation. Rotate through multiple proxies to distribute load and avoid rate limits.
Error handling. Implement retry logic to skip failed proxies and continue scraping.
Resource cleanup. Always call
driver.quit()
to prevent memory leaks and zombie processes.Request spacing. Add delays between requests to avoid overwhelming target sites.
Compliance. Respect robots.txt, terms of service, and rate limits of target websites.
Stay current. Tools change fast – always check official docs and explore maintained open-source projects (e.g., SeleniumBase, selenium-wire-2, proxy-chain) to keep your stack resilient.
Getting support
Need help with your proxy integration? The HypeProxies team provides support through several channels:
Technical issues – open a support ticket for 24/7 assistance.
Community help – join the Discord server to connect with other developers.
Ready to scale your web scraping with reliable, high-performance proxies? Get started with HypeProxies.
Share on
$1 one-time verification. Unlock your trial today.
Stay in the loop
Subscribe to our newsletter for the latest updates, product news, and more.
No spam. Unsubscribe at anytime.
Fast static residential IPs