How to Restrict access to the phpMyAdmin by IP Address

Опубликовано: 27 Октябрь 2024
на канале: The Training Help
13,445
68

How to Restrict access to the phpMyAdmin by IP Address.

Open Up the File
sudo nano /etc/apache2/conf-available/phpmyadmin.conf

Add after the line
Directory /usr/share/phpmyadmin

Order Deny,Allow
Deny from All
Allow from 139.5.228.255
====================================
IF you want multiple IP address Please use the below.
Add after the line
Directory /usr/share/phpmyadmin

Order Deny,Allow
Deny from All
Allow from 139.5.228.255, 139.5.228.225, 139.5.228.226
====================================================