Page 1 of 1

Password Protected Blog

Posted: Mon Jun 28, 2004 5:57 pm
by JamesK
I would like to consider using Serendipity to run a private web journal, that is, no access to the posts without login. I have made a couple of attempts to protect the first page with a password, but because Serendipity uses htaccess all I did was mess things up. I can use a password protected index filter, but i wondered if there is something easy that I can change in the Serendipity php files to do this

Re: Password Protected Blog

Posted: Tue Jun 29, 2004 10:18 am
by garvinhicking
Basically your first try was right. Just edit your .htaccess file

Just add those lines at the *TOP* of the file:

Code: Select all

AuthType Basic
AuthName "Authorisation: Blog"
AuthUserFile /etc/.htpasswd
ErrorDocument 403 /serendipity_access.htm
require valid-user
Of course you need to adjust your paths...

Posted: Tue Nov 30, 2004 12:56 am
by CapriSkye
is it possible to just protect certain category? maybe entries to the protected category won't show up in main index, and when people click on that category it will prompt for password? thanks

Posted: Tue Nov 30, 2004 1:09 pm
by garvinhicking
In 0.8 it is possible to only allow editors/authors to access entries, via the 'entryproperties' plugin (normal users will not see them at all). So it's on a "per entry" basis, not "per category". It could be made to be per category, but since I do not support the concept of protected blog content, I will not code that by myself...

Regards,
Garvin.