Skip to content
How to Configure a Proxy in Chrome: Settings, Extensions, and Testing
Article

How to Configure a Proxy in Chrome: Settings, Extensions, and Testing

Proxies

Learn how to set up a proxy in Chrome through system settings, launch flags, or extensions, how to test it, and how to use proxies responsibly for data collection.

By MrScraper Team 6 min read

A proxy routes your browser's traffic through an intermediary server, so websites see the proxy's IP address instead of yours. Teams use proxies in Chrome to view localized versions of public content, test their own sites from different regions, route traffic through a corporate network, and support permitted data collection.

This guide covers what a proxy is, the ways to configure one in Chrome, how to test your setup, and how to use proxies responsibly.


What is a proxy?

A proxy server acts as a gateway between your device and the internet. Instead of connecting directly to a website, your browser sends the request to the proxy, which forwards it using its own IP address. The website's response goes back through the proxy to you.

Common proxy types include:

  • HTTP and HTTPS proxies: Handle web traffic and are the most common for browser use.
  • SOCKS5 proxies: Handle a wider range of traffic types at a lower level.
  • Data center proxies: Use IP addresses from hosting providers.
  • Residential proxies: Use IP addresses assigned by internet service providers to home connections. See our guide on how residential proxies work.

Why use a proxy with Chrome?

  • Viewing localized content: Some sites show different prices, languages, or availability by country. A proxy in a given region lets you see the public version shoppers there see.
  • Testing your own sites: QA teams use proxies to check how their sites behave for visitors in different locations.
  • Corporate network requirements: Many organizations route browser traffic through a company proxy for security and monitoring.
  • Privacy: A proxy keeps your own IP address from being shared with the sites you visit.
  • Separating traffic: Extensions let you send only selected sites through a proxy while the rest of your traffic stays direct. A proxy changes where requests come from. It does not change what a site permits. If a site restricts content by region for licensing or legal reasons, or limits automated access, respect that.

Option 1: System proxy settings

On Windows and macOS, Chrome uses your operating system's proxy settings by default, so changing them affects all applications that follow the system settings.

  1. Open Chrome settings: Click the three-dot menu in the top-right corner and select Settings.
  2. Go to the proxy settings: Open System and select Open your computer's proxy settings. Chrome sends you to your operating system's network settings.
  3. Configure the proxy:
    • Windows: Under Manual proxy setup, turn on Use a proxy server and enter the proxy address and port.
    • macOS: Select Web Proxy (HTTP) or Secure Web Proxy (HTTPS), enter the server address and port, and add credentials if your provider requires them.
  4. Save and restart: Save or apply the changes, then restart Chrome.

On Linux, Chrome may follow your desktop environment's settings or require a launch flag, depending on your setup.


Option 2: Launch Chrome with a proxy flag

To use a proxy for a single Chrome session without changing system settings, start Chrome with the --proxy-server flag. This is also useful when automating a browser for testing.

bash
# macOS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --proxy-server="http://proxy.example.com:8080"
 
# Windows
"C:\Program Files\Google\Chrome\Application\chrome.exe" --proxy-server="http://proxy.example.com:8080"

With browser automation tools, you can pass the proxy when launching the browser. For example, in Playwright:

python
from playwright.sync_api import sync_playwright
 
with sync_playwright() as p:
    browser = p.chromium.launch(proxy={
        "server": "http://proxy.example.com:8080",
        "username": "YOUR_USERNAME",
        "password": "YOUR_PASSWORD",
    })
    page = browser.new_page()
    page.goto("https://api.ipify.org")
    print(page.content())
    browser.close()

Store credentials in environment variables or a secrets manager, not in code.


Option 3: Proxy extensions

Extensions let you control proxy use inside Chrome without changing system settings, and many support rules that send only certain sites through the proxy.

  • Proxy SwitchyOmega: Supports multiple profiles, rule-based switching, and auto-configuration (PAC) scripts.
  • FoxyProxy: Uses URL patterns to decide which sites go through which proxy. If you build your own extension, Chrome's chrome.proxy API lets it set proxy rules. The extension must declare the "proxy" permission in its manifest.
javascript
chrome.proxy.settings.set({
  value: {
    mode: "fixed_servers",
    rules: {
      singleProxy: {
        scheme: "http",
        host: "proxy.example.com",
        port: 8080
      },
      bypassList: ["localhost", "*.internal.example.com"]
    }
  },
  scope: "regular"
}, () => {});

Install extensions only from sources you trust. A proxy extension can see and change your browsing traffic.


Testing your proxy setup

  1. Check your IP address: Visit an IP-lookup page such as https://api.ipify.org. It should show the proxy's address, not your own.
  2. Check for leaks: Use a DNS and WebRTC leak test to confirm traffic is going through the proxy as expected.
  3. Confirm the location: If you chose a regional proxy, check that the reported location matches.
  4. Troubleshoot errors: If pages fail to load or time out, check the address, port, protocol, and credentials for typos, and confirm the proxy service is running.

Using proxies responsibly for data collection

  • Collect public data only: Limit collection to information any visitor can see without signing in.
  • Review each site's rules: Read the terms of use and robots.txt, and follow any restrictions that apply.
  • Prefer official sources: If a site offers a documented API or data program, use it.
  • Keep volumes reasonable: Use delays and concurrency limits. Spreading requests across more IP addresses does not reduce the total load on a site.
  • Treat refusals as information: If a site responds with 403 or 429, slow down, honor any Retry-After header, and reconsider whether this collection is permitted. Do not switch proxies to get around the restriction.
  • Choose reputable providers: Free proxies often have poor reliability and security, and some can inspect or alter your traffic. Choose a provider that explains how its IP addresses are sourced. For more, see our guides on the 429 Too Many Requests error and web scraping and the law.

Frequently asked questions

How do I check whether my Chrome proxy is active?

After saving your settings and restarting Chrome, visit an IP-lookup page. If the proxy is active, the page shows the proxy's IP address instead of yours.

Can I set a proxy inside Chrome itself?

On Windows and macOS, Chrome's settings send you to the operating system's proxy settings. To use a proxy only in Chrome, launch it with the --proxy-server flag or use a proxy extension.

Should I rotate proxies when collecting data?

Rotation can help with reliability when individual connections fail, and some providers handle it automatically. It should not be used to get around a site's rate limits or restrictions. Keep total request volume within what the site can reasonably handle.

Are free proxies safe?

Often not. Free proxies can be slow, unreliable, and in some cases able to inspect or modify your traffic. Use a reputable provider, especially when handling credentials or sensitive data.

Summarize this post

Open it in your assistant of choice with the prompt ready to send.

Take a Taste of Easy Scraping!

Your choices

Cookie preferences

Necessary cookies keep your selection. Optional categories are disabled until you switch them on.

Strictly necessary

Remembers your privacy selection and keeps the site working.

Always on