Nginx 禁止文件扫描,返回200代码,防止WWWSCAN,御剑等扫描软件的扫描

​

代码

location ~* /login.php {
return 200 /404.html;
}
location ~* /admin {
return 200  /404.html;
}

​