There are a couple of ways that I lock it down.. I won't get into specifics because I don't want you (or you!) trying to find it.. 
Rename your phpmyadmin alias:
Edit: /etc/httpd/conf.d/phpmyadmin.conf
Look for:
Code:
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias phpMyadmin /usr/share/phpmyadmin
(or something like that... )
and change it to something like:
Code:
Alias /supersecret456 /usr/share/phpmyadmin
Restrict access to your known ip address:
Edit /etc/httpd/conf/phpmyadmin.conf
At the top of the file you'll see something like:
Code:
<Directory "/usr/share/phpmyadmin">
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
Modify it to only allow the ip addresses that you'll connect from:
Code:
<Directory "/usr/share/phpmyadmin">
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 70.100.100.100
Allow from 70.200.200.200
</Directory>
Restart apache and test it out!
Bookmarks