Skip to content

Commit

Permalink
fix $removeparam restrictions section
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka authored Oct 8, 2024
2 parents c65008f + deed210 commit 220c39a
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions docs/general/ad-filtering/create-own-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ preroll.ts

:::caution Restrictions

- `$hls` rules are only allowed [**in trusted filters**](#trusted-filters).
- Rules with the `$hls` modifier can only be used [**in trusted filters**](#trusted-filters).
- `$hls` rules are compatible with the modifiers `$domain`, `$third-party`, `$strict-third-party`, `$strict-first-party`, `$app`, `$important`, `$match-case`, and `$xmlhttprequest` only.
- `$hls` rules only apply to HLS playlists, which are UTF-8 encoded text starting with the line `#EXTM3U`.
Any other response will not be modified by these rules.
Expand Down Expand Up @@ -2312,7 +2312,7 @@ In case of multiple `$removeheader` rules matching a single request, we will app

:::caution Restrictions

This type of rules can be used [**only in trusted filters**](#trusted-filters).
This type of rules can only be used [**in trusted filters**](#trusted-filters).

1. In order to avoid compromising the security `$removeheader` cannot remove headers from the list below:
- `access-control-allow-origin`
Expand Down Expand Up @@ -2384,8 +2384,6 @@ Rules with `$removeheader` modifier are supported by AdGuard for Windows, AdGuar

Rules with `$removeparam` modifier are intended to strip query parameters from requests' URLs. Please note that such rules are only applied to `GET`, `HEAD`, `OPTIONS`, and sometimes `POST` requests.

`$removeparam` rules that do not have any [content type modifiers](#content-type-modifiers) will match only requests where content type is `document`.

**Syntax**

**Basic syntax**
Expand Down Expand Up @@ -2551,10 +2549,9 @@ With these rules, specified UTM parameters will be removed from any request save

:::caution Restrictions

- Rules with `$removeparam` modifier can be used [**only in trusted filters**](#trusted-filters).
- `$removeparam` rules are compatible with [basic modifiers](#basic-rules-basic-modifiers),
[content-type modifiers](#content-type-modifiers), and with `$important` and `$app` modifiers.
Rules with any other modifiers are considered invalid and will be discarded.
1. Rules with the `$removeparam` modifier can only be used [**in trusted filters**](#trusted-filters).
1. `$removeparam` rules are compatible with [basic modifiers](#basic-rules-basic-modifiers), [content-type modifiers](#content-type-modifiers), and with the `$important` and `$app` modifiers. Rules with any other modifiers are considered invalid and will be discarded.
1. `$removeparam` rules without [content type modifiers](#content-type-modifiers) will only match requests where the content type is `document`.

:::

Expand Down Expand Up @@ -2633,7 +2630,7 @@ http://regexr.com/3cesk
:::caution Restrictions
Rules with `$replace` modifier can be used [**only in trusted filters**](#trusted-filters).
Rules with the `$replace` modifier can only be used [**in trusted filters**](#trusted-filters).
:::
Expand Down Expand Up @@ -2728,7 +2725,7 @@ the request to `https://example.com/firstpath` will be blocked.
:::caution Restrictions
Rules with the `$urltransform` modifier can be used [**only in trusted filters**](#trusted-filters).
Rules with the `$urltransform` modifier can only be used [**in trusted filters**](#trusted-filters).
:::
Expand Down Expand Up @@ -4157,7 +4154,7 @@ In other cases it is better to change the original rule, using domain restrictio
:::caution Restrictions
JavaScript rules can be used [**only in trusted filters**](#trusted-filters).
JavaScript rules can only be used [**in trusted filters**](#trusted-filters).
:::
Expand Down Expand Up @@ -4286,7 +4283,7 @@ Trusted scriptlets are not compatible with other ad blockers except AdGuard.
:::caution Restrictions
Trusted scriptlets rules can be used [**only in trusted filters**](#trusted-filters).
Trusted scriptlets rules can only be used [**in trusted filters**](#trusted-filters).
:::
Expand Down

0 comments on commit 220c39a

Please sign in to comment.