Fortinet white logo
Fortinet white logo

CLI Reference

config webfilter profile

config webfilter profile

Configure Web filter profiles.

config webfilter profile
    Description: Configure Web filter profiles.
    edit <name>
        config antiphish
            Description: AntiPhishing profile.
            set authentication [domain-controller|ldap]
            set check-basic-auth [enable|disable]
            set check-uri [enable|disable]
            set check-username-only [enable|disable]
            config custom-patterns
                Description: Custom username and password regex patterns.
                edit <pattern>
                    set category [username|password]
                    set type [regex|literal]
                next
            end
            set default-action [exempt|log|...]
            set domain-controller {string}
            config inspection-entries
                Description: AntiPhishing entries.
                edit <name>
                    set action [exempt|log|...]
                    set fortiguard-category {user}
                next
            end
            set ldap {string}
            set max-body-len {integer}
            set status [enable|disable]
        end
        set comment {var-string}
        set extended-log [enable|disable]
        set feature-set [flow|proxy]
        config ftgd-wf
            Description: FortiGuard Web Filter settings.
            set exempt-quota {user}
            config filters
                Description: FortiGuard filters.
                edit <id>
                    set action [block|authenticate|...]
                    set auth-usr-grp <name1>, <name2>, ...
                    set category {integer}
                    set log [enable|disable]
                    set override-replacemsg {string}
                    set warn-duration {user}
                    set warning-duration-type [session|timeout]
                    set warning-prompt [per-domain|per-category]
                next
            end
            set max-quota-timeout {integer}
            set options {option1}, {option2}, ...
            set ovrd {user}
            config quota
                Description: FortiGuard traffic quota settings.
                edit <id>
                    set category {user}
                    set duration {user}
                    set override-replacemsg {string}
                    set type [time|traffic]
                    set unit [B|KB|...]
                    set value {integer}
                next
            end
            set rate-crl-urls [disable|enable]
            set rate-css-urls [disable|enable]
            set rate-javascript-urls [disable|enable]
        end
        set https-replacemsg [enable|disable]
        set log-all-url [enable|disable]
        set options {option1}, {option2}, ...
        config override
            Description: Web Filter override settings.
            set ovrd-cookie [allow|deny]
            set ovrd-dur {user}
            set ovrd-dur-mode [constant|ask]
            set ovrd-scope [user|user-group|...]
            set ovrd-user-group <name1>, <name2>, ...
            set profile <name1>, <name2>, ...
            set profile-attribute [User-Name|NAS-IP-Address|...]
            set profile-type [list|radius]
        end
        set ovrd-perm {option1}, {option2}, ...
        set post-action [normal|block]
        set replacemsg-group {string}
        config web
            Description: Web content filtering settings.
            set allowlist {option1}, {option2}, ...
            set blocklist [enable|disable]
            set bword-table {integer}
            set bword-threshold {integer}
            set content-header-list {integer}
            set keyword-match <pattern1>, <pattern2>, ...
            set log-search [enable|disable]
            set safe-search {option1}, {option2}, ...
            set urlfilter-table {integer}
            set vimeo-restrict {string}
            set youtube-restrict [none|strict|...]
        end
        set web-antiphishing-log [enable|disable]
        set web-content-log [enable|disable]
        set web-extended-all-action-log [enable|disable]
        set web-filter-activex-log [enable|disable]
        set web-filter-applet-log [enable|disable]
        set web-filter-command-block-log [enable|disable]
        set web-filter-cookie-log [enable|disable]
        set web-filter-cookie-removal-log [enable|disable]
        set web-filter-js-log [enable|disable]
        set web-filter-jscript-log [enable|disable]
        set web-filter-referer-log [enable|disable]
        set web-filter-unknown-log [enable|disable]
        set web-filter-vbs-log [enable|disable]
        set web-ftgd-err-log [enable|disable]
        set web-ftgd-quota-usage [enable|disable]
        set web-invalid-domain-log [enable|disable]
        set web-url-log [enable|disable]
        set wisp [enable|disable]
        set wisp-algorithm [primary-secondary|round-robin|...]
        set wisp-servers <name1>, <name2>, ...
    next
