假设我的网站是 asp 的,我能做到除了 asp,html,js,css,jpg,gif 等格式的后缀能访问外,其他后缀的都返回 403 么?
假设我的网站是 asp 的,我能做到除了 asp,html,js,css,jpg,gif 等格式的后缀能访问外,其他后缀的都返回 403 么?
|
1
可以的。匹配 location
|
|
2
在这里测试 location 规则: [Nginx Location Match Visible]( https://detailyang.github.io/nginx-location-match-visible/)
|
|
3
@guoer 怎么配置?
|
|
LaxDec 15, 2017
4
Nginx 配置方面可以提供付费咨询,有兴趣的话可以在我资料里找到联系方式
|
|
5
@Lax 价格怎么算
|
|
handworkDec 15, 2017
8
location ~ .*\.(php|jsp|do|swf){deny all;}
|
|
dorothyRENDec 15, 2017
9
正则匹配,非这几个尾巴的 return 一个 403
|