Why would you want to ban someone?, maybe someone was linking
to your pictures (hotlinking), was stealing your content /
pictures, abusive on your forum / message board, or a few rogue
search engine spiders were roaming around your site. There are
many reasons you may wish to prevent someone from accessing your
site, and with .htaccess it's very easy, if you require help
then this can be found on our forums here: Webmaster Forums or
here: Web Hosting
This article maybe updated here: .htaccess
What Is A .htaccess How To
Once you've created your htaccess file either open it in notepad
or edit it through your ftp/ssh program and put the following
code in it:
order deny,allow deny from 64.156.xxx.xx deny from
64.156.xxx.xx
Replace those sample numbers with the ips you wish to block,
there can be as many as you like.
About the author:
Session9 team has years of web hosting experience offering low
cost instant domain name registration and instant setup of all
web hosting services. 99% Uptime Guarantee. Visit us today at:
http://www.session9.co.uk/
|