ScreenshotNeo

BlogHow-to

How to Make Visualping Ignore Cookie Banners and Ads in Website Screenshots

Use Visualping’s automatic blocking, Block actions, Focus Area, or click actions to keep cookie banners and ads from obscuring screenshots or triggering alerts.

By the ScreenshotNeo team4 October 20267 min read

To keep cookie banners and ads out of Visualping website screenshots, first check that Block ads, cookie banners is enabled in the job’s Adjustments. Visualping says this setting is enabled by default for new jobs. If a specific element remains, add a Block action. If the overlay must be dismissed to reveal the content, use a click action. If the noise is outside the area you care about, narrow the Focus Area or use Element mode. These options solve different problems: hiding an element, dismissing an overlay, limiting what is monitored, or filtering alerts.

1. Choose the right approach

Approach Use it when Effect Tradeoff
Automatic blocking The banner or ad is a common one Visualping recognizes Attempts to block it before the snapshot A particular banner may remain; behavior is not guaranteed for every site.
Block action A specific visible element persists Hides the selected element before capture A fragile or broad selector can stop working or hide useful content.
Focus Area / Element mode The ad is outside the content you want monitored Excludes regions outside the selected area Changes outside that area are not monitored.
Click or Record Action A modal covers the content and needs to be dismissed Clicks a consent, close, or continue control before capture Page changes can break the interaction; Record Action requires Visualping’s Chrome extension.
Alert criteria or prompt instructions The screenshot is acceptable but notifications are noisy Classifies some changes as unimportant Does not itself remove the object from the screenshot.

2. Check automatic blocking first

  1. Open the Visualping job and its settings.
  2. In Adjustments, find Block ads, cookie banners.
  3. Enable it if it is off, then review the job preview to see whether the banner or ad is absent.
  4. If it persists, use a manual Block action or another method below.

Visualping’s Help Center says automatic blocking is enabled by default for new jobs. Do not assume that every existing job has it enabled; inspect the setting. The feature is documented in Visualping’s guide to automatically blocking ads and cookie popups.

3. Block a specific ad or banner

  1. Open the job’s Actions and add a Block action.
  2. Select the banner or ad in the preview. If selecting it is difficult, identify it with an element ID, class, or XPath instead.
  3. Save the action and inspect the resulting preview to make sure only the unwanted element disappeared.

Visualping documents that an ID or class can match multiple elements. That is useful when a site repeats the same ad component, but it also means a broad selector can hide more than intended. Prefer a stable, specific selector and avoid blocking a container that includes content you need to monitor. See Visualping’s Block action guide and its Actions guide for supported targeting forms and workflow details.

4. Narrow the monitored area with Focus Area or Element mode

When an ad, social feed, carousel, or popup sits away from the content you care about, select only the relevant region as the Focus Area. In Element mode, select the box containing the content to monitor. Changes outside that selection are excluded from the monitored region, so this is often simpler than trying to remove unrelated page elements.

Before saving, check that the selected area includes all content whose changes matter. A narrow region reduces irrelevant notifications, but it also means a meaningful update outside the region will not be tracked. See Visualping’s Focus Area guidance.

Use a click when the overlay must be dismissed to expose the page underneath. Add a Click action for the consent or close button, or use Record Action to record the interaction. Visualping replays recorded actions on each check; its documented Record Action workflow requires the Chrome extension.

  1. Record or configure the click on the consent, close, or continue control.
  2. If the page updates asynchronously, add a Wait action after the click.
  3. Review the saved preview and confirm the page is in the intended state before monitoring.

Actions execute in order, so place the click before any step that depends on the revealed content. A changed banner layout or button label can make a previously working click miss its target. Consult the Visualping Actions guide for click, wait, iframe, and recording behavior.

6. Reduce alert noise without changing the screenshot

If the screenshot itself is fine and only the notifications are distracting, use the job’s important-change criteria or add an instruction such as: “Ignore cookie banners, consent modals, rotating ads, and promotional overlays.” This asks the alert classification to treat those changes as unimportant; it is not a removal action and does not guarantee that the banner will disappear from the captured image. Visualping describes these controls in its guidance on AI-powered change detection and AI prompts.

