Is it possible to block access to phpmyadmin page over the network in XAMMP Windows? I want only localhost(127.0.0.1) to be able to access the page. Other people connected to the same network shouldn't be able to access it. Eg. if 192.168.1.2 tries to access 192.168.1.1/phpmyadmin they couldn't access it.
If I was running phpmyadmin and wanted to restrict access to localhost, I would use the Apache web server and would use the Order, Deny, and Allow directives to govern access. For example:
<Directory "/my/restricted/content" > Order Deny,Allow Deny from All Allow from 127.0.0.1 </Directory>
If you don't use Apache but your web server has something similar to Apache's mod_authz_host you should be able to set up a similar access restriction.
In addition to having your webserver block acccess to the right URL you should also: 1 Not use /phpmyadmin is the path 2 Not install phpmyadmin on the default listening ports (80, 443) 3 Configure the hosts firewall to block external access to the port you use 4 Consider not leaving phpmyadmin active all the time; it takes almost no time to spin up an httpd so leave it off and light it up when you need to use it, and take it down when you're done.