Skip to content

Support redirect-only rule in DNR #493

@Yuki2718

Description

@Yuki2718

Namely $redirect-rule working as redirect-if-blocked. uBlock Origin uses almost 600 of $redirect-rule while AdGuard 40+ if limited to Base filter. The main use of this are:

  1. $script,redirect-rule=noopjs,domain=blog24.me (in Base filter): some websites frequently change domain or path to detect anti-block or ad-reinjection and in such cases this sort of rule is often used. If done by $redirect the rule breaks the sites as blocking all scripts.
  2. /ads-prebid.js$script,redirect-rule=prebid-ads.js (in uBlock fitler): Some bait paths for anti-block/reinjection are used by many sites and in such cases this sort of rules are useful. It's possible to replace by $redirect; however, EasyList regularly removes rules used to detect blocker, then the rule become obsolete, or even worse can rather cause detection as the rule doesn't work on all sites. It's practically impossible for us to monitor all such changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    follow-up: safariNeeds a response from a Safari representativeproposalProposal for a change or new featuresupportive: safariSupportive from Safaritopic: dnrRelated to declarativeNetRequest

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions