/    Sign up×
Community /Pin to ProfileBookmark

Password-protecting content (MP3, video)

Hi, [u]i find it unusually difficult[/u] to find answers on the net on how to really password-protect content without using .htaccess passwords (which is no longer used by virtually any pro web site) and without using PHP to simply protect html pages, which does NOT protect content like MP3/video. (Why thousands of google results point in those directions is beyond me.)

I would like this content to be inaccessible by users unless they enter their password, basically like a pay porn site.

I speculate that the content would have to reside outside of the root (ie, outside public_html) but i would not know where to go from there.

Note that i know a bit of PHP and cookie passwords; it’s the general outline that i need; a general how-to.

to post a comment
Full-stack Developer

1 Comments(s)

Copy linkTweet thisAlerts:
@JearanauthorSep 14.2010 — I figured it out with this link: http://x10hosting.com/forums/tutorials/45531-how-protect-images-without-htaccess-using-php.html

It works and it's getting me started.
×

Success!

Help @Jearan 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,
)...