How can I make some images visible to logged-in members only and hide them from non-members? What i am concerned about is that if someone has the link to an image, they would be able to see it. How do I protect the images or the directory from non-members?
Let's say I have an image in a directory: images/sample.jpg
I looked at this question. My needs are the same but couldn't find the solution I was looking for. Host problems securing content in members area folders with .htaccess
Do I need to use .htaccess
to protect that directory? If that directory is protected by .htaccess
how can the members can see its contents?
EDIT
The members will be logged in using the login system that I have created using php
.