Allow only specific IP ranges for phpMyAdmin

By | August 26, 2020

When you have phpMyAdmin installed, you do not want everyone to have access to the site. You can easily block access by allowing only approved IP’s or IP ranges. Edit the /etc/apache2/conf.d/phpMyAdmin.conf file and add the IP address range to allow using the, “Require ip” line. In the example below, you can see IP ranges and a single IP is being used.

Leave a Reply

Your email address will not be published. Required fields are marked *