4

I want to block direct access to the assets folder on my website which contains all my images, style sheets, and etc.

However, if I do this by a "DENY FROM ALL" command in a .htaccess file in the root "assets" folder, none of my pages can access the assets; which makes sense.

Is there anyway to allow website pages to access the files, but block a person who directly tries to access them (e.g., www.pburtchaell.com/assets/images/../)? Thanks!

Patrick Burtchaell
  • 4,112
  • 1
  • 14
  • 25

0 Answers0