# 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.

See demo.


# Installation

Install Camoufox with the geoip extra:

pip install -U camoufox[geoip]

# Usage

Pass in geoip=True with Playwright's proxy parameter:

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