Preventing access to images
Posted on 2011-04-28
I know how to code to restrict access to php pages, but I am wondering how to prevent images being download, if someone knows the path (without going via the web app).
I want to make sure only my registered users with the right credentials can access them, but restrict others from accessing them with the path.
I am not concerned about the authorised users, with the correct credentials from accessing or even downloading them. I just want to make sure for security reasons, that they cannot be accessed unless the person has the correct credentials.
I would appreciate advice here. I am not sure if this needs to be done at the server level or the app level.