Re: [squid-users] blocking all non-domains

From: Squid Support (Henrik Nordstrom) <hno@dont-contact.us>
Date: Sat, 11 May 2002 11:55:34 +0200

dstdom_regex will reverse-lookup the IP address, and if the
reverse-lookup succeeds the returned name will be used in acl
processing.

For regex matching of IP addresses you will need to use url_regex,
such as in the following:

  acl numeric_block url_regex -i ^[a-z]*://[0-9.]*[:/]
^[a-z]*://[0-9.]*$

Regards
Henrik

On Friday 10 May 2002 15:40, James Di Toro wrote:
> Since my users generally have no reason to be at a site w/o a
> domain name (and most of those sites are ads/porn) I'm trying to
> block out all dstdomain that match a IP address. I tried the
> following:
>
> acl numeric_block dstdom_regex
> \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
>
> But the connection went through. Any thoughts on this from the
> general populace?

-- 
MARA Systems AB, Giving you basic free Squid support
Your source of advanced web reverse proxying solutions
http://www.marasystems.com/producs/
Received on Sat May 11 2002 - 04:19:04 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:08:04 MST