Jump to content

Protect DIR but allow access to a file/files


peepsnet

Recommended Posts

So you want:

 

Use htaccess & htpasswd to protect an entire Directory.

Allow exceptions to particular files within that Directory

 

I don't think it is possible. What you could do is:

1. Obviously use two separate directories.

2. Use htaccess & htpasswd to protect particular filetypes using a wildcard, e.g. *.jpg.

 

-steve

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.