Check for redirected URLs in messages then add the URLs to a list of URIs which can then be scored and accessed by other plug-ins.
warden --task=antispam:plugin:redirectors
Option |
Value | Default | Description |
|---|---|---|---|
--url_redirector_cache_type |
<string> | none | The cache type that is being utilized. High volume servers should use DBI to cache lookups to MariaDB/MySQL. |
--url_redirector_cache_autoclean |
<string> | 1000 | Automatically purge old entries from database. The value describes a random run chance of 1/x. The default value of 1000 means that cleaning is run approximately once for every 1000 messages processed. A value of 1 would mean database is cleaned every time a message is processed. Set 0 to disable automatic cleaning and to do it manually. |
--url_redirector_loginfo |
<string> | 0 | If this option is enabled then redirected URLs and the decoded URLs will be logged with info priority. |
--url_redirector_timeout |
<string> | 5 | The maximum time a redirection URL HTTP request can take, in seconds. |
--max_redir_urls |
<string> | 10 | The maximum amount of redirector URLs that will be looked up per message. Chained redirections are not counted, only initial short URLs found. Setting it to 0 disables HTTP requests, allowing only redir_url() test to work and report any found redirector URLs. |
--max_redir_url_redirections |
<string> | 10 | The maximum depth of chained redirections that a redirector can generate. |
--url_redirector_user_agent |
<string> | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36 | The user-agent header for HTTP requests. Some services require it to look like a common browser. |
--url_redirector_params |
<string> | (?:adurl|af_web_dp|cm_destination|continue|destination|destURL|goto|h|l|login|location|p1|pval|r|redir|redirect|redirectTo|ret_url|return|returnUrl|referer|service|target|tid|u|url)=(.*) | The regexp used to parse URI parameters in order to detect redirectors and to get redirected domains. The regexp must match only the redirected domain. |
--url_redirector |
<string1,string2> | Domains that should be considered as an URL redirector. If the domain begins with a ".", 3rd level tld of the main domain will be checked. | |
--url_redirector_add |
<string> | Add a single domain to url_redirector | |
--url_redirector_del |
<string> | Remove a single domain from url_redirector. | |
--url_redirector_get |
<string1,string2> | Alias to url_redirector. The http GET method will be used to check those domains. | |
--url_redirector_get_add |
<string> | Add a single domain to url_redirector_get. | |
--url_redirector_get_del |
<string> | Remove a single domain from url_redirector_get. | |
--clear_url_redirector |
<string1,string2> | Clear configured url_redirector and url_redirector_get domains, for example to for example to override default settings from an update channel. If domains are specified, then only those are removed from list. | |
--clear_url_redirector_add |
<string> | Add a single domain to clear_url_redirector. | |
--clear_url_redirector_del |
<string> | Remove a single domain from clear_url_redirector. | |
--default |
<yes> | Reset all settings to their default values. | |
--default_option |
<option> | Reset a specific setting to its default value. | |
--reload |
<yes> | Reload the service after saving settings. |
// set the url_redirector_cache_type to cache to MariaDB/MySQL
warden --task=antispam:plugin:redirectors --url_redirector_cache_type=dbi --reload=yes
// reset url_redirector_cache_type to its default value
warden --task=antispam:plugin:redirectors --default_option=url_redirector_cache_type --reload=yes
// reset all settings to their default values
warden --task=antispam:plugin:redirectors --default=yes --reload=yes