Restricting access to index page

Having trouble installing serendipity?
Post Reply
Pakito
Regular
Posts: 6
Joined: Thu Feb 07, 2008 6:56 pm

Restricting access to index page

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Restricting access to index page

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Pakito
Regular
Posts: 6
Joined: Thu Feb 07, 2008 6:56 pm

Post by Pakito »

Thanks Garvin,

the serendipity_event_httpauth plugin made the trick just as I needed!

Have a great day
pakito
Post Reply