Limit Available Methods
## Only allow these request methods ##
if ($request_method !~ ^(GET|HEAD|POST)$ ) {
return 444;
}
## Do not accept DELETE, SEARCH and other methods ##
具体参考这个:
Top 20 Nginx WebServer Best Security Practices
http://www.cyberciti.biz/tips/linux-unix-bsd-nginx-webserver-security.html
本文介绍了如何在 Nginx Web Server 中仅允许 GET、HEAD 和 POST 请求方法,同时拒绝 DELETE、SEARCH 等其他方法,提供了 Top 20 Nginx Web Server 最佳安全实践的链接。
1万+

被折叠的 条评论
为什么被折叠?



