使用Http处理程序拦截来自您站点的文件请求 [英] intercept file request from your sites using an Http Handler

查看:74
本文介绍了使用Http处理程序拦截来自您站点的文件请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个项目上,看到一些引用,这些引用使用Http Handler拦截来自站点的文件请求,并且想知道是否有人对此有任何想法.

我想使用Http Handler拦截从我的站点请求的所有文件,然后确定请求的来源并做出是否允许下载或阻止请求代理的决定.


非常感谢您的帮助.在此先感谢.

I was working on a project and seen some references to intercepting file request from a sites using an Http Handler and was wondering if anyone had any idea of how to go about doing so.

I want to intercept all file requested from my sites using an Http Handler and then determine the source of the request and make a decision if I will allow the download or block the requesting agent.


Any help is greatly appreciated.Thanks in advance.

推荐答案

此处 [^ ].


我在网上找到了这个,希望对其他人有帮助.这不是解决方案,而是朝正确方向迈出的一步.该功能的目的是防止第三方程序从用户站点中窃取视频和mps.

有时这是由真正的玩家完成的.如果我们知道哪个文件以及谁在向该文件请求授权用户或程序,我们可以允许我们阻止所有其他文件.

我找到了这篇文章,并将尝试对该概念进行扩展.在ASP中实现拦截过滤器.NET使用HTTP模块


我不是很肯定这是正确的方法,但是它给了我一个开始.请感觉发表评论或添加其他方法来实现相似的目标.
I found this online and hope it helps others. This is not the solution but a step in th right direction. The aim of the functionality is to prevent 3rd party programs to rip off videos and mps from the users site.

This is sometimes accomplished with real player. If we know what file and who is requesting the file an authorized user or program the we can allow all else we block.

I found this article and will be trying to expand on the concept.Implementing Intercepting Filter in ASP.NET Using HTTP Module


I am not positive this is the right approach but it gives me a start. Please feel to comment or add a different method to achieving the similar goal.


这篇关于使用Http处理程序拦截来自您站点的文件请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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