Protect phpmyadmin from ip access

by satheeshkumar 2013-05-28 14:30:29

Protect phpmyadmin from others ip access,

Step : 1
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.

phpmyadmin
Step : 2
Now insert the following code at the end of the file,

<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>

<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>


Now your phpmyadmin is protected from other ip access..
1107
like
0
dislike
0
mail
flag

You must LOGIN to add comments