Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

CLI Reference

blocklist

Use this command to configure blocklist operations.

Syntax

execute blocklist add

execute blocklist backup

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>

 

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

Use this command to configure blocklist operations.

Syntax

execute blocklist add

execute blocklist backup

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>

 

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