aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-07-07 19:45:45 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-07-07 19:45:45 +0200
commit0e4ee2ed1c64130262e42ddfc87f2d8944c5a10c (patch)
tree45b852937529d19101dee06c82c924c57c3a47aa /doc
parentAdd web/urlfilter (diff)
downloadsmolbote-0e4ee2ed1c64130262e42ddfc87f2d8944c5a10c.tar.xz
Integrate urlfilter with urlrequestinterceptor
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