Technical Tip: How to block a website on FortiGate
| Description | This article explains how to block a website on FortiGate using a web filter. |
| Scope | FortiGate |
| Solution | To block a website:
Type a top-level URL or IP address to control access to all pages on a website. For example, www.example.com or 192.168.144.155 controls access to all pages at this website.
Enter a top-level URL followed by the path and filename to control access to a single page on a website. For example, www.example.com/news.html or 192.168.144.155/news.html controls the news page on this website.
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 created using text and regular expressions (or wildcard characters). For example, example.* matches example.com, example.org, example.net and so on.
As an example, on the GUI, the view will be as follows:
Or as a simple entry:
Related articles: Technical Tip: Explanation of the Allow, Block, Exempt, and Monitor static URL filter actions Technical Tip: Using a static URL filter feature to allow/block web sites |


