[Ilugc] Blocking Sites with SQUID Proxy

  • From: mehul.n.ved@xxxxxxxxx (Mehul Ved)
  • Date: Mon Feb 22 16:17:31 2010

On Thu, Feb 18, 2010 at 4:53 AM, Ramesh Jothimani
<linuxrockers@xxxxxxxxx> wrote:

I need to block some of my sites with SQUID Proxy. I added following lines
to my SQUID configuration file but still the site remains unblocked.How to
block it?

How have you verified it? Are you sure where you tested from didn't
access internet directly?

acl blocksites url_regex yahoo
http_access deny blocksites

I have also tried saving some url & filter content in a file and edited
configuration as follows,

acl blocksites url_regex "/etc/squid/squid-block.acl"
http_access deny blocksites

The squid-block.acl file contents are,
.cricinfo.com
mp3


Please help me to block the sites !
Also, have you restarted/reloaded squid after making these changes?
If yes, post the full contents of the squid's config file.

Other related posts: