Nginx block all request except GET.
If you want to block a specific type of HTTP request methods like POST, then use limit_except directive. Edit your /etc/nginx/sites-enabled/<your-app> location ~* { limit_except GET { allow 192.168.1.0/32; deny all; } } Rest...
Jun 13, 2019104