Create or edit a URL filter
You can allow or block access to specific web sites by adding them to the URL filter list. You add the web sites by using patterns containing text and regular expressions. The FortiProxy unit allows or blocks web pages matching any specified URLs or patterns and displays a replacement message instead.
Web site blocking does not block access to other services that users can access with a web browser. For example, web site blocking does not block access to ftp://ftp.example.com. Instead, use firewall policies to deny ftp connections. |
When adding a URL to the web site filter list, follow these rules:
-
Type a top-level URL or IP address to control access to all pages on a web site. For example, www.example.com or 192.168.144.155 controls access to all pages at these web sites.
-
Enter a top-level URL followed by the path and file name to control access to a single page on a web site. For example, www.example.com/monkey.html or 192.168.144.155/monkey.html controls access to the monkey page on this web site.
-
To control access to all pages with a URL that ends with example.com, add example.com to the filter list. For example, adding example.com controls access to www.example.com, mail.example.com, www.finance.example.com, and so on.
-
Control access to all URLs that match patterns using text and regular expressions (or wildcard characters). For example, example.* matches example.com, example.org, example.net and so on.
URLs with an action set to exempt or pass are not scanned for viruses. If users on the network download files through the FortiProxy unit from a trusted web site, add the URL of this web site to the URL filter list with an action to pass it, so the unit does not scan files downloaded from this URL. |
To create a URL filter:
-
Go to Security Profiles > Web Filter.
-
Click Create New or select a web filter profile and then click Edit.
-
Enable URL Filter.
-
In the URL Filter table, click Create New. The New URL Filter window opens.
-
Enter the URL to filter in the URL field. Enter a top-level domain suffix (for example, “com” without the leading period) to block access to all web sites with this suffix.
-
Select the type of pattern to match: Simple, Reg. Expression, or Wildcard.
-
Select the action to take when the pattern is matched:
-
Exempt: Allow trusted traffic to bypass the antivirus proxy operations.
-
Block: Block access to any URLs matching the URL pattern and display a replacement message. SeeReplacement Messages.
-
Allow: Allow access to any URL that matches the URL pattern.
-
Monitor: Monitor traffic to and from URLs matching the URL pattern.
-
-
Enable or disable the status of the filter to make the filter active or inactive.
-
Enter the referrer host name.
-
Click OK to save the URL filter.
-
Click OK to save the changes to the web filter profile.
To edit a URL filter:
-
Go to Security Profiles > Web Filter.
-
Click Create New or select a web filter profile and then click Edit.
-
In the URL Filter table, double-click on a filter or select the filter and then click Edit in the toolbar.
-
Edit the filter settings as required.
-
Click OK to save your changes to the URL filter.
-
Click OK to save the changes to the web filter profile.