antibot

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

func DismissCookieBanner(page *rod.Page) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL