How do I hide the Browse menu from anonymous users in Confluence?

Are there any plugins, macros, Javascript tricks, or CSS tricks that will allow me to omit or hide the Browse dropdown menu from the top of the page when a user is not logged in? I am using the Documentation Theme in Confluence 4.2.13.

2 answers

1 accepted

4 votes
Accepted answer

Add this in the Administration > Custom HTML.

    if (AJS.params.remoteUser == ''){

Thank you. That's works great.

Is this at all possible with OnDemand version? We are looking to have just a portion of our content public... it would be better to not show things the user can not access.

Unfortunately you cannot edit such features in OnDemand environment as per its restricted functions

This approach is really problematic in some cases because it is only hide the button but don't prevent access to content itself.

If the customers know that the system being used is confluence he might try and navigate to this pages with the url.


I added the above code in the HEAD section of Custom HTML, but when I try as an anonymous user, the Browse menu is still appearing.

Is there anything else that I need to do?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

938 views 48 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you