end

config webfilter profile

Parameter

Description

Type

Size

Default

comment

Optional comments.

var-string

Maximum length: 255

extended-log

Enable/disable extended logging for web filtering.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

feature-set

Flow/proxy feature set.

option

-

flow

Option

Description

flow

Flow feature set.

proxy

Proxy feature set.

https-replacemsg

Enable replacement messages for HTTPS.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

log-all-url

Enable/disable logging all URLs visited.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

name

Profile name.

string

Maximum length: 35

options

Options.

option

-

Option

Description

activexfilter

ActiveX filter.

cookiefilter

Cookie filter.

javafilter

Java applet filter.

block-invalid-url

Block sessions contained an invalid domain name.

jscript

Javascript block.

js

JS block.

vbs

VB script block.

unknown

Unknown script block.

intrinsic

Intrinsic script block.

wf-referer

Referring block.

wf-cookie

Cookie block.

per-user-bal

Per-user block/allow list filter

ovrd-perm

Permitted override types.

option

-

Option

Description

bannedword-override

Banned word override.

urlfilter-override

URL filter override.

fortiguard-wf-override

FortiGuard Web Filter override.

contenttype-check-override

Content-type header override.

post-action

Action taken for HTTP POST traffic.

option

-

normal

Option

Description

normal

Normal, POST requests are allowed.

block

POST requests are blocked.

replacemsg-group

Replacement message group.

string

Maximum length: 35

web-antiphishing-log

Enable/disable logging of AntiPhishing checks.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-content-log

Enable/disable logging logging blocked web content.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-extended-all-action-log

Enable/disable extended any filter action logging for web filtering.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-activex-log

Enable/disable logging ActiveX.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-applet-log

Enable/disable logging Java applets.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-command-block-log

Enable/disable logging blocked commands.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-cookie-log

Enable/disable logging cookie filtering.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-cookie-removal-log

Enable/disable logging blocked cookies.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-js-log

Enable/disable logging Java scripts.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-jscript-log

Enable/disable logging JScripts.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-referer-log

Enable/disable logging referrers.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-unknown-log

Enable/disable logging unknown scripts.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-vbs-log

Enable/disable logging VBS scripts.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-ftgd-err-log

Enable/disable logging rating errors.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-ftgd-quota-usage

Enable/disable logging daily quota usage.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-invalid-domain-log

Enable/disable logging invalid domain names.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-url-log

Enable/disable logging URL filtering.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

wisp

Enable/disable web proxy WISP.

option

-

disable

Option

Description

enable

Enable web proxy WISP.

disable

Disable web proxy WISP.

wisp-algorithm

WISP server selection algorithm.

option

-

auto-learning

Option

Description

primary-secondary

Select the first healthy server in order.

round-robin

Select the next healthy server.

auto-learning

Select the lightest loading healthy server.

wisp-servers <name>

WISP servers.

Server name.

string

Maximum length: 79

config antiphish

Parameter

Description

Type

Size

Default

authentication

Authentication methods.

option

-

domain-controller

Option

Description

domain-controller

Domain Controller to verify user credential.

ldap

LDAP to verify user credential.

check-basic-auth

Enable/disable checking of HTTP Basic Auth field for known credentials.

option

-

disable

Option

Description

enable

Enable checking of HTTP Basic Auth field for known credentials.

disable

Disable checking of HTTP Basic Auth field for known credentials.

check-uri

Enable/disable checking of GET URI parameters for known credentials.

option

-

disable

Option

Description

enable

Enable checking of GET URI for username and password fields.

disable

Disable checking of GET URI for username and password fields.

check-username-only

Enable/disable username only matching of credentials. Action will be taken for valid usernames regardless of password validity.

option

-

disable

Option

Description

enable

Enable username only credential matches.

disable

Disable username only credential matches.

default-action

Action to be taken when there is no matching rule.

