How to prohibit viewing common images on a server via a direct link?
All images are in the folder www/uploads/ . For each user, the image assigned to him is displayed. But if some user creates a direct link to this folder or the files that are stored there, then he will be able to access other images.
What are the options:
Store images and all other downloadable files by the user in the database. (not a good option)
Deny access to the folder in which images and other files are stored, via the configuration file of the web server. But in this case, how can users see it?