Results 1 to 5 of 5
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?
acl ...
- 02-17-2010 #1Just Joined!
- Join Date
- Jan 2010
- Posts
- 5
[SOLVED] Blocking Sites with SQUID Proxy
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?
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 !
- 02-22-2010 #2Just Joined!
- Join Date
- Aug 2009
- Location
- Mumbai, India
- Posts
- 75
Hi,
The ACL's take effect in the sequence they are parsed when squid starts. I mean, if it gets a generic allow rule prior to the deny rule, the deny does not take effect.
Ideally, in squid, an acl is configured for the local network access and this is called via the syntaxIn your case when trying to effect the blocking of sites listed in squid-block.acl you need to ensure that your deny rule viz.Code:http_access allow <name_of_acl>
is entered prior to the generic allow rule ( or any other allow rule )Code:http_access deny blocksites
This should ideally put your config on track
--Syd
- 02-22-2010 #3
if you are planning to do some wide-area blocking, i'd recommend squidguard.
SquidGuardlinux user # 503963
- 02-26-2010 #4Just Joined!
- Join Date
- Aug 2009
- Location
- Evil Empire
- Posts
- 33
- 02-28-2010 #5Just Joined!
- Join Date
- Jan 2010
- Posts
- 5
Working
Thank you so much! Its working now!!


1Likes


