I wanted to block google logo via Squid proxy:So I added this line to block.acl:google\..+/logos/.+in squid.conf I have this:acl bad_domain dstdom_regex /etc/squid/block.aclacl good_domain dstdom_regex /etc/squid/white.aclhttp_access deny bad_domainhttp_access allow good_domainhttp_access deny allBut the image is still not blocked: https://www.google.ru/logos/doodles/2013/doctor-whos-50th-anniversary-6317003539218432-res.png.What to do?
Can't block google logo in squid
squid
Given their docs:http://wiki.squid-cache.org/SquidFaq/SquidAcl#The_Basics:_How_the_parts_fit_togetherdstdom_regex: destination (server) regular expression pattern matchingThis should match only the server (i.e. the www.google.ru part in your example), while you want to use it to block a specific URL (i.e. server + path). I think you need to use this:url_regex: URL regular expression pattern matchinginstead. See e.g. this example from the above docs:http://wiki.squid-cache.org/SquidFaq/SquidAcl#How_can_I_allow_a_single_address_to_access_a_specific_URL.3Fwhere it says:acl special_client src 10.1.2.3acl special_url url_regex ^http://www.squid-cache.org/Doc/FAQ/$http_access allow special_client special_urlhttp_access deny special_urlThis obviously an allow specification, but the same should hold for the deny specification you are after.Hope this helps.