option

-

exempt

Option

Description

exempt

Exempt requests from matching.

log

Log all matched requests.

block

Block all matched requests.

domain-controller

Domain for which to verify received credentials against.

string

Maximum length: 63

ldap

LDAP server for which to verify received credentials against.

string

Maximum length: 63

max-body-len

Maximum size of a POST body to check for credentials.

integer

Minimum value: 0 Maximum value: 4294967295

65536

status

Toggle AntiPhishing functionality.

option

-

disable

Option

Description

enable

Enable AntiPhishing functionality.

disable

Disable AntiPhishing functionality.

config custom-patterns

Parameter

Description

Type

Size

Default

category

Category that the pattern matches.

option

-

username

Option

Description

username

Pattern matches username fields.

password

Pattern matches password fields.

pattern

Target pattern.

string

Maximum length: 255

type

Pattern will be treated either as a regex pattern or literal string.

option

-

regex

Option

Description

regex

Pattern will be treated as a regex pattern.

literal

Pattern will be treated as a literal string.

config inspection-entries

Parameter

Description

Type

Size

Default

action

Action to be taken upon an AntiPhishing match.

option

-

exempt

Option

Description

exempt

Exempt requests from matching.

log

Log all matched requests.

block

Block all matched requests.

fortiguard-category

FortiGuard category to match.

user

Not Specified

0

name

Inspection target name.

string

Maximum length: 63

config ftgd-wf

Parameter

Description

Type

Size

Default

exempt-quota

Do not stop quota for these categories.

user

Not Specified

17

max-quota-timeout

Maximum FortiGuard quota used by single page view in seconds (excludes streams).

integer

Minimum value: 1 Maximum value: 86400

300

options

Options for FortiGuard Web Filter.

option

-

ftgd-disable

Option

Description

error-allow

Allow web pages with a rating error to pass through.

rate-server-ip

Rate the server IP in addition to the domain name.

connect-request-bypass

Bypass connection which has CONNECT request.

ftgd-disable

Disable FortiGuard scanning.

ovrd

Allow web filter profile overrides.

user

Not Specified

rate-crl-urls

Enable/disable rating CRL by URL.

option

-

enable

Option

Description

disable

Disable rating CRL by URL.

enable

Enable rating CRL by URL.

rate-css-urls

Enable/disable rating CSS by URL.

option

-

enable

Option

Description

disable

Disable rating CSS by URL.

enable

Enable rating CSS by URL.

rate-javascript-urls

Enable/disable rating JavaScript by URL.

option

-

enable

Option

Description

disable

Disable rating JavaScript by URL.

enable

Enable rating JavaScript by URL.

config filters

Parameter

Description

Type

Size

Default

action

Action to take for matches.

option

-

monitor

Option

Description

block

Block access.

authenticate

Authenticate user before allowing access.

monitor

Allow access while logging the action.

warning

Allow access after warning the user.

auth-usr-grp <name>

Groups with permission to authenticate.

User group name.

string

Maximum length: 79

category

Categories and groups the filter examines.

integer

Minimum value: 0 Maximum value: 255

0

id

ID number.

integer

Minimum value: 0 Maximum value: 255

0

log

Enable/disable logging.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

override-replacemsg

Override replacement message.

string

Maximum length: 28

warn-duration

Duration of warnings.

user

Not Specified

5m

warning-duration-type

Re-display warning after closing browser or after a timeout.

option

-

timeout

Option

Description

session

After session ends.

timeout

After timeout occurs.

warning-prompt

Warning prompts in each category or each domain.

option

-

per-category

Option

Description

per-domain

Per-domain warnings.

per-category

Per-category warnings.

config quota

Parameter

Description

Type

Size

Default

category

FortiGuard categories to apply quota to (category action must be set to monitor).

user

Not Specified

duration

Duration of quota.

user

Not Specified

5m

id

ID number.

integer

Minimum value: 0 Maximum value: 4294967295

0

override-replacemsg

Override replacement message.

string

Maximum length: 28

