Squid Analysis Report Generator
Blocking porn and related sites on Squid
You can use Squid acl's to block urls that contain some words.

Using url_regex
Add these lines to your squid.conf file:
acl porn url_regex "/usr/local/squid/etc/porn"
acl noporn url_regex "/usr/local/squid/etc/noporn"
http_access deny porn !noporn
noporn file. Last change: May/30/2001
porn file. Last change: Feb/17/2000