Re: [squid-users] Deny IP in URL possible ?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 10 Aug 2010 23:27:34 +1200

John Doe wrote:
> From: Scott Keith (NHS National Services Scotland) <keith_at_nhs.net>
>
>> Hi, I've been trying to find out if it's possible to get squid to deny access
>> to websites via an IP in the URL. I've had a fairly good Google around o= n how
>> to do this but I just keep finding out about blocking access to a sin= gle IP
>> whereas I just want to block access all websites via IP addresses.
>> I know a solution to this can be implemented via ufbdguard and probably
>> squidguard but I am only looking for a squid only solution just now.
>
> You could do it with an external acl.
> But I am wondering if you could also use something like:
> acl notanip dstdom_regex [^0-9\.]
> Not sure if dstdom works on IPs...

Yes, dstdom* works on the text as received in the Host: header or domain
portion of the URL.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.6
   Beta testers wanted for 3.2.0.1
Received on Tue Aug 10 2010 - 11:27:41 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 10 2010 - 12:00:02 MDT