---
title: 'antispam:plugin:urilocalbl'
url: 'https://docs.danami.com/warden/command-line-interface/antispam/antispam-plugin-urilocalbl'
markdown: 'https://docs.danami.com/warden/command-line-interface/antispam/antispam-plugin-urilocalbl.md'
date: '2026-10-07'
description: '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:…'
taxonomy:
  category:
    - docs
  tag:
    - urilocalbl
---

[](#)  [ Basics ](https://docs.danami.com/warden/)     [ Command Line Interface ](https://docs.danami.com/warden/command-line-interface)      Antispam       antispam:plugin:urilocalbl    

# 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](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` | <string1,string2> |  | Block URIs pointing to these CIDRs. These rules apply to the URIs found in the HTML portion of a message. (CIDRs) |
| `--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` | <string1,string2> |  | 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` | <int> | 3.25 | The score to apply to the `URILOCALBL_BAD_COUNTRY` rule. |
| `--urilocalbl_bad_continent_score` | <int> | 3.25 | The score to apply to the `URILOCALBL_BAD_CONTINENT` rule. |
| `--urilocalbl_bad_cidr_score` | <int> | 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

// block URIs from a known bad CIDR range, except the company's public wiki
warden --task=antispam:plugin:urilocalbl --urilocalbl_bad_cidr_add='203.0.113.0/24' --urilocalbl_bad_exclude_add='wiki.example.com' --reload=yes
```

## Related Pages

- [URILocalBL Settings](https://docs.danami.com/warden/settings/antispam/plugin-settings/urilocalbl "URILocalBL Settings")
- [URILocalBL](https://docs.danami.com/warden/user-guide/antispam-plugins/urilocalbl "URILocalBL")

 [ ](https://docs.danami.com/warden/user-guide/antispam-plugins/urilocalbl) [](https://docs.danami.com/warden/settings/antispam/plugin-settings/urilocalbl)

---

## Navigation

- Previous: [antispam:plugin:uridnsbl](https://docs.danami.com/warden/command-line-interface/antispam/antispam-plugin-uridnsbl.md)
- Next: [antispam:plugin:vbounce](https://docs.danami.com/warden/command-line-interface/antispam/antispam-plugin-vbounce.md)
