gui:
Hello,

I have a problem with my acl urlpath_regex

Extract from squid.conf :

acl all src 0.0.0.0/0.0.0.0
acl invalid_uri urlpath_regex ^/%

http_access deny invalid_uri
http_access allow all

Now some test with wget :

wget http://zayin.yahubb.cn/%ag
--17:11:16-- http://zayin.yahubb.cn/%25ag


perl  -MURI::Escape -le 'print uri_unescape("%25")'
%

As you see, %25 after uri_unescape is "%".
So something like %20,%3D doesn't include the real "%" character, but an escape symbol used by HTTP. When they are unescaped, Squid doesn't see this "%" again, so match failed.


--
Jeff Pang
DingTong Technology
www.dtonenetworks.com

Reply via email to