Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AntiBotPatterns = []string{
"*://js.datadome.co/*",
"*://*.datado.me/*",
"*://api-js.datadome.co/*",
"*://geo.captcha-delivery.com/*",
"*://*.perimeterx.net/*",
"*://client.perimeterx.net/*",
"*://collector-pxk*.px-cloud.net/*",
"*://*.imperva.com/v2/*",
"*://*.incapsula.com/_Incapsula_Resource*",
"*://*.akamaihd.net/akam/*",
"*://googletagservices.com/tag/js/gpt.js*",
"*://*.googletagservices.com/*",
"*://securepubads.g.doubleclick.net/*",
"*://*.googlesyndication.com/*",
"*://cdn.taboola.com/libtrc/*",
"*://cdn.outbrain.com/outbrain-loader.js*",
"*://static.criteo.net/js/*",
}
AntiBotPatterns is the curated list of glob URL patterns for scripts whose only purpose is detection/fingerprinting/heavy tracking. Blocking them at the network layer prevents the main thread from being monopolised by fingerprinting bursts that hang Runtime.evaluate calls.
Conservative list — only includes well-known anti-bot vendors and the heaviest analytics. Does NOT block CMP frameworks (OneTrust, Cookiebot, ...) because some sites' page rendering is gated on consent state.
Functions ¶
func DismissCookieBanner ¶
DismissCookieBanner attempts to find and click a cookie accept button. Returns true if a banner was found and dismissed.
func StartAntiBotBlocker ¶
func StartAntiBotBlocker(browser *rod.Browser, extraPatterns ...string) (*engine.InterceptSession, error)
StartAntiBotBlocker installs a request blocker for AntiBotPatterns on the given browser. Returns the InterceptSession so the caller can Stop() it and read the Stats() to know how many requests were blocked.
extraPatterns lets callers extend the curated list (e.g. site-specific trackers known to cause issues).
Types ¶
This section is empty.