aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/UrlFilter.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/UrlFilter.md b/doc/UrlFilter.md
index cea2397..b521228 100644
--- a/doc/UrlFilter.md
+++ b/doc/UrlFilter.md
@@ -19,13 +19,17 @@ There are 4 Filter Domain types:
## FilterRule
Filter rules contain information on how a request should be modified.
-### "action"
+### Action
- Whitelist - allow this request
- Blacklist - block this request
- Redirect - redirect this request
- SetHeader - apply a list of headers
-### "regexp", "contains", "endswith"
+### Match Type
+- "regexp"
+- "contains"
+- "endswith"
+- if none is specified, all URLs are matched
### JSON
Allow all URLs that contain "waifu.png"
@@ -56,7 +60,7 @@ Redirect URLs containing "ads/annoying-spam.gif" to "waifu.tld/waifu.gif"
Set some headers
{
"action" : "SetHeader"
- "header" : [ "DNT" : "1" ]
+ "headers" : [ "DNT:1" ]
}
## QWebEngineUrlRequestInterceptor