Restricting folder access using httpd.conf
If you want to restrict access to phpMyAdmin or the administrator folder to a specific IP, add Directory settings to httpd.conf.
The setting below means that only xxx.xxx.xxx.xxx is allowed for the IP accessing the /var/www/phpMyAdmin folder.
If you access the folder from an IP that has not been set up, an error occurs.
<Directory "/var/www/phpMyAdmin"> Options FollowSymLinks Multiviews AllowOverride None Order deny,allow Deny from all Allow from xxx.xxx.xxx.xxx </Directory>
If you want to allow multiple IPs at the same time, you can use multiple lines of Allow from as shown below.
Allow from 18.104.22.168 Allow from 22.214.171.124 Allow from 126.96.36.199
Refer to the link below for a detailed description of the setting that allows multiple IPs at the same time.