Start a conversation

Wildcards And Regular Expressions in Content Filter URLs

Overview

Kerio Control allows you to use wildcards and regular expressions when you create a content rule based on a URL hostname or a URL group. Depending on the Content Filter rule action, website communication can be allowed, denied, or dropped.

Prerequisites

Navigate to Content Filter section in the Kerio Control Administration and create a new or edit existing Content rule

Solution

Wildcards

  1. In the Detected Content column, choose URL Hostname or URL groups option. 
  2. Select the HTTP URL option.
  3. In the Site field, write the URL. Use substrings with special characters — * and ?. An asterisk (*) stands for any number of characters, a question mark (?) represents one character.
    content_filter_url.png
  4. Click OK.

Examples:

  • www.example.com/index.html — a particular page
  • www.* — all URL addresses starting with www.
  • *exploit* — all URL addresses containing the exploit string
  • *warez??.cz* — all URL addresses containing such strings as warezzz.cz, warez99.cz, etc.

Note: Do not select the HTTP URL by regular expression option if you want to use wildcards only.

Regular expressions

  1. In the Detected Content column, choose URL Hostname or URL groups option. 
  2. Select the HTTP URL by regular expression option.
  3. In the Site field, write the regular expression. Kerio Control uses Perl Regular Expression Syntax. For more information, please refer to the Perl syntax Boost guide.
  4. Click OK.

Note: for the well-known detected categories and websites, like Facebook, Youtube, it's recommended to use Applications and Web Categories option, not raw URLs.
content_filter_categories.png

 

Confirmation

Based on the Content Filter rule action, website access is being denied or dropped (blank empty page).

access_denied.png

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments