/    Sign up×
Community /Pin to ProfileBookmark

What’s the best way… Opinions

Hi, i have a few directories on my site that i need to password protect…

Simple Question… but i’m hoping for a few different methods (answers)

[B]What is the best way to password protect a directory?[/B]

to post a comment
Full-stack Developer

2 Comments(s)

Copy linkTweet thisAlerts:
@scragarNov 01.2007 — .htaccess is about the only way to secure a directory.

if the directory is not directly accessable from the browser(eg web files in /home/www/ and your files in /home/xyz/) then a server side language can provide access in a variaty of ways allowing easy restriction, this is however much slower than htaccess.
Copy linkTweet thisAlerts:
@ray326Nov 02.2007 — The "best" way is the way that fits into your current architecture.
×

Success!

Help @oo7ml spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...