Information: Minecraft Server: I started working on my old Minecraft server called Terona. Join our discord if you want :D Join

Block popups on a site

Turn on Popup Guard for a site, choose Balanced or Strict mode, and use the site permissions and extensions tabs.

DarkPanelChecked

On this page

Popup Guard stops a site from opening tabs, windows or redirects by itself. It only acts on sites you add; every other site behaves normally.

Protect a site#

  1. Open the site, then click the DarkPanel icon.
  2. On the This site tab, click Protect this site. The site is added in Balanced mode and the panel says Added. Reload the tab to apply.
  3. Reload the site's open tabs.

Animation of protecting a site: on the This site tab of the DarkPanel panel, click Protect this site, the status changes to Protected, Balanced (example.com) and the panel says Added. Reload the tab to apply. After the tab is reloaded, a new tab the site tries to open by itself is blocked

Illustration generated with AI and checked by Maj Kovačič.

You can also add a site on the Popup Guard tab: type or paste example.com, www.example.com or a full address such as https://example.com/any/page, pick a mode and click Add. The list holds up to 500 sites.

What the This site tab shows#

Status lineMeaning
Protected · Balanced (example.com) or Protected · Strict (example.com)A rule covers this site and is on. The name in brackets is the rule that matched.
Paused (example.com)A rule exists but its switch is off. The button reads Resume protection.
Not protectedNo rule covers this site.
Popup Guard is offThe switch in the panel header is off, so no site is protected.

How site rules match#

  • Input is normalised before saving: https://www.Example.com/watch?v=1 becomes example.com. Internationalised names are stored in their ASCII (punycode) form.
  • javascript:, file: and data: addresses, IPv6 addresses and addresses with a username or password are rejected.
  • A rule for example.com also covers its subdomains, such as www.example.com and player.example.com, but never unrelated sites like notexample.com or example.com.evil.net. When several rules match, the longest one wins.

Balanced or Strict#

Action on a protected siteBalancedStrict
Site opens a tab or window by itselfblockedblocked
Button or overlay click opens a tab or windowblockedblocked
target="_blank" link to another siteblockedblocked
target="_blank" link to the same siteopensopens
Ctrl-click, middle-click, "Open link in new tab"opensopens only for the same site
Normal link to another siteopensblocked
Script or meta-refresh redirect to another siteblockedblocked
Server redirect to another siteallowedblocked
Form that submits to another siteblocked if sent by a scriptblocked
Ctrl + T, address bar, bookmarksnot affectednot affected

Balanced is the default. Use Strict on sites that are mostly ads. Sign-in and payment pages hosted on other domains will not open in Strict mode.

In both modes video playback, full screen and keyboard shortcuts keep working.

Change, pause or remove a site#

On the Popup Guard tab, each site has a mode menu, an on/off switch and a Remove button. The switch in the panel header turns Popup Guard off everywhere without losing your list.

Changes apply to pages loaded afterwards, so reload tabs that are already open.

Blocked counter#

The Popup Guard tab shows how many popups and redirects have been blocked.

  • Reset statistics sets it to zero.
  • Reset Popup Guard restores the default list and clears the counter after a second click to confirm. It does not touch any other browser setting.

Nothing is counted in private windows. Private windows use the same rules.

Site permissions#

On This site, choose Allow, Block or Ask for JavaScript, pop-ups, cookies, images, notifications, location, camera, microphone and automatic downloads, then reload the page.

Clear site data removes the site's cookies and storage after a second click to confirm.

Permission changes made in DarkPanel override the browser's defaults for that site. To return a site to its defaults, use All site settings → Reset permissions.

Extensions#

The Extensions tab lists your other extensions. Use the switch to turn one on or off, Options for its settings and Details for its page in brave://extensions. Other extensions' popups cannot be opened from here; use their pinned icon instead.

How blocking works#

Popup Guard uses four layers:

  1. Page guard runs in the page before any of its scripts, in every frame of a protected site. It replaces window.open, cancels script-started navigations to other sites and stops form.submit() to other sites.
  2. Link guard handles clicks and form submissions, ignores clicks generated by scripts, and records when you deliberately opened a new tab.
  3. Network rule (Strict only) blocks top-level page loads that the protected site starts toward other sites.
  4. Background worker closes any new tab opened by a protected tab unless you asked for it. This catches popups from ad frames on other domains.

Diagram of which Popup Guard layer stops what: window.open calls and script redirects are stopped by the page guard, button and overlay clicks that open tabs by the link guard, page loads toward other sites by the network rule in Strict mode only, and tabs opened by ad frames from other domains by the background worker

Illustration generated with AI and checked by Maj Kovačič.

See Limitations for what these layers cannot prevent.

Source: DarkPanel README (What it does, Using DarkPanel, Limitations) and docs/POPUP_GUARD.md, checked 2 November 2026.

Your likes

Only what this browser did. Your data on this device