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.
- Configure ownCloud for SSL on Ubuntu 10.04.4
- Free or open-source self-hosted spreadsheets
- WordPress uploadify.php exploit
- Change the Windows default Remote Desktop (RDP) port
- Configure dual monitors in Lubuntu
Previous Post: « Check your computer for DNS Changer MalwareDo you have something to say? Send me a message on Twitter @nwlinux.
Next Post: Chrome 19 introduces Other Devices Tab Sync »