Possible Duplicate:
How to secure phpMyAdmin
I use phpmyadmin to preview the database of my website. However, everyone can access the login page of my phpmyadmin by simply typing example.com/phpmyadmin
I am not an expert in network security but I assume this isn’t very secure.
How can I restrict the access to the login page(maybe creating some alias like example.com/a4ebb72d ).
I heard about allowing access only for specified IPs, but it won’t help because I have dynamically assigned IP.
I’d be thankful for your tips.
I’d make that server listen on
127.0.0.1and then use port forwarding with SSH…Make sure, the server serving phpMyAdmin only serves to 127.0.0.1, and then run
and then point your browser to http://127.0.0.1:4545/phpmyadmin, you should be able to access phpmyadmin as long as your SSH session is active. You can even make a shell script to automate this.
This works with PuTTY as well.