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>


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.