aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-12 15:42:33 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-12 15:42:33 +0000
commitb4f9c4090f53a867f5a6eadff495c12f66e4e24c (patch)
tree3e01e0de0268e5a61def191bde0dc1618a667d16 /doc
parentfc248c371b6b67d336a36947cd75a421e89be68a (diff)
downloadrspamd-b4f9c4090f53a867f5a6eadff495c12f66e4e24c.tar.gz
rspamd-b4f9c4090f53a867f5a6eadff495c12f66e4e24c.zip
Update documentation
Diffstat (limited to 'doc')
-rw-r--r--doc/markdown/modules/multimap.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/markdown/modules/multimap.md b/doc/markdown/modules/multimap.md
index 2912b923d..5d066d67f 100644
--- a/doc/markdown/modules/multimap.md
+++ b/doc/markdown/modules/multimap.md
@@ -90,6 +90,9 @@ URL maps allows another set of filters (by default, url maps are matched using h
* `tld` - matches TLD (top level domain) part of urls
* `full` - matches the complete URL not the hostname
* `is_phished` - matches hostname but if and only if the URL is phished (e.g. pretended to be from another domain)
+* `regexp:/re/` - extracts generic information using the specified regular expression from the hostname
+* `tld:regexp:/re/` - extracts generic information using the specified regular expression from the TLD part
+* `full:regexp:/re/` - extracts generic information using the specified regular expression from the full URL text
Here are some examples of pre-filter configurations:
@@ -114,4 +117,10 @@ url_map {
map = "file:///tmp/url.map";
symbol = "URL_MAP";
}
+url_tld_re {
+ type = "url";
+ filter = "tld:regexp:/\.[^.]+$/"; # Extracts the last component of URL
+ map = "file:///tmp/url.map";
+ symbol = "URL_MAP_RE";
+}
~~~ \ No newline at end of file