Is it possible to control what an anonymous user sees in the browse menu?

Ideally, I'd like to be able to hide the entire browse menu from anonymous users, but if that's not possible, can I control what's shown on the browse menu to anonymous users?

6 answers

1 accepted

3 votes
Accepted answer
David Simpson Community Champion Aug 01, 2011

Browse to:

Confluence Admin | Look and Feel | Custom HTML 

In At end of the HEAD, add some javascript similar to this:

if (AJS.$('#login-link').length > 0) {

Thank you so much David!

This is the script I ended up using and I had to put it at the end of the body section.


if (AJS.$('#login-link').is(":visible"))











David Simpson Community Champion Aug 07, 2011

Cool. That will likely do the trick :)

There is also the excellent Menu Manager Plugin from CustomWare that does the trick brilliantly.

But remember, once you have hidden the commands, the user can still access many of the Confluence features by the URL as definined in this great post but most of these do require the confluence pageid.

I was able to combine the two above answers and make it work in Confluence 4.2.

I put this script at the End of Body

if (AJS.$('#login-link').is(":visible")) {

None of the above will work for OnDemand. Any other ideas?

My worry is, if you run these scripts, you will lose the edit menu too and be locked out. Any plan for that scenario?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

503 views 3 18
Read article

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