We are currently developing a

Sharepoint 2010

based website for a leading project management company in Australia. Since this website  is a public website the Ribbon bar has to be hidden for anonymous users. We tried hiding the ribbon using style sheet but then it hides the ribbon even for logged in users. Then we found this LoginView control that could be used for displaying different information to anonymous users and logged-in users.



1. Add a LoginView control to the Sharepoint 2010 master page

2. Add AnonymousTemplate section to the LoginView Control

3. Place the entire SPRibbon control within the Anonymous template


That's it now the Ribbon control will be invisible to Anonymous users.