How to block POST requests?

Rt Ibmer rtibmx at yahoo.com
Wed May 14 01:26:40 MSD 2008


My nginx server should never receive POST requests of any time (only HEAD and GET). How can I set up the configuration so that it will return forbidden (or otherwise just drop the request completely) if someone tries to POST data to my server? I thought I saw this somewhere a while back, but just checked the docs and mailing list archive and can't locate the info. Thanks!



      






More information about the nginx mailing list