Hi
Expression lists are based on regular expressions. You can read more about regular expressions at:
http://www.cacheguard.net/doc/command/urllist.html (section REGULAR EXPRESSIONS).
We don't provide expression lists but for example the following regular expression given in the SquidgGuard documentation can block porn sites searched with Google:
(^|[-\?+=/_])(bondage|boobs?|busty?|hardcore|porno?|sex|xxx+)([-\?+=/_]|$)
To use this expression with CacheGuard please do the following:
- Put it in a file called
Porn.expressions
- Compress the file with gzip (to obtain the file
Porn.expressions.gz)
- Copy the file
Porn.expressions.gz on a trusted file server (read more at about trusted file servers at
http://www.cacheguard.net/doc/command/access.html)
- Then use following commands to integrate it into your CG (replace the file transfer protocol and IP address by yours):
Code: Select all
urllist add Porn
urllist load create Porn tftp 10.0.10.1 Porn expressions
guard rule add default deny Porn
mode guard on
apply
Best Regards,