hwl198212 发表于 2016-12-26 07:06:16

Nginx limit http DELETE SEARCH and other methods

  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
页: [1]
查看完整版本: Nginx limit http DELETE SEARCH and other methods