Search squid archive

Re: problem with acl urlpath_regex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux