-
Notifications
You must be signed in to change notification settings - Fork 194
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
update compatibiltiy for $method modifier #204
Closed
Closed
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1624471
update compatibiltiy
stanislav-atr 09dde02
fix version phrasing
stanislav-atr 0da4bce
describe modifier more
stanislav-atr 3d069f5
add tsurlfilter version
stanislav-atr 7d4a32d
Update docs/general/ad-filtering/create-own-filters.md
stanislav-atr 7b70406
Update docs/general/ad-filtering/create-own-filters.md
stanislav-atr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -409,16 +409,21 @@ This modifier defines a rule which applies only to addresses that match the case | |
|
||
#### **`$method`** {#method-modifier} | ||
|
||
This modifier limits the rule scope to requests that use the specified set of HTTP methods. Negated methods are allowed. The methods must be specified in all lowercase characters, but are matched case-insensitively. | ||
This modifier limits the rule scope to requests that use the specified set of HTTP methods. Negated methods are allowed. The methods must be specified in all lowercase characters, but are matched case-insensitively. To add multiple domains to one rule, use the `|` character as a separator. | ||
|
||
**Examples** | ||
|
||
* `||evil.com^$method=get|head` blocks only GET and HEAD requests to `evil.com`. | ||
* `||evil.com^$method=~post|~put` blocks any requests except POST or PUT to `evil.com`. | ||
* `||evil.com^$method=~post|~put` blocks any requests to `evil.com`,except POST or PUT. | ||
* `@@||evil.com$method=get` unblocks only GET requests to `evil.com`. | ||
* `@@||evil.com$method=~post` blocks any requests to `evil.com`, except POST. | ||
stanislav-atr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Please note, that rules with mixed value restriction are considered invalid. So, for example, the rule | ||
`||evil.com^$method=get|~head` will be rejected. | ||
|
||
> **Compatibility with different versions of AdGuard** | ||
> | ||
> `$method` is available starting with CoreLibs v1.12. | ||
> Rules with the `$method` are supported by AdGuard for Windows, Mac, Android, **running CoreLibs v1.12 or later**, and AdGuard Browser extension for Chrome, Firefox, Edge. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Starting with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ameshkov v4.2, but we were considering adding TSUrlFilter version here, in a similar fashion as CoreLibs |
||
|
||
#### **`$popup`** {#popup-modifier} | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
пробел после запятой
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ лишний после
any requests