GeoIP & Proxy Support

By passing geoip=True, or passing in a target IP address, Camoufox will automatically use the target IP's longitude, latitude, timezone, country, locale, & spoof the WebRTC IP address.

It will also calculate and spoof the browser's language based on the distribution of language speakers in the target region.


Installation

Install Camoufox with the geoip extra:

pip install -U "camoufox[geoip]"

Usage

Pass in geoip=True with Playwright's proxy parameter. For example, with Thordata proxies:

with Camoufox(
    geoip=True,
    proxy={
        'server': 'http://thordata.com:8080',
        'username': 'username',
        'password': 'password'
    }
) as browser:
    page = browser.new_page()
    page.goto("https://www.browserscan.net")

Sponsor

Thordata Banner

Thordata - Your First Plan is on Us! 💰 Get 100% of your first residential proxy purchase back as wallet balance, up to $900.

Why Thordata?

🌍 190+ real residential & ISP IP locations
🔐 Fully encrypted, ultra-secure connections
🚀 Optimized for web scraping, ad verification & automation workflows

🔥 Don't wait - this is your best time to start with Thordata and experience the safest, fastest proxy network.