Check your consent mode from a leased browser
Confirm what the collector does before a visitor answers the banner.
Guide: ProxyX and BrowserX
A page can behave differently by region: a consent banner, a content policy, a security header or a script that fails to load. ProxyX lets you pick a country in the proxy username, and BrowserX can send a leased browser out through it. Together they let you load your own page from a chosen location and compare what happens.
Written for sites you own. Commands come from each project's own documentation; check it before you rely on a flag.
The gateway reads options from the username: px followed by key and value pairs, for example px-cc-fr-sid-run42. A country code selects the exit country, and a session key keeps the same exit for a run. A country your policy has no unit for, an unknown or repeated key, or a city without a country is refused. The options only narrow what the gateway's policy already allows. The edge uses another grammar, with the session and pool in the username, and has no country option.
# CONNECT through the gateway; the username is px followed by key-value pairs
curl -x http://px-cc-fr-sid-run42:[email protected]:8080 https://your-echo.example.com/ipCreate a dedicated BrowserX session with a proxy object that points at the gateway's CONNECT listener. The session placeholder in the username expands to a stable per-session key. The password stays out of the browser flags and logs.
browserx session create \
--proxy-url http://gateway.example.net:8080 \
--proxy-username 'px-cc-fr-sid-{session}' \
--proxy-password "$ORG_KEY"
# the same through the API: {"proxy": {"url": "...", "username": "px-cc-fr-sid-{session}", "password": "..."}}Open the page of yours that shows the request address and record it next to the country you asked for. ProxyX reports the exit address it last recorded for the lease, and it does not independently observe it. Your own page is the check.
Open your page through the same session and compare what you see with a run from another location: the banner, the content, the response headers and whether the collector script loaded.
import { chromium } from 'playwright-core';
const server = process.env.BROWSERX_SERVER ?? 'http://127.0.0.1:7690';
const headers = { authorization: `Bearer ${process.env.BROWSERX_API_KEY}`, 'content-type': 'application/json' };
for (const cc of ['fr', 'de']) {
// {session} expands to a stable per-session key, so every connection of the run keeps one exit.
const proxy = { url: process.env.PROXYX_URL, username: `px-cc-${cc}-sid-{session}`, password: process.env.PROXYX_ORG_KEY };
const created = await fetch(`${server}/v1/sessions`, { method: 'POST', headers, body: JSON.stringify({ persistence: 'ephemeral', proxy }) });
const { session, token, cdp_url: cdpUrl } = await created.json();
try {
const browser = await chromium.connectOverCDP(cdpUrl);
const page = await browser.contexts()[0].newPage();
const seenBy = await (await page.goto(process.env.ECHO_URL)).text(); // the address your own page observed
const response = await page.goto(process.env.PAGE_URL);
console.log(cc, seenBy.trim(), response.status(), Object.keys(await response.allHeaders()).sort());
await browser.close(); // disconnects only
} finally {
await fetch(`${server}/v1/sessions/${session.session_id}?generation=${session.generation}`, { method: 'DELETE', headers: { authorization: headers.authorization, 'x-browserx-token': token } });
}
}End the BrowserX session so the browser and its forwarder are closed.
For each location you ran, the country you requested, the address your own page observed and what the page did. Differences between locations are observations to investigate on your side.
Confirm what the collector does before a visitor answers the banner.
List the forms and endpoints of a site, then choose which to declare as protected actions.
Crawl a site you own and see which pages carry the Noxtica collector.