【问题标题】:How can i prevent using direct link on .mp4 file? [duplicate]如何防止在 .mp4 文件上使用直接链接? [复制]
【发布时间】:2020-08-27 07:11:36
【问题描述】:

假设我们有一个视频:name.com/video/random/random.mp4
和一个 html5 播放器:name.com/video/random/index.php
我怎样才能让用户在播放器中播放 .mp4 文件,但如果他进入 name.com/video/random/random.mp4
将他重定向到name.com

【问题讨论】:

标签: php html .htaccess


【解决方案1】:

您应该在 name.com/video/random/ 中放置一个 .htaccess 文件

【讨论】:

  • 请为您的答案添加一些解释 - 该文件是否应该包含任何内容?如果是,什么
猜你喜欢
  • 1970-01-01
  • 2013-06-02
  • 1970-01-01
  • 2012-05-01
  • 2023-03-28
  • 2013-03-15
  • 2010-09-08
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多