I had Moodle 3.11 i upgraded to 4.2 following the procedure from the docs. But after the upgrade, (i also moved it to a new VM) i notice that when ever I go to the platform, on the top right corner it shows that i'm connected anonnymously, next to the login button. I searched through the internet, the docs, checked my settings, but couldn't fix it .
I don't want anonymous acces, at all, i want that whenever anyone lands on my platform, that they directly face the login page, and have no access to anything at all unless they log in. I already disabled the anonymous connection button as many articles suggested but it doesn't solve the issue.
EDIT:
I've already done the following actions, but it did litterally nothing that can be seen. so the issue remains:
At "Security > Site security settings" /admin/settings.php?section=sitepolicies, enable the forcelogin option.
At "Security > Authentication > Manage" /admin/settings.php?section=manageauths (below the plugin list), set the guestloginbutton option to "Hide".
At "Users > Permissions > User policies" /admin/settings.php?section=userpolicies, disable the autologinguests option