Search squid archive

problem with acl urlpath_regex

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

 



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
Resolving zayin.yahubb.cn... 211.144.68.70
Connecting to zayin.yahubb.cn|211.144.68.70|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
17:11:16 ERROR 403: Forbidden.

====> the acl match OK


wget http://zayin.yahubb.cn/%ab
--17:18:40-- http://zayin.yahubb.cn/%ab
Resolving zayin.yahubb.cn... 211.144.68.70
Connecting to zayin.yahubb.cn|211.144.68.70|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
17:18:42 ERROR 404: Not Found.

====> the acl not math KO


Other test with wget seems to show that if two characters after the "%" form an
hexadecimal number, the acl does not match.

I need that all the url like ^/% match, can you help me ?
Thanks

Best regards,
Guillaume

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

  Powered by Linux