当用户使用类似的 URL 时,我试图拒绝访问我的网站
https://www.mywebsite.com/./somepage.aspx
现在,当我尝试 IIS7 上面的 url 时,它将服务:
https://www.mywebsite.com/somepage.aspx
我还在服务器上安装了 urlscan
AllowDotInPath=0
[DenyUrlSequences]
.. ; Don't allow directory traversals
./ ; Don't allow trailing dot on a directory name
\ ; Don't allow backslashes in URL
: ; Don't allow alternate stream access
% ; Don't allow escaping after normalization
& ; Don't allow multiple CGI processes to run on a single request
但它仍然允许访问:(
我的测试方法是使用 curl:
curl -I https://www.mywebsite.com/./somepage.aspx
我究竟做错了什么?
提前感谢!