Skip to content
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

Improve the way negation works for $redirect rules #1388

Closed
2 tasks done
ameshkov opened this issue Nov 30, 2020 · 1 comment
Closed
2 tasks done

Improve the way negation works for $redirect rules #1388

ameshkov opened this issue Nov 30, 2020 · 1 comment

Comments

@ameshkov
Copy link
Member

ameshkov commented Nov 30, 2020

Negating $redirect rules should work just like $replace, $csp and $cookie do.

Negating $redirect

This sort of rules work pretty much the same way it works with $csp and $replace modifiers.

Use @@ to negate $redirect:

  • @@||example.org^$redirect -- negates all $redirect rules for URLs that match ||example.org^.

  • @@||example.org^$redirect=redirectName -- negates the rule with $redirect=redirectName for any request matching ||example.org^.

  • Once it's done, please file a new issue to tsurlfilter: https://github.com/AdguardTeam/tsurlfilter

  • Also, open a pull request to KB

@sxgunchenko
Copy link

core/pull-requests/2237

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