On 18/05/2013 5:14 p.m., budsz wrote:
Hi,
I've strange problem here whereis my configuration:
squid.conf
acl urlpathdeny urlpath_regex -i "/usr/local/etc/squid/urlpath.deny"
http_access deny urlpathdeny
urlpath.deny:
3gp\.exe$
That's rules work to block 3gp.exe file, but I try to block facebook
URL pattens like this:
http://www.facebook.com/foo
I put "foo" in urlpath.deny but doesn't work. Base on access.log:
1368853169.627 1575 192.168.100.90 TCP_MISS/200 83947 GET
http://www.facebook.com/foo - DIRECT/69.171.237.20 text/html
Anyone have a clue to this problem? Thank any suggestions.
Did you reload your squid.conf after making that change?
Also, take care when using regex. Particularly regex like this which are
applied to *all* traffic going through yoru proxy.
Amos