We found an excellent article about securing a web application through Apache's mod_rewrite. http://perishablepress.com/press/2009/02/03/eight-ways-to-blacklist-with-apac...
Kingston Ontario