I have a website in PHP, in which I want to secure user uploaded images and files, either by encryption/decryption or by providing password security to corresponding directory.
So that only that user can see it and others will not be able to see or download it.
I have tried to secure it using .htaccess, it restricted outside user from accessing that directory. However I am passing those image links to Android and iOS APP. Due to restriction given by .htaccess those APP are not able to display those images.
Kindly let me know if you have any suggestion to secure it.