type

Quota type.

option

-

time

Option

Description

time

Use a time-based quota.

traffic

Use a traffic-based quota.

unit

Traffic quota unit of measurement.

option

-

MB

Option

Description

B

Quota in bytes.

KB

Quota in kilobytes.

MB

Quota in megabytes.

GB

Quota in gigabytes.

value

Traffic quota value.

integer

Minimum value: 1 Maximum value: 4294967295

1024

config override

Parameter

Description

Type

Size

Default

ovrd-cookie

Allow/deny browser-based (cookie) overrides.

option

-

deny

Option

Description

allow

Allow browser-based (cookie) override.

deny

Deny browser-based (cookie) override.

ovrd-dur

Override duration.

user

Not Specified

15m

ovrd-dur-mode

Override duration mode.

option

-

constant

Option

Description

constant

Constant mode.

ask

Prompt for duration when initiating an override.

ovrd-scope

Override scope.

option

-

user

Option

Description

user

Override for the user.

user-group

Override for the user's group.

ip

Override for the initiating IP.

browser

Create browser-based (cookie) override.

ask

Prompt for scope when initiating an override.

ovrd-user-group <name>

User groups with permission to use the override.

User group name.

string

Maximum length: 79

profile <name>

Web filter profile with permission to create overrides.

Web profile.

string

Maximum length: 79

profile-attribute

Profile attribute to retrieve from the RADIUS server.

option

-

Login-LAT-Service

Option

Description

User-Name

Use this attribute.

NAS-IP-Address

Use this attribute.

Framed-IP-Address

Use this attribute.

Framed-IP-Netmask

Use this attribute.

Filter-Id

Use this attribute.

Login-IP-Host

Use this attribute.

Reply-Message

Use this attribute.

Callback-Number

Use this attribute.

Callback-Id

Use this attribute.

Framed-Route

Use this attribute.

Framed-IPX-Network

Use this attribute.

Class

Use this attribute.

Called-Station-Id

Use this attribute.

Calling-Station-Id

Use this attribute.

NAS-Identifier

Use this attribute.

Proxy-State

Use this attribute.

Login-LAT-Service

Use this attribute.

Login-LAT-Node

Use this attribute.

Login-LAT-Group

Use this attribute.

Framed-AppleTalk-Zone

Use this attribute.

Acct-Session-Id

Use this attribute.

Acct-Multi-Session-Id

Use this attribute.

profile-type

Override profile type.

option

-

list

Option

Description

list

Profile chosen from list.

radius

Profile determined by RADIUS server.

config web

Parameter

Description

Type

Size

Default

allowlist

FortiGuard allowlist settings.

option

-

Option

Description

exempt-av

Exempt antivirus.

exempt-webcontent

Exempt web content.

exempt-activex-java-cookie

Exempt ActiveX-JAVA-Cookie.

exempt-dlp

Exempt DLP.

exempt-rangeblock

Exempt RangeBlock.

extended-log-others

Support extended log.

blocklist

Enable/disable automatic addition of URLs detected by FortiSandbox to blocklist.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

bword-table

Banned word table ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

bword-threshold

Banned word score threshold.

integer

Minimum value: 0 Maximum value: 2147483647

10

content-header-list

Content header list.

integer

Minimum value: 0 Maximum value: 4294967295

0

keyword-match <pattern>

Search keywords to log when match is found.

Pattern/keyword to search for.

string

Maximum length: 79

**

log-search

Enable/disable logging all search phrases.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

safe-search

Safe search type.

option

-

Option

Description

url

Insert safe search string into URL.

header

Insert safe search header.

urlfilter-table

URL filter table ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

vimeo-restrict

Set Vimeo-restrict ("7" = don't show mature content, "134" = don't show unrated and mature content). A value of cookie "content_rating".

string

Maximum length: 63

youtube-restrict

YouTube EDU filter level.

option

-

none

Option

Description

none

Full access for YouTube.

strict

Strict access for YouTube.

moderate

Moderate access for YouTube.

