Technical Tip: How to use regular expressions in the FortiClient EMS web filter
| Description | This article describes how to use regular expressions to perform granular website allowance or blocking within the FortiClient EMS web filter. |
| Scope | FortiClient EMS |
| Solution | To block or allow websites using regular expressions (regex) in FortiClient EMS, follow these steps:
Example 1: To allow all URLs from the subdomain 'fortinet.com.' The Web Filter configuration will be:
All the following URLs, for example, will match this rule, as the regex will find the configured string 'fortinet.com':
To block all websites that have the word 'forticlient' between the slashes in the URL:
The URLs below will match the rule, but using the string '/forticlient/':
Note: The examples are for illustrative purposes only. It is essential to verify the need for each case, as a very broad regular expression may allow or block inappropriate websites. Avoid generic terms and always be specific when defining what will be filtered by the regular expression. |


