Q:

How to avoid hosts to acess my phpmyadmin? 

I'm using XAMPP server and I add this line " Require all granted" in the file httpd-xamp.conf to allow hosts connected in my network by Lan to acess my files.  And I want to restrict Hosts from acessing my admin server, such as XAMP page or phpmyadmin.  How can I do please? 

A:

You could add a .htaccess file inside any directory you want to protect:
order deny,allow
deny from all
allow from XXX

Where XXX is your IP address 