** Values may differ between models.

config webfilter profile

config webfilter profile

Configure Web filter profiles.

config webfilter profile
    Description: Configure Web filter profiles.
    edit <name>
        config antiphish
            Description: AntiPhishing profile.
            set authentication [domain-controller|ldap]
            set check-basic-auth [enable|disable]
            set check-uri [enable|disable]
            set check-username-only [enable|disable]
            config custom-patterns
                Description: Custom username and password regex patterns.
                edit <pattern>
                    set category [username|password]
                    set type [regex|literal]
                next
            end
            set default-action [exempt|log|...]
            set domain-controller {string}
            config inspection-entries
                Description: AntiPhishing entries.
                edit <name>
                    set action [exempt|log|...]
                    set fortiguard-category {user}
                next
            end
            set ldap {string}
            set max-body-len {integer}
            set status [enable|disable]
        end
        set comment {var-string}
        set extended-log [enable|disable]
        set feature-set [flow|proxy]
        config ftgd-wf
            Description: FortiGuard Web Filter settings.
            set exempt-quota {user}
            config filters
                Description: FortiGuard filters.
                edit <id>
                    set action [block|authenticate|...]
                    set auth-usr-grp <name1>, <name2>, ...
                    set category {integer}
                    set log [enable|disable]
                    set override-replacemsg {string}
                    set warn-duration {user}
                    set warning-duration-type [session|timeout]
                    set warning-prompt [per-domain|per-category]
                next
            end
            set max-quota-timeout {integer}
            set options {option1}, {option2}, ...
            set ovrd {user}
            config quota
                Description: FortiGuard traffic quota settings.
                edit <id>
                    set category {user}
                    set duration {user}
                    set override-replacemsg {string}
                    set type [time|traffic]
                    set unit [B|KB|...]
                    set value {integer}
                next
            end
            set rate-crl-urls [disable|enable]
            set rate-css-urls [disable|enable]
            set rate-javascript-urls [disable|enable]
        end
        set https-replacemsg [enable|disable]
        set log-all-url [enable|disable]
        set options {option1}, {option2}, ...
        config override
            Description: Web Filter override settings.
            set ovrd-cookie [allow|deny]
            set ovrd-dur {user}
            set ovrd-dur-mode [constant|ask]
            set ovrd-scope [user|user-group|...]
            set ovrd-user-group <name1>, <name2>, ...
            set profile <name1>, <name2>, ...
            set profile-attribute [User-Name|NAS-IP-Address|...]
            set profile-type [list|radius]
        end
        set ovrd-perm {option1}, {option2}, ...
        set post-action [normal|block]
        set replacemsg-group {string}
        config web
            Description: Web content filtering settings.
            set allowlist {option1}, {option2}, ...
            set blocklist [enable|disable]
            set bword-table {integer}
            set bword-threshold {integer}
            set content-header-list {integer}
            set keyword-match <pattern1>, <pattern2>, ...
            set log-search [enable|disable]
            set safe-search {option1}, {option2}, ...
            set urlfilter-table {integer}
            set vimeo-restrict {string}
            set youtube-restrict [none|strict|...]
        end
        set web-antiphishing-log [enable|disable]
        set web-content-log [enable|disable]
        set web-extended-all-action-log [enable|disable]
        set web-filter-activex-log [enable|disable]
        set web-filter-applet-log [enable|disable]
        set web-filter-command-block-log [enable|disable]
        set web-filter-cookie-log [enable|disable]
        set web-filter-cookie-removal-log [enable|disable]
        set web-filter-js-log [enable|disable]
        set web-filter-jscript-log [enable|disable]
        set web-filter-referer-log [enable|disable]
        set web-filter-unknown-log [enable|disable]
        set web-filter-vbs-log [enable|disable]
        set web-ftgd-err-log [enable|disable]
        set web-ftgd-quota-usage [enable|disable]
        set web-invalid-domain-log [enable|disable]
        set web-url-log [enable|disable]
        set wisp [enable|disable]
        set wisp-algorithm [primary-secondary|round-robin|...]
        set wisp-servers <name1>, <name2>, ...
    next
