Re: [squid-users] blocking some IP to some sites

From: Mike Pascual <[email protected]>
Date: Sun, 9 Jan 2005 14:27:14 +0800

Try this...

acl banned src "/location/of/txt/containingIPs/you/want/to/block/IP.txt"
http access deny banned

hope this will help

On Thu, 6 Jan 2005 19:46:47 +0500, BusyBoy <busyboy@gmail.com> wrote:
> Hello,
> Can we use squid to block some IP's from accessing some sites
>
> let's say
>
> I am using 172.16.0.0 in my internal network and I want to block these ip's
> 172.16.20.12
> 172.16.20.14
> 172.16.20.23
> 172.16.20.120
> 172.16.20.45
> 172.16.20.67
> 172.16.20.89
>
> from accessing "mail.yahoo.com" ,hotmail.com (May be regex required
> for *.mail.yahoo.* , *.hotmail.* , and *.messenger.msn.com ) and MSN
> Messenger..
> How should I proceed with this setup so that only these users are
> effected and rest of all are allowed to brows any website on Internet
> cloud.
>
> Regards,
>
> --
> Nasir Mahmood
> Systems Administrator.
>
Received on Sat Jan 08 2005 - 23:27:15 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 07 2005 - 12:59:35 MST