[squid-users] wildcard for numbers in url whitelisting

L.P.H. van Belle belle at bazuin.nl
Thu Jul 15 12:13:19 UTC 2021


post a few lines from  "/usr/local/squid/etc/urlwhite.txt"


Van: squid-users [mailto:squid-users-bounces at lists.squid-cache.org] Namens robert k Wild
Verzonden: donderdag 15 juli 2021 14:09
Aan: Amos Jeffries
CC: squid-users at lists.squid-cache.org
Onderwerp: Re: [squid-users] wildcard for numbers in url whitelisting



is anything wrong with this as it doesnt work


#HTTP_HTTPS whitelist websites
acl whitelist ssl::server_name "/usr/local/squid/etc/urlwhite.txt"

#HTTP_HTTPS whitelist websites regex
#acl whitelistreg ssl::server_name_regex "/usr/local/squid/etc/urlwhitereg.txt"

http_access allow activation whitelist whitelistreg
http_access deny all


time being ive hashed out acl regex and deleted whitelistregon my http access allow as it doesnt work


can you see anything wrong with it?



On Thu, 15 Jul 2021 at 12:17, robert k Wild <robertkwild at gmail.com> wrote:

i think i get you, so have two acl lists, like


acl whitelist ssl::server_name "/usr/local/squid/etc/urlwhite.txt"
acl whitelist ssl::server_name_regex "/usr/local/squid/etc/urlwhitereg.txt"


On Thu, 15 Jul 2021 at 11:59, robert k Wild <robertkwild at gmail.com> wrote:

Thanks Amos, if I change to that acl, I imagine I will need to redo all my whitelist files 

Ie


.Google.com


Will be


.\google\.com


Is that correct?


On Thu, 15 Jul 2021, 11:53 Amos Jeffries , <squid3 at treenet.co.nz> wrote:

You will need to change to ssl::server_name_regex ACL type to use regex patterns. 

Also, take care that all values are valid regex pattern and characters which are special in regex are properly escaped. Eg the dots. 
Amos






-- 
Regards, 

Robert K Wild.





-- 
Regards, 

Robert K Wild.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20210715/e9d086bd/attachment.htm>


More information about the squid-users mailing list