Sunday, July 19, 2009

Blocking Sites Using Squid

Steps

1. Edit the squid.conf configuration file and add the following lines:

acl blocksites url_regex "c:\squid\etc\squid-block.acl"
http_access deny blocksites


2. Create the file "squid-block.acl" with the following pattern:

.playboy.com
.friendster.com
.facebook.com
porn
pornstars


This will block the sites with URL playboy.com, friendster.com, facebook.com and
pages with "porn" or "pornstars" entries.

3. Restart squid


No comments: