Hey,
I have played around with different ways of password protecting a video file from a link and I come up empty. the only way I can think of is to have it on a separate page, where that page is password protected?!!!
If anyone know and can help with an attempt to password protect a single link it would be very much appreciated. It doesn't necessarily have to be in php if other methods are there I am all ears.
Thanks
BC
password protect a single link
Moderator: General Moderators
Re: password protect a single link
Put a .htaccess file in the same dir as your movie, with this content:
And /some/nonpublic/folder/.htpasswd sould be a text file with this line:where PasswordHash is password, hashed with PHP's crypt function. You can also create a hash online, for example here.
Code: Select all
<files "yourmovie.mkv">
AuthUserFile /some/nonpublic/folder/.htpasswd
AuthName "Sorry, 18+ only!"
AuthType Basic
require valid-user
</files>Code: Select all
UserName:PasswordHashRe: password protect a single link
can I do it for all the movies in that directory and not just one?
Re: password protect a single link
Thank you for pointing me in the right direction Apollo.
I ended up going with
<MatchFiles>
BC
I ended up going with
<MatchFiles>
BC