I'm hoping someone can help as I'm a bit of a noob when it comes to apache mod rewrite, and getting this one wrong can screw things up pretty bad.
While going though my security logs I noticed that almost 50% of the attacker bots had the string phpmyadmin (different case, sometimes with version numbers in it). i.e.
hhhh://www.example.com/phpmyadmin/
hhhh://www.example.com/something/phpMyAdmin/
hhhh://www.example.com/something/morestuff/phpMyAdmin/
hhhh://www.example.com/phpMyAdmin-2.11.3/scripts/setup.php
etc. etc. etc.
I'm wondering is there a way I can use mod rewrite to trap all of these and send them to
hhhh://www.example.com/bottrap/index.php
or something similar. (hhhh -> http - spam protection wouldn't allow http)
I figured just for good measure I'd add a deny to all in the robots.txt file and say thanks for the visit by contributing the ip address to the honeypot project.
I can handle the php stuff, but even after reading mod rewrite documentation, I'm still pretty lost. Any help would be much appreciated.