I have a seperate folder for images on the website I’m working on, and I would like to prevent people from seeing the Images seperately.
I’ve put a index.html to deter prying eyes from seeing a list of Images. But nothing prevents them from typing the path, “mysite.com/images/example.jpg”
I’m assuming the best way to prevent somebody from doing this, is with a .htaccess file, but I can’t figure out how to make it work the way I want it to. I’ve tried some .htaccess generator and such, but I can’t wrap my head around it. If someone knows how to achieve what I’m trying to do, I would greatly appreciate it.