Show/Hide content based on IPs

We have a situation where within the same space, we would like certain content to only be visible based on the users IP that is accessing the system. We have complete control of the base systems (OS, Apache, etc).

Is there a native mechanism for this?

Can it be done with a custom plug-in?


1 answer

0 votes

Forget Confluence for this - it's not got anything, and even if it did, it's the wrong place. You want to block access well before the user gets to the application.

You want to be looking at IP white-lists for Apache really.

Although I still don't really trust it, as I've been involved in security testing that involves spoofing IP addresses and it's horribly easy to bypass most IP level restrictions we were looking at.

I know we already do a lot of this an the network layer for access to whole sites. What I would like to do is turn on/off peices of content within a page. What about a custom plug-in? Scenario:

- When a user access the site from a specified IP range, we set an environment variable identifying them

- There is a plug-in that inspects that value and conditionally shows content

This is a model we have used in some custom built apps, just wondering if we could re-create that functionality inside Confluence.

I know it's a long shot, just investigating.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

261 views 2 10
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