Jump to content

[SOLVED] Blocking Folder Access from all but Internal requests?


Guest

Recommended Posts

Hello all,

 

I've been searching for a definitive way to do this, and I've found things that beat around the bush, but never quite did what I wanted.

 

I want to block direct access to a folder and all its sub directories, but allow access for internal requests; like when a page loads external stylesheets or images.

 

And this has to be in an .htaccess file--so the Directory directive won't work.

 

I've tried exploring the principle for preventing hotlinking (checking the referrer), but I haven't actually tried it, and would also like to know if there are any other options.

 

Any help is appreciated. Thanks in advance!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.