end

config webfilter profile

Parameter

Description

Type

Size

Default

comment

Optional comments.

var-string

Maximum length: 255

extended-log

Enable/disable extended logging for web filtering.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

feature-set

Flow/proxy feature set.

option

-

flow

Option

Description

flow

Flow feature set.

proxy

Proxy feature set.

https-replacemsg

Enable replacement messages for HTTPS.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

log-all-url

Enable/disable logging all URLs visited.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

name

Profile name.

string

Maximum length: 35

options

Options.

option

-

Option

Description

activexfilter

ActiveX filter.

cookiefilter

Cookie filter.

javafilter

Java applet filter.

block-invalid-url

Block sessions contained an invalid domain name.

jscript

Javascript block.

js

JS block.

vbs

VB script block.

unknown

Unknown script block.

intrinsic

Intrinsic script block.

wf-referer

Referring block.

wf-cookie

Cookie block.

per-user-bal

Per-user block/allow list filter

ovrd-perm

Permitted override types.

option

-

Option

Description

bannedword-override

Banned word override.

urlfilter-override

URL filter override.

fortiguard-wf-override

FortiGuard Web Filter override.

contenttype-check-override

Content-type header override.

post-action

Action taken for HTTP POST traffic.

option

-

normal

Option

Description

normal

Normal, POST requests are allowed.

block

POST requests are blocked.

replacemsg-group

Replacement message group.

string

Maximum length: 35

web-antiphishing-log

Enable/disable logging of AntiPhishing checks.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-content-log

Enable/disable logging logging blocked web content.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-extended-all-action-log

Enable/disable extended any filter action logging for web filtering.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-activex-log

Enable/disable logging ActiveX.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-applet-log

Enable/disable logging Java applets.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-command-block-log

Enable/disable logging blocked commands.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-cookie-log

Enable/disable logging cookie filtering.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-cookie-removal-log

Enable/disable logging blocked cookies.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-js-log

Enable/disable logging Java scripts.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-jscript-log

Enable/disable logging JScripts.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-referer-log

Enable/disable logging referrers.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-unknown-log

Enable/disable logging unknown scripts.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-filter-vbs-log

Enable/disable logging VBS scripts.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-ftgd-err-log

Enable/disable logging rating errors.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-ftgd-quota-usage

Enable/disable logging daily quota usage.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-invalid-domain-log

Enable/disable logging invalid domain names.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

web-url-log

Enable/disable logging URL filtering.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

wisp

Enable/disable web proxy WISP.

option

-

disable

Option

Description

enable

Enable web proxy WISP.

disable

Disable web proxy WISP.

wisp-algorithm

WISP server selection algorithm.

option

-

auto-learning

Option

Description

primary-secondary

Select the first healthy server in order.

round-robin

Select the next healthy server.

auto-learning

Select the lightest loading healthy server.

wisp-servers <name>

WISP servers.

Server name.

string

Maximum length: 79

config antiphish

Parameter

Description

Type

Size

Default

authentication

Authentication methods.

option

-

domain-controller

Option

Description

domain-controller

Domain Controller to verify user credential.

ldap

LDAP to verify user credential.

check-basic-auth

Enable/disable checking of HTTP Basic Auth field for known credentials.

option

-

disable

Option

Description

enable

Enable checking of HTTP Basic Auth field for known credentials.

disable

Disable checking of HTTP Basic Auth field for known credentials.

check-uri

Enable/disable checking of GET URI parameters for known credentials.

option

-

disable

Option

Description

enable

Enable checking of GET URI for username and password fields.

disable

Disable checking of GET URI for username and password fields.

check-username-only

Enable/disable username only matching of credentials. Action will be taken for valid usernames regardless of password validity.

option

-

disable

Option

Description

enable

Enable username only credential matches.

disable

Disable username only credential matches.

default-action

Action to be taken when there is no matching rule.

option

-

exempt

