Page 1 of 1

Restrict XAMPP to localhost

PostPosted: 13. March 2011 00:13
by westsurf99
Hello,

I have seen several posts about XAMPP security and reviewed the security instructions on Apache Friends, but I haven't found a clear way to restrict access to XAMPP to localhost only. I don't want any other computers to have access to XAMPP on my XP system.

Bonus question: is it possible to restrict access to localhost only and use XAMPP on a usb drive with relative paths? If so, how? Thanks for your time!

Re: Restrict XAMPP to localhost

PostPosted: 13. March 2011 15:30
by DC80
I do not know what system u use but in WIndows 7 it is possible to create a inbound/outbount rule in the firewall. So maybe you can block port 80 (or the port Xampp is running on).

Another suggestion would be to use .htaccess so you can secure your xampp directories.

Re: Restrict XAMPP to localhost

PostPosted: 13. March 2011 18:40
by westsurf99
Thank you very much for the suggestions! It looks like this will work for securing Apache. Is there a similar solution for securing phpMyAdmin? I like the option to control the security from the configuration files because that will allow me to work on my website from any machine with the usb xampp installation. This will prevent me from having to alter firewall settings on every machine I want to use xampp with.

Re: Restrict XAMPP to localhost

PostPosted: 14. March 2011 01:46
by westsurf99
Great, thanks again for your help!