AdguardBrowserExtension icon indicating copy to clipboard operation
AdguardBrowserExtension copied to clipboard

Network rules with `$important` modifier are applied even if protection is disabled

Open AdamWr opened this issue 6 months ago • 0 comments

Please answer the following questions for yourself before submitting an issue

  • [x] Filters were updated before reproducing an issue
  • [x] I checked the knowledge base and found no answer
  • [x] I checked to make sure that this issue has not already been filed

AdGuard Extension version

5.1.94

Browser version

Chrome 138

OS version

Windows 11

Ad Blocking

AdGuard Base filter

Issue Details

Steps to reproduce:

  1. Add to user rules:
||securepubads.g.doubleclick.net/tag/js/gpt.js$script,domain=example.org,important
  1. Go to - https://example.org/
  2. Disable protection or add example.org to allowlist and reload website
  3. Open browser console and execute:
const script = document.createElement('script');
script.src = 'https://securepubads.g.doubleclick.net/tag/js/gpt.js';
document.head.appendChild(script);

Expected Behavior

Request should not be blocked.

Actual Behavior

If there is a rule with $important modifier, then request is blocked even if protection is disabled.

Screenshot

Image

AdamWr avatar May 30 '25 10:05 AdamWr