从URL preventing直接访问 [英] Preventing direct access from url

查看:145
本文介绍了从URL preventing直接访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的工作之一,我需要建立一个功能,让用户上传视频。即时创建一个目录,如果不存在对用户和视频的存储进去。我做了目录中的.htaccess文件中列出关闭,因此在这种情况下,任何人都可以访问直接从URL列表文件。

In one of my work i need to build a feature for users to upload videos. i m creating a directory if not exists for that user and storing videos into it. I did directory listing off in .htaccess file so in this case no one can access files listing directly from url.

但是,当任何人都可以播放使用视频,嵌入code生成,并在这条道路也显示该视频。当我复制和粘贴网址路径,视频被下载。我想prevent它直接访问?任何人都可以具有相同的解决方案?

But when anyone can play that uses video, embed code is generated and in that path is also displayed for that video. When i copy and paste that path in url , video gets downloaded. i want to prevent it from directly accessing? can anyone has a solution for the same?

推荐答案

https://tn123.org/mod_xsendfile/

我用这个

这篇关于从URL preventing直接访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