Hope before coming to this u already read my previous post .htaccess ERROR PAGES
Now moving towards some complex .htaccess code, we will learn here how to Block users by IP and Changing your default directory page and many more things..
Blocking users by IP
Want to block a person from accessing your site, is there some one trying to penetrate your site, just add the following lines of code
order allow,deny deny from 220.127.116.11 deny from 012.34.5. allow from all