Overview
Kerio Control allows using wildcards or regular expressions when creating content rules based on a URL/URL group or shared URL groups. This article shares the processes for using wildcards and regular expressions.
Wildcards
Follow these steps to use wildcards when adding URLs or URL groups:
- Select the HTTP URL option.
- In the Site field, write the URL. You may use substrings with wildcard characters
*
or?
, where an asterisk (*) stands for any number of characters while a question mark (?) represents one character. - Click OK.
Examples:
-
www.example.com/index.html
— a particular page -
www.*
— all URL addresses starting withwww.
-
*exploit*
— all URL addresses containing theexploit
string -
*warez??.cz*
— all URL addresses containing strings such aswarezzz.cz
,warez99.cz
, etc.
Note: Do not select the HTTP URL by regular expression option, if you want to use only wildcards.
Regular Expressions
Follow these steps to use regular expressions when adding URLs or URL groups:
- Select the HTTP URL by regular expression option.
- In the Site field, write the regular expression. Kerio Control uses Perl Regular Expression Syntax. For complete specifications, go to http://www.boost.org.
- Click OK.
Example:
Type facebook\.com.*
in the Site field if you want to create a content rule for all URL addresses that contain facebook.com
.