Restrict phpmyadmin by IP

jp001

Member
Hello! I'm looking at options for securing phpmyadmin and was wondering: What is KH's recommended method for restricting phpmyadmin by IP address?

Thanks!
 
Answer from KH-JamesW from another thread. Posted here as a resource for fellow DA newbies:

Navigate to /var/www/html/phpMyAdmin/ and create ".htaccess" - pico, nano, or vim all work here of course. And insert the following:

Code:
<Limit GET POST PUT>
Order deny,allow
Deny from all
Allow from 111.111.11.1
Allow from 111.1.22.1
</Limit>

Of course, make sure your IP is in the above block. If your IP doesn't match, you should see a 403 Forbidden message when trying to login.
 
Top