htaccess code to block specific id address

Saturday, November 19, 2011

htaccess code to block specific id address.

If your blog is popular then, spammer will leave comments in your blog. You can control those spammer by using using the .htaccess file in the root folder of your website.

Code:
<limit get=”" post=”" put=”">
order allow,deny
allow from all
deny from 10.27.32.70
</limit>

You have to replace the 10.27.32.70 IP address with the given spammer’s IP. To add multiple IPs, simply add more deny lines.

<limit get=”" post=”" put=”">
order allow,deny
allow from all
deny from 10.27.32.70
deny from 20.90.20.70
deny from 90.60.60.80
deny from 40.80.30.90
</limit>

 

Most Reading

Sidebar One

+1-800-574-0902 +44-20-7993-2673 (ID: 173296)