password protected directory?

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
User avatar
wvoyance
Forum Contributor
Posts: 135
Joined: Tue Apr 17, 2012 8:24 pm

password protected directory?

Post by wvoyance »

How do I make a whole directory passwrod protected?
Morrison's book told me how to protect a file by checking $_SERVER[...]

But how do I make a whole directory protected?

Thanks.
User avatar
Christopher
Site Administrator
Posts: 13592
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: password protected directory?

Post by Christopher »

Look into Basic HTTP Authentication.
(#10850)
Post Reply