AdguardTeam / AdguardTeam/CoreLibs

Add ability to block request for requests "unblocked" by `$replace` rule

Open
#1,973 2 comments 0 reactions 0 assignees View on GitHub
Feature request needs tech clarification Priority: P4
Dominant language
No language data
Stars
52
Forks
10
PR merge metrics
No merged PRs in 30d

Description

### Issue Details

Sometimes website uses "random" path for scripts or requests and broad `$replace` rule is used, like for example - `||example.org^$replace=/ads/no_ads/,script,xmlhttprequest` so other request like `example.org/tracker.js` are not blocked.

So I think that it would be nice to have an option to block requests even if there is `$replace` rule used.

Another related issue - https://github.com/AdguardTeam/CoreLibs/issues/1715#issuecomment-1375373415

### Proposed solution

Add additional modifier which allows to block request even if there is `$replace` rule.

### Alternative solution

Maybe another workaround would be to add similar modifier to `$replace` but it would replace content only for not blocked requests?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.