Fortinet white logo
Fortinet white logo

CLI Reference

system webfilter local-rating

system webfilter local-rating

Use these commands to configure URL rating overrides.

You can override and assign a different rating category to URLs. This can be useful if, for example:

  • A shared web server hosts multiple different apps, and one of the URLs must be filtered differently.
  • A FortiGuard URL rating is temporarily incorrect and you want to create an exemption.

Syntax

config system webfilter local-rating

edit <override_index>

[set description <description_str>

set status {enable | disable}

set pattern-type {regexp | wildcard}

set url-pattern <url_pattern>

set category <category_name>

next

end

Variable

Description

Default

<override_index>

Enter the number of the override.

category <category_name>

Select which category to assign to the URLs that match url-pattern <url_pattern>, either:

  • a predefined category from FortiGuard, such as spam-urls
  • a predefined category from the firmware, such as local or local-exempt
  • a custom category (see system webfilter customized-category)

To view the list of categories, enter:

set category ?

local

description <description_str>

Enter a comment or description.

pattern-type {regexp | wildcard}

Select the type of url-pattern <url_pattern>, either:

  • wildcard — Simple wildcards (? or *) if you need to match multiple characters.

  • regexp — Flexible and full-featured pattern matching.

    Tip: To test that a regular expression matches as expected (and does not accidentally match other text), you can click the Validate in the GUI. For examples and information on wildcard and regular expression syntax, see the FortiMail Administration Guide.

wildcard

status {enable | disable}

Enable or disable the override.

enable

url-pattern <url_pattern>

Enter a pattern that matches only the URLs that you want to override.

Syntax varies by pattern-type {regexp | wildcard}.

*

Related topics

antispam settings

system webfilter customized-category

system webfilter local-rating

system webfilter local-rating

Use these commands to configure URL rating overrides.

You can override and assign a different rating category to URLs. This can be useful if, for example:

  • A shared web server hosts multiple different apps, and one of the URLs must be filtered differently.
  • A FortiGuard URL rating is temporarily incorrect and you want to create an exemption.

Syntax

config system webfilter local-rating

edit <override_index>

[set description <description_str>

set status {enable | disable}

set pattern-type {regexp | wildcard}

set url-pattern <url_pattern>

set category <category_name>

next

end

Variable

Description

Default

<override_index>

Enter the number of the override.

category <category_name>

Select which category to assign to the URLs that match url-pattern <url_pattern>, either:

  • a predefined category from FortiGuard, such as spam-urls
  • a predefined category from the firmware, such as local or local-exempt
  • a custom category (see system webfilter customized-category)

To view the list of categories, enter:

set category ?

local

description <description_str>

Enter a comment or description.

pattern-type {regexp | wildcard}

Select the type of url-pattern <url_pattern>, either:

  • wildcard — Simple wildcards (? or *) if you need to match multiple characters.

  • regexp — Flexible and full-featured pattern matching.

    Tip: To test that a regular expression matches as expected (and does not accidentally match other text), you can click the Validate in the GUI. For examples and information on wildcard and regular expression syntax, see the FortiMail Administration Guide.

wildcard

status {enable | disable}

Enable or disable the override.

enable

url-pattern <url_pattern>

Enter a pattern that matches only the URLs that you want to override.

Syntax varies by pattern-type {regexp | wildcard}.

*

Related topics

antispam settings

system webfilter customized-category