7. Verify the result after each change

  • Inspect the preview to confirm the unwanted element is gone or outside the monitored region.
  • Confirm the page content you need remains visible and inside the Focus Area.
  • Check that a dismiss click still works after the page has loaded.
  • If the screenshot is clean but alerts still fire, adjust the alert criteria separately.
  • Recheck after the monitored site redesigns its consent banner or ad placement.

8. Troubleshooting

Problem Likely cause What to try
Automatic blocking leaves the banner visible The banner is not recognized or the setting is off for this job Check the Adjustments setting, then add a targeted Block action or dismiss the overlay with a click.
The selector misses the element or selects the wrong one The target is dynamic, the selector is ambiguous, or the preview selection is imprecise Inspect the page and try a stable, unique ID, class, or XPath. Review the preview after saving.
Blocking removes useful content too The selector targets a shared or broad container Use a narrower selector or Focus Area, then verify the monitored content remains.
The element is inside an iframe An outer-page selector cannot directly target the iframe’s inner content Add the iFrame action before operating on the inner element, as described in Visualping’s Actions documentation.
The click runs but the overlay remains The click target changed, was not available yet, or the page needs time to update Edit the click target, put the action in the correct order, add a Wait after it, and inspect the preview.
Alerts continue although the screenshot looks right Alert classification is separate from element removal Adjust important-change criteria or add an explicit instruction to ignore the named banner or ad changes.
A banner returns after a site redesign The selector or click target may no longer match Inspect the new page, update the action, and verify a fresh preview.

9. API and automation caveat

Visualping’s cited materials describe monitor operations and selector or XPath targets, but they do not establish that every dashboard-level setting, Block action, or alert control can be configured through the API. Check the documentation for the exact endpoint and supported operation before building an API workflow. Do not assume that a dashboard action has API parity.

10. Reliability and operating costs

Selectors and recorded clicks depend on the monitored page’s structure and timing. Review previews after configuration and revisit the job after site changes. Focus Area is less dependent on the banner’s selector, but it permanently excludes off-region changes from the monitored selection. Alert instructions can reduce notification noise while leaving the screenshot unchanged.

Visualping’s supplied documentation does not provide a topic-specific success rate or performance benchmark for these techniques. Choose the method based on what must change: the captured image, the monitored region, or only the alert decision. The reviewed sources do not establish a cost difference among these settings, so check Visualping’s current plan and usage terms for account-specific billing details.

11. Or skip the browser setup

For a clean screenshot through an API, ScreenshotNeo is a website screenshot API and MCP server. A single GET request captures a URL; its clean-shot flow accepts consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture. These steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. Its MCP tools let AI agents use take_screenshot, get_page_info, and capture_pdf.

See the ScreenshotNeo API documentation. Replace YOUR_API_KEY with your key. This cURL example saves a WebP capture:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Python:

import requests

r = requests.get(
    "https://api.screenshotneo.com/v1/shot",
    params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"},
    timeout=90,
)
open("shot.webp", "wb").write(r.content)

Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`Screenshot request failed: ${res.status}`);
const image = Buffer.from(await res.arrayBuffer());
await import('node:fs/promises').then(fs => fs.writeFile('shot.webp', image));

ScreenshotNeo removes cookie banners, popups, and chat widgets before the shot; bot checks, blank pages, and failed loads are never billed; its MCP server lets AI agents take screenshots; and 1,000 screenshots a month are free with no card. Paid plans start at $5 for 3,000 shots. Sign up free and capture 1,000 screenshots a month with no card.

12. FAQ

No. Automatic blocking is documented as enabled by default for new jobs, but a particular banner may remain. Use a targeted Block action or a click if needed.

Will Focus Area hide an ad from the screenshot?

It limits the region Visualping monitors. It does not necessarily remove the ad from the page image; it excludes changes outside the selected region from monitoring.

Can I use an alert prompt to remove an ad?

No. An instruction to ignore an ad concerns how changes are classified for alerts. Use blocking or a dismiss interaction to change what appears in the capture.

Can these dashboard actions be configured through Visualping’s API?

The reviewed API materials do not confirm support for every dashboard action. Verify the specific endpoint before relying on API configuration.