[squid-users] http request header must use hostname

Eliezer Croitoru eliezer at ngtech.co.il
Sun Dec 6 18:19:10 UTC 2015


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



More information about the squid-users mailing list