You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/general/ad-filtering/create-own-filters.md
+26
Original file line number
Diff line number
Diff line change
@@ -2951,6 +2951,32 @@ the request to `https://example.com/firstpath` will be blocked.
2951
2951
2952
2952
`$urltransform` rules can also be disabled by `$document` and `$urlblock` exception rules. But basic exception rules without modifiers do not do that. For example, `@@||example.com^` will not disable `$urltransform=/X/Y/`for requests to **example.com**, but `@@||example.com^$urlblock` will.
2953
2953
2954
+
**The rule example for cleaning affiliate links**
2955
+
2956
+
Many websites use tracking URLs to monitor clicks before redirecting to the actual destination. These URLs contain marketing parameters and analytics tokens that can be removed to improve privacy.
2957
+
2958
+
Below is an example of how to obtain the clean destination link to bypass tracking websites and go directly to the destination.
2959
+
2960
+
In our example:
2961
+
2962
+
1. The initial URL (with click tracking): `https://www.aff.example.com/visit?url=https%3A%2F%2Fwww.somestore.com%2F%26referrer%3Dhttps%3A%2F%2Fwww.aff.example.com%2F%26ref%3Dref-123`
2963
+
1. Tracking URL after decoding special characters: `https://www.aff.example.com/visit?url=https://www.somestore.com/`
2964
+
1. The website you want to visit: `https://www.somestore.com`
2965
+
2966
+
To clean the URL, we first need to decode special characters (like `%3A` → `:`, `%2F` → `/`, etc.) and extract the real URL from the tracking parameters. We will use the `$urltransform` modifier to do this. The following 4 rules replace URL-encoded symbols with their real characters:
0 commit comments