[squid-users] regex for normal websites

Matus UHLAR - fantomas uhlar at fantomas.sk
Thu Jul 28 06:44:04 UTC 2022


>On 7/27/22 5:19 AM, Amos Jeffries wrote:
>>Also, the "^.*" in your pattern does nothing useful, it should be 
>>omitted.

On 27.07.22 10:44, Grant Taylor wrote:
>Is the bounding to the beginning /implicit/?  Or will adobe.com also 
>match hackadobe.com?

in regexp, it will.


However,
adobe\.com$
and
^.*adobe\.com$

have the same effect, but second one is more CPU effective.

the problem the OP mentions is that it should match

\.adobe\.com$
^adobe\.com$

which leads me back to the question:
wasn't "dstdomain .adobe.com" supposed to match both?

https://wiki.squid-cache.org/SquidFaq/SquidAcl#Squid_doesn.27t_match_my_subdomains

indicates that since squid 2.4 it should.

and so, shouldn't ssl::server_name match both too?

-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
42.7 percent of all statistics are made up on the spot.


More information about the squid-users mailing list