Home  >  Q&A  >  body text

前端 - h5的<video>有没有好的防盗链解决方案

我看到优酷, 乐视这些网站PC端会对会员视频进行了限制, 但是访问移动端网页看源码还是能够扒出视频源地址, 腾讯, 爱奇艺还好直接不给10分钟试播, 这样不失为一种办法, 但是目前来说就没有比较好的防盗链方案吗?

迷茫迷茫2764 days ago591

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 11:44:57

    H5 is all plain text, so there seems to be no good way. At most, cookie session can be used to determine whether the source is this domain name, but it seems that it can be spoofed.

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 11:44:57

    1. Detect origin 2. Encrypted address 2.URL Token

    reply
    0
  • Cancelreply