---
title: 'DecodeShortUrls Settings'
url: 'https://docs.danami.com/warden/settings/antispam/plugin-settings/decodeshorturls'
markdown: 'https://docs.danami.com/warden/settings/antispam/plugin-settings/decodeshorturls.md'
date: '2026-09-22'
description: 'URL shortener cache type - url_shortener_cache_type The cache type that is being utilized. Most servers should use dbi to cache lookups to MariaDB/MySQL. Default: dbi URL shortener cache TTL - url_shortener_cache_ttl The length of time a cache entry will be valid for in seconds. Default: 86400 URL …'
taxonomy:
  category:
    - docs
  tag:
    - decodeshorturls
---

[](#)  [ Basics ](https://docs.danami.com/warden/)     [ Settings ](https://docs.danami.com/warden/settings)     [ Antispam ](https://docs.danami.com/warden/settings/antispam)     [ Plugin Settings ](https://docs.danami.com/warden/settings/antispam/plugin-settings)      DecodeShortUrls Settings    

# DecodeShortUrls Settings

**URL shortener cache type** - `url_shortener_cache_type`
The cache type that is being utilized. Most servers should use dbi to cache lookups to MariaDB/MySQL.
Default: dbi

**URL shortener cache TTL** - `url_shortener_cache_ttl`
The length of time a cache entry will be valid for in seconds.
Default: 86400

**URL shortener cache autoclean** - `url_shortener_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 shortener log info** - `url_shortener_loginfo`
If this option is enabled then short URLs and the decoded URLs will be logged with info priority.
Default: 0

**URL shortener timeout** - `url_shortener_timeout`
The maximum time a short URL HTTP request can take, in seconds.
Default: 5

**Max short URLs** - `max_short_urls`
The maximum amount of short URLs that will be looked up per message. Chained redirections are not counted, only initial short URLs found.
Default: 10

**Max short URL redirections** - `max_short_url_redirections`
The maximum depth of chained redirections that a short URL can generate.
Default: 10

**URL shortener user agent** - `url_shortener_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 shortener custom user agents** - `url_shortener_custom_user_agent`
The custom HTTP user-agents to be used for specific domains, instead of the default specified in url\_shortener\_user\_agent. Required for some services like t.co to return blocked URL correctly. (SA 4.0.2+)
Default: empty

**URL shorteners** - `url_shortener`
Domains that should be considered as an URL shortener. If the domain begins with a ".", 3rd level tld of the main domain will be checked.
Default: empty

**URL shorteners use GET method** - `url_shortener_get`
Alias to url\_shortener. The HTTP request will be done with with a GET method, instead of the default HEAD. Required for some services like bit.ly to return blocked URL correctly.
Default: empty

**Clear URL shorteners** - `clear_url_shortener`
Clear configured url\_shortener and url\_shortener\_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

- [DecodeShortUrls](https://docs.danami.com/warden/user-guide/antispam-plugins/decodeshorturls "DecodeShortUrls")

 [ ](https://docs.danami.com/warden/command-line-interface/antispam/antispam-plugin-decodeshorturls)

---

## Navigation

- Parent: [Plugin Settings](https://docs.danami.com/warden/settings/antispam/plugin-settings.md)
- Previous: [DCC Settings](https://docs.danami.com/warden/settings/antispam/plugin-settings/dcc.md)
- Next: [DKIM Settings](https://docs.danami.com/warden/settings/antispam/plugin-settings/dkim.md)
