Skip to main content
Contributor III
September 1, 2006

Technical Tip: How to block a website on FortiGate

  • September 1, 2006
  • 0 replies
  • 4147 views

 

Description This article explains how to block a website on FortiGate using a web filter.
Scope FortiGate
Solution

To block a website:

  1. Go to Web Filter -> Static URL Filter -> URL Filter.
  2. Select Create New.
  3. Type in a URL or IP address.
  4. For the Type, select Regex (Regular Expression).
  5. For the Action, select Block.
  6. Select Enable.
  7. Select OK.

 

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:

 

URL Filter.PNG

 

Or as a simple entry:

 

URL Filter 2.PNG

 

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

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.