-
Committer:
chtsanti
-
Date:
2012-04-10 11:26:11 UTC
-
Revision ID:
svn-v4:a5cfe682-fa50-0410-8a04-e816b4a88288:c-icap-server/trunk:848
Add support for subcategories in url_check service to allow integration with comercial URL databases
This patch:
- Add support for subcategories. For example someone can define a database
with urls as keys and the subcategories as values. For example the hash DB
"MyDB" with the following entries:
www.in.gr: News
www.chtsanti.net: Dangerous
www.bbc.com: News
To deny the "Dangerous" sites for the default profile someone can use the
following configuration line:
url_check.Profile default block MyDB{Dangerous}
- Allow the system admins to use URL databases which uses scores for URLs.
For example the following database:
in.gr: News:90
chtsanti.net: Dangerous:55
bbc.co.uk: News:98
In the above entries the www.in.gr site matches the News category with a
score 90, and the www.chtsanti.net "is" a "Dangerous" site with a score 55
The system admin can use the following lines to allow "News" sites and
deny "Dangerous" site with high score:
url_check.Profile default pass MyDB{News>80}
url_check.Profile default block MyDB{Dangerous>50}
- Add "url_simple_check" URL databases.
The above new features can help us to implement lookup tables as plugins
which query commercial URL databases.