- Pass network traffic through allowlisted infrastructure
- Control your browser’s IP address and location
- Comply with internal security policies, firewalls, and access controls
How to route Browserbase through your VPN
Browserbase sessions can route traffic through your own static HTTP, HTTPS, or SOCKS5 proxy. This lets you control the outbound IP. If your systems only allow traffic from trusted IPs, allowlist the IP of your proxy.- Deploy a VPN or proxy server in your trusted network
- Allowlist that IP in your firewall, backend, or third-party system
- Pass the proxy config into your Browserbase session
- Browserbase routes browser traffic through your proxy
Custom proxy configuration
- Node.js
- Python
Node.js create_session_with_proxy.js
Key requirements
- Your proxy must support HTTP, HTTPS, or SOCKS5
- It must be accessible from Browserbase (public IP or via tunnel)
- You must allow traffic from Browserbase to your proxy (firewall, VPN config, etc.)
Troubleshooting
If your session fails to connect:- Make sure your proxy server is publicly accessible or properly tunneled
- Confirm the proxy IP is correctly allowlisted in your system
- Check the proxy authentication credentials
- Ensure the proxy URL uses
http://,https://,socks5://, orsocks5h://(Browserbase doesn’t support SOCKS4 proxies) - Try connecting to the proxy from a local machine to verify it works outside your network
Proxies
Read more about using custom proxies and proxy configuration options.
Enterprise security
Learn how Browserbase manages enterprise security and compliance.