Can we prevent others from using the image resources on our discourse?

If I upload an image on discourse, others can get this image’s link by right-clicking it.
Then others can use this link in their sites but using our server’s resource.
For example, they can just add an image like this: <img src="https://d11a6trkgmumsb.cloudfront.net/original/3X/6/4/64af524f9f666e206333fce9e162ebdc9d7da671.jpeg

Can we prevent that?

You can attempt prevent it in NGINX see https://meta.discourse.org/t/protecting-your-discourse-installation-for-hotlinking/7491 It is an old thread, but according to @mpalmer in How to do hotlink protection in discourse? it is still relevant

7 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.