Page 1 of 1

Restricting access to index page

Posted: Fri Feb 22, 2008 3:20 am
by Pakito
Hi,

I'm looking for a way to restrict the access to my site to registered users. I would be registering the users through the admin panel.
I realize there would be a way through .htacess and userlist file, but I'm wondering if there's a way from within s9y.

Thanks

Re: Restricting access to index page

Posted: Fri Feb 22, 2008 10:15 am
by garvinhicking
Hi!

There are several ways you can do this:

1. Make your blog categories read-only to logged in authors. This will still allow visitors to open your blog, but they will see no entries.

2. Create a custom .htaccess file with a fixed password list to "block" people.

3. Use the serendipity_event_httpauth plugin (available from spartacus) to use a password prompt so that people must log in. This plugin however only works when your Apache server runs PHP as a module, not a CGI.

HTH,
Garvin

Posted: Fri Feb 22, 2008 6:54 pm
by Pakito
Thanks Garvin,

the serendipity_event_httpauth plugin made the trick just as I needed!

Have a great day
pakito