botrefund.com
← BotRefund Home NETWORK & BROWSER SIGNAL

Content Security Policy Script Check

Appends a restrictive <meta> script-src Content Security Policy tag and verifies whether an unauthorized third-party test script still executes unexpectedly.

What we test

The browser check inserts a <meta http-equiv="Content-Security-Policy"> element defining a script-src restriction (without altering server HTTP CSP headers) and attempts to load an external test script with a 5,000 ms timeout.

If the disallowed external script fires onload while no ad blocker is interfering with third-party requests, the check records a CSP-enforcement failure.

Why it matters

Stealth browser drivers launched with DevTools CSP bypass enabled (such as bypassCSP: true or Page.setBypassCSP) silently disable Content Security Policy enforcement so injected automation scripts can execute freely.

Accounting for active ad blockers and evaluating this gently alongside human interaction protects legitimate visitors whose network proxies or privacy extensions alter third-party resource loading.

EXPLANATION

CSP Enforcement States

01 EXPECTED RESPONSE

Browser enforces meta script-src and blocks external execution

Standard retail browsers honor <meta> Content Security Policy rules and block the unauthorized external script from firing onload.

Example result Meta script-src applied: yes • Blocked external script executed: no — Result: CSP enforcement intact
02 POSSIBLE AUTOMATION SIGNAL

Disallowed external script executes with no ad blocker present

Headless runners configured to bypass CSP ignore <meta> script-src constraints and execute the blocked external script anyway.

Example result Meta script-src applied: yes • Blocked external script executed: yes • Ad blocker: absent — Result: DevTools CSP bypass suspected

Forensic significance: Lightweight supporting indicator of DevTools CSP-bypass configuration; cleared by verified human interaction and excluded when ad blockers interfere.