use .htaccess to blacklist undesired users and bots


/ Published in: Other
Save to your folder(s)

Apache can be used to ban undesirable people and bots from your website. With this code, we’re telling Apache that everyone is allowed to visit our blog except the person with the IP addresses


Copy this code and paste it in your HTML
  1. <Limit GET POST PUT>
  2. order allow,deny
  3. allow from all
  4. deny from 123.456.789
  5. deny from 93.121.788
  6. deny from 223.956.789
  7. deny from 128.456.780
  8. </LIMIT>

URL: http://www.smashingmagazine.com/2010/07/01/10-useful-wordpress-security-tweaks/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.