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.
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#
- Open the site, then click the DarkPanel icon.
- 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.
- Reload the site's open tabs.
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 line | Meaning |
|---|---|
| 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 protected | No rule covers this site. |
| Popup Guard is off | The 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=1becomesexample.com. Internationalised names are stored in their ASCII (punycode) form. javascript:,file:anddata:addresses, IPv6 addresses and addresses with a username or password are rejected.- A rule for
example.comalso covers its subdomains, such aswww.example.comandplayer.example.com, but never unrelated sites likenotexample.comorexample.com.evil.net. When several rules match, the longest one wins.
Balanced or Strict#
| Action on a protected site | Balanced | Strict |
|---|---|---|
| Site opens a tab or window by itself | blocked | blocked |
| Button or overlay click opens a tab or window | blocked | blocked |
target="_blank" link to another site | blocked | blocked |
target="_blank" link to the same site | opens | opens |
| Ctrl-click, middle-click, "Open link in new tab" | opens | opens only for the same site |
| Normal link to another site | opens | blocked |
| Script or meta-refresh redirect to another site | blocked | blocked |
| Server redirect to another site | allowed | blocked |
| Form that submits to another site | blocked if sent by a script | blocked |
| Ctrl + T, address bar, bookmarks | not affected | not 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:
- 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 stopsform.submit()to other sites. - Link guard handles clicks and form submissions, ignores clicks generated by scripts, and records when you deliberately opened a new tab.
- Network rule (Strict only) blocks top-level page loads that the protected site starts toward other sites.
- 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.
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.