PDA

View Full Version : Limit access to website to site users


pjdevries
23rd June 2007, 15:36
Is there an easy way to limit access to a website to site users?

mlz
23rd June 2007, 19:07
.htaccess is your friend. :) You can setup allow deny, basic authentication, etc with an .htaccess file.

pjdevries
24th June 2007, 12:31
Thanks for the reply. I know about .htaccess and htpasswd. But I was wondering if I missed some nifty feature of ISPConfig that could make such a thing a little bit easier. It would be nice if you could limit access to ISPConfig defined site users from within ISPConfig itself and not having to do that manually.

mlz
24th June 2007, 16:37
Hmm, you probably could add the .htaccess to the site templates, then you just have to hack one of the ISPConfig files to create the password file part, or for that matter, point it to the .htpasswd in the sites root directory. (i.e. AuthUserFile /var/www/web1/.htpasswd) Look at the way the stats is setup, and copy that.

pjdevries
24th June 2007, 18:50
I'll definitly have a look. I'm quite a beginner though and and I'm still not comfortable with ISPConfig yet to start looking at and modifying templates. I'm not even sure which templates you mean :) I also prefer not to hack the sources. Once you start doing that, it will haunt you with every ISPConfig update.

till
25th June 2007, 10:36
Or you copy the .htaccess file from the /stats directory of the website to the website root directory (web).

pjdevries
26th June 2007, 18:47
That certainly is an easy way to do it.

mlz
26th June 2007, 19:28
Or you copy the .htaccess file from the /stats directory of the website to the website root directory (web).

I gotta learn to quit answering posts when I'm too tired. Thanks for the DUH moment Till. :D

pjdevries
26th June 2007, 20:00
No matter what, your help is very much appreciated ;)