Possible Duplicate:
How to secure phpMyAdmin
After searching online someone suggested adding a .htaccess file containing the following
Redirect 301 /phpmyadmin http://www.example.com/
but this did not work for me. Is the any other way of preventing people from accessing the phpMyAdmin login page by using the url http://www.example.com/phpMyAdmin?
the .htaccess redirect is the best way but, you can always go to index.php in the phpMyAdmin folder and insert either
exit();or
header('Location: http://www.mydomain.com');as the first line of index.php. This will just exit or redirect to the main page of your site whenever anyone tries to access that page.