My target is to hide the ribbon for visitors. For site owners it needs to be visible. I googled around and find something like this below. Is this also working on pages or only in masterpages?
If this is not working in pages, is there some other solution to hide the ribbon only for visitors?