I was wondering if there is a way to secure an image or a file to be hidden when it is not authenticated.
Suppose there is an image in my website which can only be seen if that user is authenticated. But the thing is I can copy the url or open the image in the new tab.
And again, even if I am not authenticated, I can view that particular image by going to that url. So, my question is or my problem is, how do I secure the files, so that only authenticated users will see. I hope I was clear, if not please ask. I will really appreciate if you could help me. And if possible in a pythonic/django way.