SafariConverterLib icon indicating copy to clipboard operation
SafariConverterLib copied to clipboard

Add support for `redirect` and `removeparam` rules

Open ameshkov opened this issue 2 years ago • 3 comments
trafficstars

Check the explanation here: https://github.com/AdguardTeam/AdGuardForSafari/issues/770#issuecomment-1381471076

This way we can:

  1. Add "AdGuard URL Tracking filter" to AdGuard for iOS
  2. The redirect and removeparam rules both should be based on the redirect type of dNR rules and can then be applied via AdGuard's Web Extension.
  3. We should eventually switch AG for Safari to Web Extension as well.

ameshkov avatar Jan 13 '23 08:01 ameshkov

Here's how we can do that:

  1. Convert $redirect and $removeparam rules to DNR syntax
  2. Apply them via Web Extension on iOS
  3. The problem: in this case $redirect will NOT have priority over blocking rules.

ameshkov avatar Jul 22 '25 12:07 ameshkov

3. The problem: in this case $redirect will NOT have priority over blocking rules.

maybe whitelisting target URL in CBs will help, when exists a redirect rule for that URL?

Alex-302 avatar Jul 22 '25 12:07 Alex-302

maybe whitelisting target URL in CBs will help, when exists a redirect rule for that URL?

Automatic whitelisting? We could try that, but it's a bit risky and I'd better do it as a separate task after this one is done.

ameshkov avatar Jul 22 '25 12:07 ameshkov