Jump to content

Blocking keywords/phrases in squid


Recommended Posts

Posted

Hello :)

I'm trying to get squid/Squidguard to block sites and searches based on keywords and/or phrases. Up to now i've been putting full sites into Squidguard's lbl file and this has worked fine but i'm thinking it might be better to try and do some blocking based on keywords.

 

If i add single words to the block.url file in /etc/squid then they are blocked fine but it won't work when i try and put in several words (from a google search).

example:

'bloons' = blocked

'bloons+game' = not blocked

'bloons game' = blocked

 

How can i get it to block things which have special characters in?

Any advice would be appreciated :)

Thanks

Posted (edited)

Easiest thing todo is use something like webmin, and install the squidguard plugin module, from there you get a GUI of sorts to block works including help files within the module

 

Webmin && niemueller.de - webmin modules - SquidGuard Configuration

 

I use DG so not familiar with SG, however same principles, DG has better regex's for controlling banned words.

 

is blanket block, where isnt. Attached is a txt file with the configuration we use, which in turn DG took from SG

squidguard.txt

Edited by ahuxham
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...