Thursday, March 31, 2016

Disable POST Upload and Allow from localhost and particular IP

Open .htaccess file and place the piece of code :

# allow the server to POST to itself
RewriteCond %{REMOTE_ADDR} !127.0.0.1

# allow POST from trusted users
RewriteCond %{REMOTE_ADDR} !x.x.x.x

No comments:

Post a Comment