D
D
Deterrent2019-02-24 22:20:06
Squid
Deterrent, 2019-02-24 22:20:06

How to whitelist 3rd level domains in squid?

I set it up according to the article on Habré, everything works fine, both http and https work according to the white list.
But I can’t figure out how to block all subdomains. For example, allow google.com and google.ru but deny translate.google.com and any other level 3 domains.
config lines like this

acl white_list url_regex -i "/etc/squid/white_list"
acl white_list_ssl ssl::server_name_regex "/etc/squid/white_list"

No matter how I specify in the white_list file, it is not possible to achieve that it does not open subdomains, only the main one opens
Wrote and google\.com and \.google\.com, along with the main domain, any other subdomains are opened. The rest of the sites do not open.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2019-02-25
@CityCat4

Block subdomains by explicit names before the main domain is checked.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question