antispam:plugin:urilocalbl

Blacklist URIs using local country and CIDR information.

warden --task=antispam:plugin:urilocalbl
Option
Value Default Description
--urilocalbl_bad_country <string1,string2> Block URIs pointing to these countries. These rules apply to the URIs found in the HTML portion of a message. See: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
--urilocalbl_bad_country_add <string> Add a single entry to urilocalbl_bad_country.
--urilocalbl_bad_country_del <string> Remove a single entry from urilocalbl_bad_country.
--urilocalbl_bad_continent <string1,string2> Block URIs pointing to these continents. These rules apply to the URIs found in the HTML portion of a message. Continents: AF, NA, OC, AN, AS, EU, SA
--urilocalbl_bad_continent_add <string> Add a single entry to urilocalbl_bad_continent.
--urilocalbl_bad_continent_del <string> Remove a single entry from urilocalbl_bad_continent.
--urilocalbl_bad_cidr <string> Block URIs pointing to these CIDRs. These rules apply to the URIs found in the HTML portion of a message.
--urilocalbl_bad_cidr_add <string> Add a single entry to urilocalbl_bad_cidr.
--urilocalbl_bad_cidr_del <string> Remove a single entry from urilocalbl_bad_cidr.
--urilocalbl_bad_exclude <string> Exclude these URIs from being blocked.
--urilocalbl_bad_exclude_add <string> Add a single entry to urilocalbl_bad_exclude.
--urilocalbl_bad_exclude_del <string> Remove a single entry from urilocalbl_bad_exclude.
--urilocalbl_bad_country_score <string> 3.25 The score to apply to the URILOCALBL_BAD_COUNTRY rule.
--urilocalbl_bad_continent_score <string> 3.25 The score to apply to the URILOCALBL_BAD_CONTINENT rule.
--urilocalbl_bad_cidr_score <string> 3.25 The score to apply to the URILOCALBL_BAD_CIDR rule.
--uri_country_db_path (SA 3.4) <string> /usr/share/GeoIP/GeoLite2-Country.mmdb The path to the MaxMind GeoIP2 database.
--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.

Examples

// add China and Bulgaria to urilocalbl_bad_country
warden --task=antispam:plugin:urilocalbl ---urilocalbl_bad_country='cn,bg' --reload=yes

// reset urilocalbl_bad_country to its default value
warden --task=antispam:plugin:urilocalbl --default_option=urilocalbl_bad_country --reload=yes

// reset all settings to their default values
warden --task=antispam:plugin:urilocalbl --default=yes --reload=yes

Related Pages