保护ASP.NET中的图像 [英] Protecting Images in ASP.NET

查看:63
本文介绍了保护ASP.NET中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我知道不可能完全保护网站上的图像

所以没有人能够得到它们。但是必须要有很多方法可以阻止人们窃取图像,并使图像被盗更加困难。我目前正在使用没有右键单击

javascript函数,但是有没有更多方法可以阻止人们从b
窃取图像?

欢乐

解决方案

您可以尝试通过ihttphandler管道gif等请求

检查了引用并拒绝那些未在您的服务器上作为整个

页面请求的一部分的内容。


问候


John Timney

微软区域总监

Microsoft MVP

< si *********** @ yahoo。 COM>在消息中写道

新闻:1d ************************** @ posting.google.c om ...



我知道完全保护网站上的图像是不可能的,这样就没有人可以得到它们了。但是必须有很多方法可以阻止人们窃取图像并使图像更难以被盗。我目前正在使用没有右键单击的
javascript函数,但是有没有更多方法可以阻止人们偷取图像?

Joy



您可以尝试通过ihttphandler管理gif等请求,

检查引用者并拒绝那些未作为整体的一部分

您服务器上的页面请求。


问候


John Timney

Microsoft Regional导演

Microsoft MVP

< si *********** @ yahoo.com>在消息中写道

新闻:1d ************************** @ posting.google.c om ...



我知道完全保护网站上的图像是不可能的,这样就没有人可以得到它们了。但是必须有很多方法可以阻止人们窃取图像并使图像更难以被盗。我目前正在使用没有右键单击的
javascript函数,但是有没有更多方法可以阻止人们偷取图像?

Joy



您也可以将图像剪切到喜欢的位置并将所有部分放入一个

表中。用户应该单独下载所有部件,并在加入所有请求时。


您还可以创建getimage.aspx?img = name& code = id,这将返回

每个给定代码只有一次图像。并禁用任何缓存。

< si *********** @ yahoo.com>在消息中写道

新闻:1d ************************** @ posting.google.c om ...



我知道完全保护网站上的图像是不可能的,这样就没有人可以得到它们了。但是必须有很多方法可以阻止人们窃取图像并使图像更难以被盗。我目前正在使用没有右键单击的
javascript函数,但是有没有更多方法可以阻止人们偷取图像?

Joy



Hi,

I know that it is impossible to completely protect images on websites
so that no one can get their hands on them. But there have to be a
lot of ways to deter people from stealing images and make it harder
for the images to be stolen. I am currently using the no-right-click
javascript function but aren''t there more ways to deter people from
stealing images?

Joy

解决方案

You could try to pipe requests for gif etc through an ihttphandler that
checked the referrer and rejected those that did not come as part of a whole
page request on your server.

Regards

John Timney
Microsoft Regional Director
Microsoft MVP
<si***********@yahoo.com> wrote in message
news:1d**************************@posting.google.c om...

Hi,

I know that it is impossible to completely protect images on websites
so that no one can get their hands on them. But there have to be a
lot of ways to deter people from stealing images and make it harder
for the images to be stolen. I am currently using the no-right-click
javascript function but aren''t there more ways to deter people from
stealing images?

Joy



You could try to pipe requests for gif etc through an ihttphandler that
checked the referrer and rejected those that did not come as part of a whole
page request on your server.

Regards

John Timney
Microsoft Regional Director
Microsoft MVP
<si***********@yahoo.com> wrote in message
news:1d**************************@posting.google.c om...

Hi,

I know that it is impossible to completely protect images on websites
so that no one can get their hands on them. But there have to be a
lot of ways to deter people from stealing images and make it harder
for the images to be stolen. I am currently using the no-right-click
javascript function but aren''t there more ways to deter people from
stealing images?

Joy



You can also cut image to the pleases and put all part''s in to one
table. User should download all parts separately and when join all pleases.

Also you can create getimage.aspx?img=name&code=id, which will return
image only once for each given code. And disable any cache.
<si***********@yahoo.com> wrote in message
news:1d**************************@posting.google.c om...

Hi,

I know that it is impossible to completely protect images on websites
so that no one can get their hands on them. But there have to be a
lot of ways to deter people from stealing images and make it harder
for the images to be stolen. I am currently using the no-right-click
javascript function but aren''t there more ways to deter people from
stealing images?

Joy



这篇关于保护ASP.NET中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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