Docs
Block Options

Block Options

Configure content blocking to remove ads, trackers, cookie banners, and chat widgets from snapshots.

Options for blocking unwanted content during page capture. These settings are passed in options.block.

Options

FieldTypeDefaultNotes
cookieBannersbooleanfalseBlock GDPR/cookie consent banners and overlays.
chatsbooleanfalseBlock chat widgets (Intercom, Tawk, Drift, etc.).
adsbooleantrueBlock advertisements using EasyList filters.
trackersbooleantrueBlock tracking scripts using EasyPrivacy filters.

Why Block Content?

Blocking unwanted content improves snapshot quality and consistency:

  • Cookie banners obscure page content
  • Chat widgets add visual noise and can appear in different states
  • Advertisements change frequently
  • Trackers do not affect page rendering in most cases

Filter Lists

Watchero uses industry-standard filter lists for blocking:

OptionFilter ListDescription
cookieBannersCustom GDPR listTargets cookie consent dialogs from OneTrust, CookieBot, TrustArc, and similar providers.
chatsCustom chat listBlocks live chat widgets from Intercom, Tawk.to, Drift, Zendesk, LiveChat, and others.
adsEasyListThe most popular ad-blocking filter list, maintained by the EasyList community.
trackersEasyPrivacyComprehensive privacy protection list that blocks tracking scripts and pixels.

Default Behavior

Ads and trackers are blocked by default to ensure reproducible screenshots. Advertisements and tracking scripts change frequently and can cause visual differences between captures of the same page.

OptionDefaultReason
adstrueAds change frequently and affect layout consistency
trackerstrueTrackers can inject dynamic content and slow page load
cookieBannersfalseMay be needed for compliance verification
chatsfalseSome users want to capture chat widget state

To capture the page with all original content, explicitly disable the options:

{
  "options": {
    "block": {
      "cookieBanners": false,
      "chats": false,
      "ads": false,
      "trackers": false
    }
  }
}

Example Request

Block only ads and trackers, but keep cookie banners and chat widgets:

curl -s -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": [
      "https://example.com/"
    ],
    "viewports": [
      {
        "width": 1280,
        "height": 800
      }
    ],
    "options": {
      "block": {
        "cookieBanners": false,
        "chats": false,
        "ads": true,
        "trackers": true
      }
    }
  }' \
  "https://api.watchero.io/api/v1/snapshots"

Blocking happens at the network level before content is loaded, resulting in faster page captures and more consistent results.


We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking Accept, you agree to our use of cookies.
Learn more.