diladele / websafety

Simple and powerful web filter for HTTP and HTTPS traffic
https://www.diladele.com/websafety/
244 stars 24 forks source link

.eu.example.com is a subdomain of .example.com - you should remove .eu.example.com #2218

Open ra-at-diladele-com opened 7 months ago

ra-at-diladele-com commented 7 months ago

Admin adds 2 domain names to exclusions - .eu.example.com and .example.com. Most probably these two sites were added at two different points in time or even by two different admins. Then after clicking Save and Restart and also in UI / Squid / General / Verification we have the following warning.

2024/04/04 15:43:02| WARNING: '.eu.example.com' is a subdomain of '.example.com'
2024/04/04 15:43:02| WARNING: You should remove '.eu.example.com' from the ACL named 'authentication_exclude_domainname'

This error comes from Squid. Note that luckily we create domain exclusion acl by sorting domains by length, so in the file the .example.com comes before .eu.example.com - this results into warning and not error from squid. If longer name would precede the shorter one squid would give an error.

ra-at-diladele-com commented 7 months ago

Attempts to design a system to prohibit such entries in the Admin UI failed. Problems:

So decided to postpone this complex problem for now and simply ignore this warning. If this warning is disturbing the admin needs to do what this warning says exactly - i.e. remove .eu.example.com from config if he intends to add just .example.com.