Securing images so that they are only visible on the local network


I’m interested in setting up a self hosted version of Rocketchat and I’m wondering if it’s suitable for my use case.

I’d like to use Rocketchat on a local network. However I’d like all media such as images to be blocked when users are not on the local network.

Is this possible?



You can accomplish that with some reverse-proxy “magic”.

Considering that all file uploads will live in urls like:

you can force the reverse-proxy to only allow access to /file-upload/* from the IPs you want.

let me know if this helps :slight_smile: