-
Notifications
You must be signed in to change notification settings - Fork 82
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
Filter HTTP method (GET, POST...) #2117
Comments
Maybe possible use to disable redirect with forms on phishing pages... |
You will need to provide real world use case for this. |
Even though no concrete cases has been provided, I will consider implementing this just for the sake of being on par with the declarativeNetRequest API which supports filtering on request method: https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#type-RequestMethod. |
@gorhill Thank you. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Related issue: - uBlockOrigin/uBlock-issues#2117 Option: `method=` Value: a list of `|`-separated lowercased method names. Negated method names are allowed. These are valid methods: - connect - delete - get - head - options - patch - post - put As per DNR's own documentation: - https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#type-RequestMethod The logger shows the method used for every network request. It's possible to filter the logger output for most-common methods: `get`, `head`, `post`.
Now if you add |
…hostname Related issue: - uBlockOrigin/uBlock-issues#2117
@MasterKia Need to implement a whitelist of all valid methods, like gorhill did for pseudoclasses/selectors. |
And share as fork of uBo? |
Prerequisites
I tried to reproduce the issue when...
Description
Implement filtering of network requests by HTTP method.
A specific URL where the issue occurs
Steps to Reproduce
||www.example.com^$method=post
Expected behavior
Should block any request to www.example.com that uses the HTTP method POST.
Actual behavior
Does not block.
uBlock Origin version
1.42.4
Browser name and version
Operating System and version
The text was updated successfully, but these errors were encountered: