I would make it a more accurate regex which requires start and end line matching and max size of the number like: acl numeric_IPs dstdom_regex ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$

It will match more the exact real IP addresses but it will work.

Eliezer

On 06/12/2015 12:07, Yuri Voinov wrote:
# Numeric IP's acl
acl numeric_IPs dstdom_regex [0-9]+\.[0-9]+\.[0-9]+\.[0-9]+

# Deny access to numeric IP's
http_access deny CONNECT numeric_IPs
deny_info TCP_RESET numeric_IPs

_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

Reply via email to