secure phpmyadmin from ip access

by Ramya 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 "^/(?iSad
?: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 "^/(?iSad
?: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.

Razz
Razz
Razz
990
like
0
dislike
0
mail
flag

You must LOGIN to add comments