Well, thatβs hard. You need at least one open page for guest users to see how they get to the portlet to log in. For the rest of the pages, you have several options.
1) Just save one guest page, it will be your home page with a portlet icon for guest users to enter your site. Do not hold any other publicly accessible pages and simply use private pages, whether it be a community or organization or user.
2) Again, leave one guest page to enter. Now for all other publicly accessible pages, go to the Page Management page on a separate public page. Click Permissions. Remove the View permission from the Guest and retain the view permission for the community member and / or organization.
source share