0

I do not use any framework I have a folder named 'uploads' and a sub-folder named images that i upload my images in It's obvious that I want users to access some images, but if users try to load, for example, this URL:

'example.com/uploads/'

they have access to all my images

so my question is where should I upload my images? or how can I deny access to a specific URL?

reza
  • 127
  • 1
  • 9

1 Answers1

0

You can create a .htaccess file for the folder, which should have denied access with

Deny from all

Udit
  • 129
  • 2
  • 6
  • If I do that, user can not have access to some images... I want them to have access to images but not folders – reza Dec 05 '19 at 15:35