i want to be able to use squidguard to block audio files,mp3,video etc from being played in the network. i have been the faq at www.squidguard.org and they say you should use expression lists has anyone ever implemented expression lists please give me a hint on how to do this.
Lucas oketch.
Hi Lucas,
I successfully use an expression list to block some file types from being downloaded. You can create something similar for mp3 and other multimedia files or just copy mine.
First you need to think of what type of files you wish to block and make a list of their file-extensions.
Next you need to create the expressions file. Here is a sample of the syntax in the file we use:
(.mdb|.mde|.mpg|.mpeg|.movie|.moov|.mp3|.pps|.ppt|.xls|.xlt|.zip)
This list blocks our users from downloading some multimedia files. You can add any type of extension to this list as you see fit. Be aware that you may block other stuff too if you make this too restrictive.
Save the file (which here is just called "expressions" in a separate directory in your Squidguard db directory. Ours lives in: /usr/local/squidGuard/db/risse. It is important you put this file in a directory that is not one of the standard Squidguard database directories, otherwise it might get overwritten when you update the database.
Also, make sure the user squid is running as, has rights to the file. It won't work otherwise!
Next, add the file to your squidGuard.conf like so:
dest $yoursourcegroup {
domainlist risse/domains
urllist risse/urls
expressionlist risse/expressions <-- add the file like so
log risse.log
}Now reload Squid with "squid -k reconfigure" and you should be on your way.
This solution works for me, however YMMV, depending on what exactly you wish to accomplish. Anyone who was other/better advice to offer, please do. I'm still learning Squidguard myself.
HTH,
Joop Beris -- [EMAIL PROTECTED] ICT, De Risse Holding BV tel/fax: +31(0)495584619/+31(0)495541575 Liever geen HTML e-mail/Plain text e-mail preferred
