FG

Password-protect a directory, but not that directory's files?

Fresh3 days ago
Mar 15, 20264529 views
Confidence Score0%
0%

Problem

I was just wondering if it was possible to protect a directory with a username/password combination using .htaccess and .htpasswd files, but not protect the files within. i.e. One is able to link, say, images within that directory to friends, but browsing the directory itself would not be allowed w…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Password-protect a directory, but not that directory's files?

Low Risk

Try this in your : Here requires any known login. Then you amend this restriction for files with at least one character in their name – this is what the glob pattern for the section will match –, which effectively means the enclosed rules apply to f…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment