Hi

How do I prevent all people accessing the site (all pages) unless they are logged in. I see you can do this for forums etc but can't seem to do it with pages.

Any help would be greatly appreciated

Thanks

Comments

platypus media’s picture

Anonymous users have to be able to access at least one page on your site, otherwise, how would they be able to log in?

What I would suggest, is don't promote anything to the front page (your login page). That way there won't be any content up for them to see. I think you can also set content to be invisible to anonymous users in Administer/Access Control.

Mike

Fred Flinstone’s picture

Hi Mike

Sorry, I would want the to come to my first page and the log in block it would be for the other pages form then on in.

thanks for your reply

Simon

fletcherson’s picture

To set this up, Drupal uses this exact term.
Go to Administer => Access Controll
Remove all the "ticks" under "anonymous user".

To login you can also use this link:
http://www.your-domain.com/your-drupal-folder/?q=user

slazenger’s picture

I know this months after your original query, and...

Check the node privacy module at http://drupal.org/handbook/modules/node_privacy_byrole.

With this you can set all your nodes (pages, stories, etc.) to be viewable only to logged on users. I guess you will be able to have front page that has the login block and a default/static page that has view permissions for all. That should help.
-S