-
Notifications
You must be signed in to change notification settings - Fork 86
Documentation for interaction between important and redirect filters #1224
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
Comments
@gwarser |
Why? A redirect filter is a blocking filter, so the important filter will have no impact. |
A filter using the
Is internally translated into:
Redirect directives ( |
@gorhill just a heads up, I noticed you added a link to the AdGuard filter documentation to the wiki recently - their
Also, I noticed there are a decent number of filters which have both the
|
Yes, that is correct. One is a block filter, the other one is a redirect directive, looked up only when a network request is blocked (however it is blocked, including via dynamic filtering). The AdGuard documentation regarding |
Because can't write this HERE because the whole old repo is locked and and limited, I'll put it here: We, PL devs, want to announce we've found a WEBSITE where The aforementioned website
The addition of It would be worth to mention |
Prerequisites
Description
From the static filter syntax documentation it's not clear what the interaction between
important
andredirect
rules should be, for instance, with these two rules from the uBlock Privacy filters:Given the current documentation, I would assume that the
important
non-redirect
filter would override the behavior of theredirect
filter and block all network requests toaddthis.com
from domains other thanmissingkids.com
,missingkids.org
, etc. with an error response.However, it appears the current behavior in uBO is to load the redirected version anyways, e.g. on the URL below.
A specific URL where the issue occurs
https://www.rhmodern.com/catalog/product/product.jsp?productId=prod14970086&categoryId=cat7150028
Steps to Reproduce
important
andredirect
sections.Expected behavior:
It would be ideal to have a description of how these two filter options interact.
Actual behavior:
There is no description and it's unclear how the options interact.
Your environment
The text was updated successfully, but these errors were encountered: