Redirectors Settings

url_redirector_cache_type - url_redirector_cache_type
The cache type that is being utilized. High volume servers should use DBI to cache lookups to MariaDB/MySQL.
Default: none

url_redirector_cache_ttl - url_redirector_cache_ttl
The length of time a cache entry will be valid for in seconds.
Default: 86400

url_redirector_cache_autoclean - url_redirector_cache_autoclean
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.
Default: 1000

url_redirector_loginfo - url_redirector_loginfo
If this option is enabled then redirected URLs and the decoded URLs will be logged with info priority.
Default: 0

url_redirector_timeout - url_redirector_timeout
The maximum time a redirection URL HTTP request can take, in seconds.
Default: 5

max_redir_urls - max_redir_urls
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.
Default: 10

max_redir_url_redirections - max_redir_url_redirections
The maximum depth of chained redirections that a redirector can generate.
Default: 10

url_redirector_user_agent - url_redirector_user_agent
The user-agent header for HTTP requests. Some services require it to look like a common browser.
Default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36

url_redirector_params - url_redirector_params
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.
Default: (?: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)=(.*)

url_redirector - url_redirector
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.
Default: empty

url_redirector_get - url_redirector_get
Alias to url_redirector. The http GET method will be used to check those domains.
Default: empty

clear_url_redirector - clear_url_redirector
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.
Default: empty

Related Pages