Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

What visitors may see: the Anonymous role

How permissions apply to visitors who are not logged in - the Anonymous user and role, what it grants by default, AnonymousAccessList, RequireUserLogin, testing as a visitor, and common mistakes that expose or hide…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/creators/website-creators/visitor-permissions.md

On this page

What visitors may see: the Anonymous role

This page is for website creators who decide what the public can see and do. A visitor who is not logged in is the Anonymous user, and everything they may do comes from the roles assigned to it.

Contents

  1. The Anonymous user and role
  2. What it grants by default
  3. Siteaccess settings
  4. Giving visitors more
  5. Testing as a visitor
  6. Common mistakes

The Anonymous user and role

Every request without a login runs as the Anonymous user, a member of the Anonymous user group. Its permissions come from the role assigned to that group, usually called Anonymous (Roles and policies).

Setup, Roles: the roles of the installation, Anonymous among them, with their policies and assignments
Setup, Roles: the roles of the installation, Anonymous among them, with their policies and assignments

What it grants by default

The default Anonymous role has content/read and content/pdf limited to Section Standard. That one limitation keeps user accounts, the media library's own pages, setup objects and every other section away from visitors (Sections). It also has user/login for the public siteaccesses.

Siteaccess settings

site.ini [SiteAccessSettings]:

KeyMeaning
RequireUserLogintrue in site.ini; a public siteaccess sets false. true sends every visitor to the login page
AnonymousAccessList[]module views reachable without login even with RequireUserLogin=true (user/register, user/success, user/activate, user/forgotpassword, csp/report ...)

Giving visitors more

Visitors shouldAdd to the Anonymous role
Read a new public sectioncontent/read for that section
Post commentscontent/create for the comment class, limited to the places that take comments
Searchnothing: search shows what they may read
Buyshop/buy
See tag pagestags/read, tags/view
Subscribe to a newsletterthe newsletter module's subscribe policies

Keep the role small. Each addition is something every visitor on the internet may do.

Testing as a visitor

  • Use a private browser window, not your admin session.
  • Check a page in each section, a hidden page (must be gone), a members page (must ask to log in) and a draft (must be invisible).
  • The access check console command shows what a user may do: see doc/eng-us/examples/commands/accesscheck.md when the examples are installed, or the role pages in the administration.

Common mistakes

MistakeEffect
content/read without a section limitationvisitors can open user accounts and setup objects
A new section forgotten in the Anonymous roleits pages give "access denied" to everyone
Media in a section visitors may not readimages in articles still show (served as files), but media pages do not
RequireUserLogin=true copied to the public siteaccesseveryone is sent to the login page

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x