httpd.conf文件,添加如下即可:

<Directory "X:/xampp/phpMyAdmin">
Order deny,allow
Deny from all
Allow from 127.0.0.1
AllowOverride All
</Directory>

重启Apache即可限制phpMyAdmin只能127.0.0.1访问。多个IP就写多行allow from。

Related Posts: xampp-Apache-限制phpMyAdmin的IP访问 :