[squid-users] acl for matching URLs (non-regex)

Amos Jeffries squid3 at treenet.co.nz
Thu Oct 31 08:31:32 UTC 2019


On 28/10/19 6:10 am, Felix Leimbach wrote:
> Hi,
> 
> I want to include the URLhaus blacklist [1] to protect my users from malware, since squidblacklists.org doesn't seem to be actively maintained anymore (RIP Ben Nichols).
> 
> However there does not seem to exist an acl type that can match plain URLs in this form:
> 
> http://tvmarket.co.kr/Order/Document.zip?natcanotti.biz[document_pdf_____+.exe%5D%2F%3F
> 
> Note the URL is not regex-friendly so url_regex is not an option.

What isn't regex friendly about it?


> 
> How do people block exact URLs?

By making a regex which can only match that exact URL.

acl foo url_regex
^http://tvmarket\.co\.kr/Order/Document\.zip\?natcanotti\.biz\[document_pdf_____\+\.exe\]/\?



Amos


More information about the squid-users mailing list