Page 1 of 1

limit access to XAMPP

PostPosted: 10. February 2009 15:37
by stijngielis
I've succesfully installed XAMPP on CentOS for intranet purposes. In "/opt/lampp/htdocs/" I've made a new folder (/opt/lampp/htdocs/intranet/) in which I'll put my files for the intranet.

Is it possible to limit acces to this folder (/opt/lampp/htdocs/intranet/) so only PC's with a IP-address within a specified range can access this folder?

E.g.:
the following pc's can access the folder:
192.168.1.5 - 192.168.1.35
192.168.1.100 - 192.168.1.150

Thanks in advance!

Re: limit access to XAMPP

PostPosted: 10. February 2009 16:30
by Wiedmann

Re: limit access to XAMPP

PostPosted: 20. February 2009 02:21
by dmphotography
Also check out .htaccess files. You use the same directives that Wiedmann linked you to and they're really easy to use. Google tutorials on .htaccess files if you haven't already checked them out, because they're extremely useful and will also help you do what you're trying to do.

I recently discovered their potential after researching it for a tutorial I was writing on it.

Re: limit access to XAMPP

PostPosted: 20. February 2009 06:48
by stijngielis
Thanks for the tip.

However, I must say I did the job with .htaccess. :lol: