Fortinet white logo
Fortinet white logo

CLI Reference

blocklist

blocklist

Use this command to configure blocklist operations.

Syntax

execute blocklist add

execute blocklist backup

execute blocklist display

execute blocklist purge

execute blocklist remove

execute blocklist restore

Variable

Description

Default

add

Add a domain or user level blocklist, or system level blocklist, as shown below (respectively):

execute blocklist add [domain | user] <domain-name | user-name> <list-content>

execute blocklist add [system] <list-content>

backup

Backup a domain or user level blocklist, or system level blocklist to a TFTP server, as shown below (respectively):

execute blocklist backup [domain | user] <domain-name | user-name> <tftp-server-ip> <file-name>

execute blocklist backup [system] <tftp-server-ip> <file-name>

display

Dispaly a domain or user level blocklist, or system level blocklist, as shown below (respectively):

execute blocklist display [domain | user] <domain-name | user-name>

execute blocklist display [system]

purge

Purge a domain or user level blocklist, or system level blocklist, as shown below (respectively):

execute blocklist purge [domain | user] <domain-name-list | user-name-list>

execute blocklist purge [system]

remove

Remove a domain or user level blocklist, or system level blocklist, as shown below (respectively):

execute blocklist remove [domain | user] <domain-name | user-name> <list-content>

execute blocklist remove [system] <list-content>

restore

Restore a domain or user level blocklist, or system level blocklist from a TFTP server, as shown below (respectively):

execute blocklist restore [domain | user] <domain-name | user-name> <tftp-server-ip> <file-name>

execute blocklist restore [system] <tftp-server-ip> <file-name>

Related topics

safelist

blocklist

blocklist

Use this command to configure blocklist operations.

Syntax

execute blocklist add

execute blocklist backup

execute blocklist display

execute blocklist purge

execute blocklist remove

execute blocklist restore

Variable

Description

Default

add

Add a domain or user level blocklist, or system level blocklist, as shown below (respectively):

execute blocklist add [domain | user] <domain-name | user-name> <list-content>

execute blocklist add [system] <list-content>

backup

Backup a domain or user level blocklist, or system level blocklist to a TFTP server, as shown below (respectively):

execute blocklist backup [domain | user] <domain-name | user-name> <tftp-server-ip> <file-name>

execute blocklist backup [system] <tftp-server-ip> <file-name>

display

Dispaly a domain or user level blocklist, or system level blocklist, as shown below (respectively):

execute blocklist display [domain | user] <domain-name | user-name>

execute blocklist display [system]

purge

Purge a domain or user level blocklist, or system level blocklist, as shown below (respectively):

execute blocklist purge [domain | user] <domain-name-list | user-name-list>

execute blocklist purge [system]

remove

Remove a domain or user level blocklist, or system level blocklist, as shown below (respectively):

execute blocklist remove [domain | user] <domain-name | user-name> <list-content>

execute blocklist remove [system] <list-content>

restore

Restore a domain or user level blocklist, or system level blocklist from a TFTP server, as shown below (respectively):

execute blocklist restore [domain | user] <domain-name | user-name> <tftp-server-ip> <file-name>

execute blocklist restore [system] <tftp-server-ip> <file-name>

Related topics

safelist