Joomla provides Guest feature which is used to hide modules, menu items, content and other things from logged in users. This feature is provided by Joomla, but it confuses sometimes especially new developers.
So, Let’s understand by code:
First of all, From the top menu select “users” >> go to Groups and add new user group named “Guest” and add as a child of the Public group.
Then, Go to “
Viewing Access Levels” from User Manager and create a new access level named “Guest”.Assign the Guest group access to this level.
Create a menu link and set “Access” to “Guest” and you can see only non-logged in users will have access