Protect images folder (uploaded files) from unauthorized users access, if knowing the link

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
onoehring
Veteran Member
Posts: 248
Joined: 2019-05-21 22:42
Contact:

Protect images folder (uploaded files) from unauthorized users access, if knowing the link

Post by onoehring » 2019-07-23 06:05

Hi,

not my idea, but a great solution (imho).
At this time everyone, even without being logged in, can download stuff from the images folder (meaning all files that have been uploaded can be downloaded). The only thing one needs is the link to that file.

Here ( viewtopic.php?t=2856#p9355 ) is a great solution using a very simple .htaccess file in combination with a php file (both sources can be found at the link). (In the php file you need to close the php bracket ?> )

Olaf

Post Reply