secure phpmyadmin from ip access
by Ramya[ Edit ] 2012-08-13 17:35:08
secure phpmyadmin from ip access:
you can secure phpmyadmin from other ip access by following the steps below,
For windows:
* go to xampp path.
* move to xampp/apache/conf/extra
For linux,
* open terminal.
* login as root
* go to /opt/lampp/etc/extra
* open httpd-xampp.conf file.
* add the below given lines at the end of the page,
<LocationMatch "^/(?i?:security))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
# Close XAMPP sites here
<LocationMatch "^/(?i?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
Note: check if the above lines present already. If yes, then just remove it and replace with it.