Go to the table of contents Go to the previous page Go to the next page
Web Protection Frequently Asked Questions : How do keywords and regular expressions work?
How do keywords and regular expressions work?
51394 | Web Protection FAQ | TRITON AP-WEB and Web Filter & Security | 12-Oct-2015
Keywords and regular expressions are ways to identify types or groups of related URLs for special handling.
*
A keyword is a string of characters (a word, phrase, number, or acronym) that might be found in a URL.
When you create a keyword, you associate it with a category. When your software finds that keyword in a URL, it assigns the URL to the category that you have selected, and blocks the URL.
Keywords are used only to recategorize and block URLs; they cannot be used to permit URLs.
*
A regular expression is a template or pattern used to match multiple strings, or groups of characters. Regular expressions can be used:
*
*
When you use regular expressions, Filtering Service tries to match the general pattern, rather than a specific, single URL or keyword. Regular expressions match precise terms and are case sensitive.
Use keywords and regular expression with caution to avoid unintended over blocking or under blocking.
More about keywords
There are two steps involved in using keywords:
1.
2.
Once keyword-based blocking is enabled, Websense software tries to match the keyword against each requested URL as follows:
*
For example, if you associated the keyword "nba" with the permitted Sports category, the following URLs are blocked:
*
*
modernbakery.com
*
fashionbar.com
*
For example, if you associated the keyword "fútbol" with the permitted Sports category:
*
"www.fútbol.com" is permitted (the domain portion of the URL is not matched).
*
"es.wikipedia.org/wiki/Fútbol" is blocked (the path portion of the URL is matched).
When Websense software identifies a keyword in a URL:
*
*
*
For more information on using and defining keywords see your Administrator Help.
More about regular expressions
Regular expressions can be as simple or complex as your environment requires, but use them with care. Poorly constructed regular expressions can result in excessive filtering overhead.
As with keywords, if non-ASCII characters appear in a regular expression, the expression is matched against only the path and query (CGI) strings in the URL. No matching is done against the domain.
If only ASCII characters appear in the regular expression, the match is performed against the entire URL.
Websense software supports most Perl regular expression syntax.
For further help with regular expressions, see:
en.wikipedia.org/wiki/Regular_expression
www.regular-expressions.info/

Go to the table of contents Go to the previous page Go to the next page
Web Protection Frequently Asked Questions : How do keywords and regular expressions work?
Copyright 2016 Forcepoint LLC. All rights reserved.