published October 9th, 2009 | categories: Apache, Browsers, Informational, Linux, Scripts, Security, Server | all categories
I have operated a web server for the last 3 or 4 years. But, only recently have people been attempting to access my phpmyadmin subdirectory. This post will provide a quick method of disallowing access to your phpmyadmin directory based on ip addresses.
Using terminal, navigate to your /etc/apache2/conf.d directory. Next, edit your phpmyadmin.conf file and place the following code directly after “<Directory /usr/share/phpmyadmin>.”
deny from all
allow from ip-address
Substitute ‘ip-address’ for your internal or external ip. If you want to allow more than one ip, whether internal or external, just add more ‘allow from’ lines.
Another method that I read about involved using php within your index.php of phpmyadmin. Read about that here.
- Convert and handle .PST archive to mbox
- What information does AeroFS keep about your data?
- Reduce prying eyes with these anti-PRISM software
- Installing Android Studio on Ubuntu Linux 64-bit
- Ubuntu 10.04.4 mouse cursor disappears on one monitor
Previous Post: « ownCloud sync: csync failed to create a lock filePartially conscious on Twitter @nwlinux.
Next Post: Free and open-source file sync software »
See all posts