Option

Description

exempt

Exempt requests from matching.

log

Log all matched requests.

block

Block all matched requests.

domain-controller

Domain for which to verify received credentials against.

string

Maximum length: 63

ldap

LDAP server for which to verify received credentials against.

string

Maximum length: 63

max-body-len

Maximum size of a POST body to check for credentials.

integer

Minimum value: 0 Maximum value: 4294967295

65536

status

Toggle AntiPhishing functionality.

option

-

disable

Option

Description

enable

Enable AntiPhishing functionality.

disable

Disable AntiPhishing functionality.

config custom-patterns

Parameter

Description

Type

Size

Default

category

Category that the pattern matches.

option

-

username

Option

Description

username

Pattern matches username fields.

password

Pattern matches password fields.

pattern

Target pattern.

string

Maximum length: 255

type

Pattern will be treated either as a regex pattern or literal string.

option

-

regex

Option

Description

regex

Pattern will be treated as a regex pattern.

literal

Pattern will be treated as a literal string.

config inspection-entries

Parameter

Description

Type

Size

Default

action

Action to be taken upon an AntiPhishing match.

option

-

exempt

Option

Description

exempt

Exempt requests from matching.

log

Log all matched requests.

block

Block all matched requests.

fortiguard-category

FortiGuard category to match.

user

Not Specified

0

name

Inspection target name.

string

Maximum length: 63

config ftgd-wf

Parameter

Description

Type

Size

Default

exempt-quota

Do not stop quota for these categories.

user

Not Specified

17

max-quota-timeout

Maximum FortiGuard quota used by single page view in seconds (excludes streams).

integer

Minimum value: 1 Maximum value: 86400

300

options

Options for FortiGuard Web Filter.

option

-

ftgd-disable

Option

Description

error-allow

Allow web pages with a rating error to pass through.

rate-server-ip

Rate the server IP in addition to the domain name.

connect-request-bypass

Bypass connection which has CONNECT request.

ftgd-disable

Disable FortiGuard scanning.

ovrd

Allow web filter profile overrides.

user

Not Specified

rate-crl-urls

Enable/disable rating CRL by URL.

option

-

enable

Option

Description

disable

Disable rating CRL by URL.

enable

Enable rating CRL by URL.

rate-css-urls

Enable/disable rating CSS by URL.

option

-

enable

Option

Description

disable

Disable rating CSS by URL.

enable

Enable rating CSS by URL.

rate-javascript-urls

Enable/disable rating JavaScript by URL.

option

-

enable

Option

Description

disable

Disable rating JavaScript by URL.

enable

Enable rating JavaScript by URL.

config filters

Parameter

Description

Type

Size

Default

action

Action to take for matches.

option

-

monitor

Option

Description

block

Block access.

authenticate

Authenticate user before allowing access.

monitor

Allow access while logging the action.

warning

Allow access after warning the user.

auth-usr-grp <name>

Groups with permission to authenticate.

User group name.

string

Maximum length: 79

category

Categories and groups the filter examines.

integer

Minimum value: 0 Maximum value: 255

0

id

ID number.

integer

Minimum value: 0 Maximum value: 255

0

log

Enable/disable logging.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

override-replacemsg

Override replacement message.

string

Maximum length: 28

warn-duration

Duration of warnings.

user

Not Specified

5m

warning-duration-type

Re-display warning after closing browser or after a timeout.

option

-

timeout

Option

Description

session

After session ends.

timeout

After timeout occurs.

warning-prompt

Warning prompts in each category or each domain.

option

-

per-category

Option

Description

per-domain

Per-domain warnings.

per-category

Per-category warnings.

config quota

Parameter

Description

Type

Size

Default

category

FortiGuard categories to apply quota to (category action must be set to monitor).

user

Not Specified

duration

Duration of quota.

user

Not Specified

5m

id

ID number.

integer

Minimum value: 0 Maximum value: 4294967295

0

override-replacemsg

Override replacement message.

string

Maximum length: 28

type

Quota type.

