Today in this post we will explain you how to block all HTTP methods except GET & POST.
Step::1 First of all login to your hosting cPanel and then select the File Manager
Step::2 Now select the public_html
Step::3 And then find & Edit the .htaccess file in your installation directory
Step::4 Now Copy the below code and paste inside the .htaccess file
<LimitExcept GET POST>
Deny from all
</LimitExcept>
Step::5 In the end click over Save Changes tab.
This code will block all HTTP methods except GET & POST. That’s all, you’re done!!
Thanks for Reading this article !!! We hope this was helpful to you all.
If you’re looking for cheap web hosting. Please Contact to MEGA ACS HOST. Shared web hosting started at ₹ 399/Year.
Mega ACS Host: Website:- https://www.megaacshost.com/
Follow Us social media
Facebook Page– https://www.facebook.com/megaacshost/
Twitter Page– https://www.twitter.com/megaacshost