Ban IP Address from your website using .htaccess
Some people has their own reasons for banning certain IP Address from accessing their websites.
Some because they want to single out an individual or certain organisation from browing their websites and some one to protect their website from excessing crawling from bad bots or any other form of bot attacks.
Whatever the reasons are, you can ban IP Address from accessing your websites by using Apache .htaccess file.
What you need to do is create add these lines to your .htaccess file and upload it to your web server directory.
Don’t forget to replace xxx with the IP Address that you want to ban.
order allow,deny
deny from xxx.xxx.xxx.xxx
deny from xxx.xxx.xxx.xxx
allow from all
Tags: htaccess, apache, ban, ip address
Recommended Reading
- Simplify your .htaccess task
- Fix Dreamhost Stats problem in Wordpress
- What’s the differences between cc: and bcc: in your e-mail client ?
- Your favorite website unavailable? Try Coral CDN
- List of TMNet Streamyx Broadband DNS
- Get Latest Currency Exchange rate from Foxrate.org : XML-RPC
- HugeURL - the opposite service of TinyURL













Thanks alot for this, that’ll stop my articles being ripped by some idiot who hotlinks my entire blog. Thanks again