Open Source URL Filtering Software?
hated asks: "I work for the government, and because of our stringent policy on not allowing 'personal' use from work computers we have been given a requirement from management to restrict certain types of Web pages...mainly porn. Now I am opposed to censor-ware as the next guy, but I don't make policy, just figure out how to implement it. I would really rather not use commercial URL filtering because of the price and because of the secretive blocked lists. Is there any sort of module that would work with squid? I am looking for a proxy based tools as opposed to host based...obviously far easier to implement. I hope /. readers can provide some insight."
Check it out. It may be what you need.
Perhaps the ideal choice if site blocking is your primary concern is Squid Guard with the freely available block list available from the Squid Guard site.
http://www.squidguard.org
Squid Guard is a redirector that works with Squid to provide a wide array of blocking and access control features. Pretty much anything you can envision doing (short of filtering the actual content) can be done with Squid and Squid Guard.
You provide it with a list of regular expressions or distinct URL's and it will block them according to rules you provide (i.e. executives have unlimited access, employess have no porn or games access, janitors only have acces to intranet sites, etc.).
Squid alone can provide URL based blocking and it works quite well. It's the method we recommend for most of our clients who need blocking simply because it's so easy. It's already built in, and you can download a pretty good blocklist called SquidBlock from here:
http://www.hklc.com/squidblock/
It's a little rough and the list requires a little hand tuning to make it really effective, but generally just plugs right in using the directions provided on the site.
Another option is Squirm, which is another redirector. I don't have any direct experience with it, but I assume it works pretty similar to Squid Guard above.
http://www.senet.com.au/squirm/
Any one of these should do the job. If it's the most important part of your proxies job, go the extra mile and install Squid Guard and hand tune the black list (or better still create a second user defined list, so you can install new downloaded blacklists periodically). It will do the job admirably.
If it's just a matter of being able to say to management, "Yes, we've got porn blocking in place...it works pretty well, and we're logging all accesses anyway...blah, blah, blah" you could use Squid alone with the SquidBlock list and keep an eye on your logs. This requires you to inform your users they may be watched though. But generally, we've found that a policy that clearly states the permissable uses (and the promise of log analysis) works better in most environments than blocking. Block lists just can't keep up with the number of porn sites. And it tends to keep the internet use more strictly focused on work rather than seeing what sites can be found that aren't yet blocked.
I guess I should point out that even if you use the better method (Squid Guard) and find it satisfactory, you will still need to monitor logs (although you can do so without caring about who is accessing what) to find any new sites that are being accessed that aren't yet blocked. Babysitting internet access is a pretty big job. You should do what you can to prevent users from even trying to circumvent the blocking to minimize you own labor.
Hope this helps. I'm available for questioning on this stuff (it's my job, so I know my way around Squid pretty good).
Although they don't recommend using it for such purposes, Junkbuster can also be used for blocking.
--
Oh, no! You have walked into the slavering fangs of a lurking grue!