OK this would be fine, allowing localhost first:
$cfg['Servers'][$i]['AllowDeny']['order'] = 'deny,allow';
$cfg['Servers'][$i]['AllowDeny']['rules'] = array(
'deny root from all',
'allow root from localhost'
'allow root from 192.168.0/24',
How about checking with one ip address in "allow root from <ip>".
Another way which comes is setting up .htaccess
file in your phpMyadmin dir:
AuthName "Warning Protected Page"
and generating the htpasswd
file for your user:
cd to the dir where you want to keep the .htpasswd file :
htpasswd -c .htpasswd [username]
restart the services and check if the page is protected, that ways you can restrict access for other users.