option

-

time

Option

Description

time

Use a time-based quota.

traffic

Use a traffic-based quota.

unit

Traffic quota unit of measurement.

option

-

MB

Option

Description

B

Quota in bytes.

KB

Quota in kilobytes.

MB

Quota in megabytes.

GB

Quota in gigabytes.

value

Traffic quota value.

integer

Minimum value: 1 Maximum value: 4294967295

1024

config override

Parameter

Description

Type

Size

Default

ovrd-cookie

Allow/deny browser-based (cookie) overrides.

option

-

deny

Option

Description

allow

Allow browser-based (cookie) override.

deny

Deny browser-based (cookie) override.

ovrd-dur

Override duration.

user

Not Specified

15m

ovrd-dur-mode

Override duration mode.

option

-

constant

Option

Description

constant

Constant mode.

ask

Prompt for duration when initiating an override.

ovrd-scope

Override scope.

option

-

user

Option

Description

user

Override for the user.

user-group

Override for the user's group.

ip

Override for the initiating IP.

browser

Create browser-based (cookie) override.

ask

Prompt for scope when initiating an override.

ovrd-user-group <name>

User groups with permission to use the override.

User group name.

string

Maximum length: 79

profile <name>

Web filter profile with permission to create overrides.

Web profile.

string

Maximum length: 79

profile-attribute

Profile attribute to retrieve from the RADIUS server.

option

-

Login-LAT-Service

Option

Description

User-Name

Use this attribute.

NAS-IP-Address

Use this attribute.

Framed-IP-Address

Use this attribute.

Framed-IP-Netmask

Use this attribute.

Filter-Id

Use this attribute.

Login-IP-Host

Use this attribute.

Reply-Message

Use this attribute.

Callback-Number

Use this attribute.

Callback-Id

Use this attribute.

Framed-Route

Use this attribute.

Framed-IPX-Network

Use this attribute.

Class

Use this attribute.

Called-Station-Id

Use this attribute.

Calling-Station-Id

Use this attribute.

NAS-Identifier

Use this attribute.

Proxy-State

Use this attribute.

Login-LAT-Service

Use this attribute.

Login-LAT-Node

Use this attribute.

Login-LAT-Group

Use this attribute.

Framed-AppleTalk-Zone

Use this attribute.

Acct-Session-Id

Use this attribute.

Acct-Multi-Session-Id

Use this attribute.

profile-type

Override profile type.

option

-

list

Option

Description

list

Profile chosen from list.

radius

Profile determined by RADIUS server.

config web

Parameter

Description

Type

Size

Default

allowlist

FortiGuard allowlist settings.

option

-

Option

Description

exempt-av

Exempt antivirus.

exempt-webcontent

Exempt web content.

exempt-activex-java-cookie

Exempt ActiveX-JAVA-Cookie.

exempt-dlp

Exempt DLP.

exempt-rangeblock

Exempt RangeBlock.

extended-log-others

Support extended log.

blocklist

Enable/disable automatic addition of URLs detected by FortiSandbox to blocklist.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

bword-table

Banned word table ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

bword-threshold

Banned word score threshold.

integer

Minimum value: 0 Maximum value: 2147483647

10

content-header-list

Content header list.

integer

Minimum value: 0 Maximum value: 4294967295

0

keyword-match <pattern>

Search keywords to log when match is found.

Pattern/keyword to search for.

string

Maximum length: 79

**

log-search

Enable/disable logging all search phrases.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

safe-search

Safe search type.

option

-

Option

Description

url

Insert safe search string into URL.

header

Insert safe search header.

urlfilter-table

URL filter table ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

vimeo-restrict

Set Vimeo-restrict ("7" = don't show mature content, "134" = don't show unrated and mature content). A value of cookie "content_rating".

string

Maximum length: 63

youtube-restrict

YouTube EDU filter level.

option

-

none

Option

Description

none

Full access for YouTube.

strict

Strict access for YouTube.

moderate

Moderate access for YouTube.

** Values may differ between models.