Who can see the community
Settings → Joining → Who can see it decides what a visitor who is not logged in sees. The start page sets it for the kind of site you picked, and you change it here.

- Who can see the community. Everyone, or members only. With everyone, visitors see the posts, profiles and spaces shared with everyone, and members see what is shared with members too. With members only, visitors are asked to log in, and the login and sign-up pages stay open to them.
- Who can see the rest of the site. Everyone, or members only. With everyone, your pages and posts stay as WordPress shows them, and only the community follows the setting above. With members only, every page of the site sends a visitor to the login page and back after it, and the community is for members only too. The login, sign-up and password pages and your privacy policy stay open, sitemaps are off, and the content WordPress gives through its REST API answers members alone.
- Profile pages. Public, members only, or off. Public, each member has a page anyone can open, and their name links to it wherever it shows.
- Members directory. On, members only, or off. On, Members is in the navigation and in search, with the Online now, New members and Who to follow widgets, and visitors see it while profile pages are public.
What a member shares is decided post by post and field by field as well: each post has its audience, and each profile field who sees it.