Can I hide src from a video?

0

I am developing a panel of infoproducts that will play videos, I want to avoid downloading videos, how can I do it?

Use Html5

  <video class="dimvideo" controls><source src="videos/CompresoSE.mp4" type="video/mp4">                                                                  
   Your browser does not support the video tag.
  </video>

But maybe it looks like this

       <video class="dimvideo" controls>
        <source src="56456456/5645gfdgdfgdfgdfgdfgdfg" type="video/mp4">                           
        Your browser does not support the video tag.
         </video>

Can you block the download of the videos? just as I think Lynda.com does it

The src of your videos is like that                 link

You enter the link and something like that comes out.

 An error occurred while processing your request.
 Reference #50.47d63fc8.1478289421.5950864
    
asked by Alldesign Web 04.11.2016 в 00:34
source

3 answers

1

Make your src not point to a physical file, but rather to a handler or controllers with a method that responds to get requests. This reads the request of the video (it can be the real name or encrypted) MORE a token for that valid video created by you (that you define it ... the most basic thing would be a token or master ticket for that request of the video) you can also add the check of any cookie or authentication token or cookie that exists only when requests are made from your page ... that does not fit your imagination (you can also make the token expire for that video (the best thing is that the token be for a video and current user so with trolas that do not share the link ... I can think of a thousand more ways but those basically) then finally in your controllers you have a method that is / video (id, tokevalidoentregadoportuappParaEseVideoyEseUsuario, others ...) inside you read more data of authentication (cookie token etc if your system uses some clear it is) and finally you respond with a Stream that reads the file physical inside the server. This method can be a void that writes the valid response so that the player gets the video.

    
answered by 05.11.2016 в 14:23
0

to not show a url that ends .pdf .mp4 you can use the restful library that hid your url for example it was this way mipagina / videos / xmen.mp4 and with restful sera mipagina / videos

    
answered by 04.11.2016 в 01:18
0

This is not possible, because when the image (or video) loads in the user's browser, this one, already "downloaded" that image (or video) from some source to show it. In the case of images for the user, it would be as easy as

Right click:

  • Save image as ...

  • Copy image URL ...

answered by 13.12.2016 в 14:22