T
T
toptyg2015-09-24 21:38:52
Nginx
toptyg, 2015-09-24 21:38:52

Html5 + pass in url?

Hi all.
There is an mp4 video on the server. I want to work with him, play through the Html5 player.
But I wanted access to the video with a password, earlier with a swf player it was possible to pass a login and a pass in the address ..
http://user:[email protected]\1.mp4
But in the docks they write that IE does not support links with a login and pass in the urls... how to be?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Azazel PW, 2015-09-25
@azazelpw

conf site
in the site config you insert
< Directory /var/www/site/directory to be password protected>
AuthType Basic
AuthName "%site%"
AuthUserFile /etc/apache2/passwd-db
------------
Create password file.
http://name:[email protected]
And everything comes in.

D
Denis Ineshin, 2015-09-24
@IonDen

This is the wrong approach.
Correct:
1. Registration on the site
2. For registered users, a special URL is generated up to the server script
3. This URL has a limited lifetime
4. And only by this URL the server already returns the video
5. Something like this.

A
Alexander Aksentiev, 2015-09-25
@Sanasol

https://poiuty.com/index.php?title=Nginx_secure_link

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question