Skip to content

Commit

Permalink
Merge pull request #386 from AdguardTeam/$referrerpolicy-fix
Browse files Browse the repository at this point in the history
Update $referrerpolicy info
  • Loading branch information
anastasiia-fedotova authored Dec 1, 2023
2 parents 5450f9c + 68ed562 commit 5cc1da2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions docs/general/ad-filtering/create-own-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -1865,21 +1865,14 @@ If the response carries an HTML document with a `<meta name="referrer"...` tag,
An exception rule with a modifier value disables the blocking rule with the same modifier value.
An exception rule without a modifier value disables all matched referrer-policy rules.

If a request matches multiple `$referrerpolicy` rules not disabled by exceptions, only one of them (it is not specified which one) is applied.
If a request matches multiple `$referrerpolicy` rules not disabled by exceptions, only one of them (it is not specified which one) is applied. `$referrerpolicy` rules without specified [content-type modifiers](#content-type-modifiers) apply to `$document` and `$subdocument` content types.

**Examples**

- `||example.com^$referrerpolicy=unsafe-url` overrides the referrer policy for `example.com` with `unsafe-url`.
- `@@||example.com^$referrerpolicy=unsafe-url` disables the previous rule.
- `@@||example.com/abcd.html^$referrerpolicy` disables all `$referrerpolicy` rules on `example.com/abcd.html`.

:::caution Restrictions

`$referrerpolicy` rules are compatible only with
`$document` and `$subdocument` [content-type modifiers](#content-type-modifiers).

:::

:::info Compatibility

Rules with the `$referrerpolicy` modifier are supported by AdGuard for Windows, Mac, and Android,
Expand Down

0 comments on commit 5cc1da2

Please sign in to comment.