F frontal New Member Sep 21, 2018 #1 Sep 21, 2018 #1 Hi, Is there a way to disallow specific HTTP methods such as DELETE ? Thanks
P Pong Administrator Sep 21, 2018 #2 Sep 21, 2018 #2 Have you tried something like the following? RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|PUT|OPTIONS|DELETE|HEAD) RewriteRule .*$ - [F,L] https://developer.ibm.com/answers/q...-disable-http-methods-head-put-delete-option/
Have you tried something like the following? RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|PUT|OPTIONS|DELETE|HEAD) RewriteRule .*$ - [F,L] https://developer.ibm.com/answers/q...-disable-http-methods-head-put-delete-option/
F frontal New Member Sep 21, 2018 #3 Sep 21, 2018 #3 Thank a lot (once again !!) @Pong I might be a little bit stupid because I didn't think about using rewrite rules in .htaccess. This should be the solution. I will try it tonight and come back to you.
Thank a lot (once again !!) @Pong I might be a little bit stupid because I didn't think about using rewrite rules in .htaccess. This should be the solution. I will try it tonight and come back to you.
F frontal New Member Sep 21, 2018 #4 Sep 21, 2018 #4 I've just tested it. It works perfectly. Thanks ! Last edited: Sep 21, 2018