Expressions - Phrases

Discuss and get help configuring CacheGuard URL blacklist Guarding
Posts: 1
Joined: 22 Jul 2016 14:31

Expressions - Phrases

Postby One2One » 22 Jul 2016 14:45

Good day
I am setting up CG for a school, and have been able to load the standard url blacklists and domain lists into CG.

Expression lists however do not work, and they are extremely important for blocking google searches of adult content.
I have attempted the following:
    Using standard squidguard recommended lists
    Formatting a list of words intended to be block in various ways
    simply entering a single word
    formatting a single word with prefixes and in brackets etc.

Can anyone please provide a working list of words, or advise me as to how the list needs to be formatted before importing.
Any kind of help or guidance would be very appreciated.

User avatar
Posts: 93
Joined: 08 Aug 2015 20:38

Re: Expressions - Phrases

Postby david » 22 Jul 2016 20:26


Expression lists are based on regular expressions. You can read more about regular expressions at: (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:


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
- 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 Porn expressions
guard rule add default deny Porn
mode guard on

Best Regards,
David Jan
CacheGuard Technical Team

Return to “Configure the URL Guarding”

Who is online

Users browsing this forum: No registered users and 1 guest