A M B I T I O U S - D R E A M S • N E T /// v.6: ian somerhalder

Block an IP Address


Is someone really annoying and keeps coming to your site to bash you or say rude things to visitors? Well, here's a code to block that loser's IP address from accessing your domain. Note: You must have a domain for this work.

  • First open up Notepad or whatever you write your html in and paste this code into it: deny from 12.345.67.89
  • Be sure to change 12.345.67.89 to the person's IP number (if you want to block more than one person just separate them with spaces), then save the document as htaccess.txt and upload it into your domain's main directory.
  • Then rename it .htaccess and you're done!

    Note: If you've previously used the .htaccess file for something like a customized 404 error page don't run over it! Just put the IP blocking code underneath it
    Hope this helped!

    [ Back ]