nginx过滤 放到nginx的server配置段里面:
location ^~ /template {
return 404;
}
location = /c/ {
return 404;
}
location = /css/ {
return 404;
}
location = /images/ {
return 404;
}
location = /include/ {
return 404;
}
location = /js/ {
return 404;
}
location = /style/ {
return 404;
}
location = /upload/ {
return 404;
}
location = /html/ {
return 404;
}
location = /root/ {
return 404;
}
location ~ .*.(svn|Git|git) {
return 404;
}
|
所有评论仅代表网友意见