The following code is extremely helpful to help thwart unwanted attacks on your website. If you ONLY want the server to to allow POST requests and block external IP’s from being able to do so, then add the below to your .htaccess file.
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REMOTE_ADDR} !127.0.0.1
RewriteRule ^ / [F]The above code is
(
Read more... )