Skip to content

[investigate] Network rules with $important modifier are applied even if protection is disabled #3227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
AdamWr opened this issue May 30, 2025 · 0 comments
Open
3 tasks done

Comments

@AdamWr
Copy link
Member

AdamWr commented May 30, 2025

Please answer the following questions for yourself before submitting an issue

  • Filters were updated before reproducing an issue
  • I checked the knowledge base and found no answer
  • 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

@adguard-bot adguard-bot changed the title Network rules with $important modifier are applied even if protection is disabled [estimate] Network rules with $important modifier are applied even if protection is disabled May 30, 2025
@adguard-bot adguard-bot changed the title [estimate] Network rules with $important modifier are applied even if protection is disabled [investigate] Network rules with $important modifier are applied even if protection is disabled Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants