OK this would be fine, allowing localhost first:
Code:
$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:
Code:
AuthUserFile /full/path/to/.htpasswd
AuthType Basic
AuthName "Warning Protected Page"
<Files "[some_page.php]">
Require valid-user
</Files>
and generating the
htpasswd file for your user:
cd to the dir where you want to keep the .htpasswd file :
Code:
htpasswd -c .htpasswd [username]
restart the services and check if the page is protected, that ways you can restrict access for other users.