用asp保护图像 [英] protecting images with asp

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

问题描述

我读过Aaron的文章: http:// www .aspfaq.com / show.asp?id = 2276 re:

保护图像不被其他网站链接。该页面的

底部有一个链接,它引用了一篇有趣的文章,内容是关于保护图像不被下载的方式。我的理解是,如果客户看到它,那么它就是客户端缓存中的
。我错了这个

的信念吗?


我在文章中获取了信息,并创建了.asp,它呈现了一个

image vs另一个取决于HTTP_REFERER。我还添加了无权

点击并关闭了带有META标签的图片库,我在一个跨度内的另一个图像上放了一个

透明gif图像并设置为

背景。


我找到的一件事,没有提及,是我能够把
$ b在.css文件中加载$ b ..asp文件:

background:url(/ images / files.asp)


我没有看到任何以特定方式去做的引用。但是,我想看看是否有人可以通过这些设置并实际获得图像以及以何种方式完成图像。如果你真的想要它,我认为你可以把它从你的浏览器缓存中拉出来。

http://kiddanger.com/images/badtest.asp


另一个有趣的副作用是那个你跟踪.asp文件和

尝试直接加载它,它显示另一个图像,但它也禁用

从右键单击或查看源从下拉菜单中选择

然后点击浏览器上的后退按钮,

原始图像的图像大小就在那里但是它填充了多个实例

替代图像。然后,如果单击工具栏上的刷新按钮,

原始图像将返回。


我没有安装任何其他浏览器。我正在使用

IE6.0.2800.1106.xpsp2.030422-1633。我想知道

其他人的影响是什么。我非常感谢那些安装了其他

浏览器的人的反馈。


-

Roland


这些信息的分发是希望它有用,但

没有任何保证;甚至没有暗示的适销性保证o

r适用于特定用途的健身。

-Technet知识库 -
http://support.microsoft .com / default ...& ln = EN-US& FR = 0

-Technet Script Center-
http://www.microsoft.com/technet/tre ... er / default.asp

-WSH 5.6文档下载 -
http://www.microsoft.com/downloads/d...displaylang=en

-MSDN Library-
http:// msdn.microsoft.com/library/defa ult.asp

I read Aaron''s article: http://www.aspfaq.com/show.asp?id=2276 re:
protecting images from linked to by other sites. There is a link at the
bottom of that page that references an interesting article about ways of
protecting your images from being downloaded. It was my understanding that
if the client sees it, then it''s in the client cache. Am I wrong in this
belief or not?

I took the information in the article and created the .asp that renders one
image vs another depending on the HTTP_REFERER. I also added the no-right
click and turned off the image gallery with the META tag and I put a
transparent gif image over the other image that is inside a span and set to
the background.

One thing I found, which was not mentioned, was that I was able to put the
..asp file loading in the .css file with:
background: url(/images/filename.asp)

I didn''t see any references to doing it that particular way. However, I
would like to see if anyone can get past these settings and actually obtain
the image and in what way can it still be done. I would think you could
just pull it out of your browser cache if you really wanted it.

http://kiddanger.com/images/badtest.asp

Another interesting side-effect is that one you track down the .asp file and
try to load it directly, it shows the other image but it also disables
viewing the source from either right-click or from the pull-down menu and if
you then click your back button on your browser, the image size of the
original image is there but it is populated with multiple instances of the
alternate image. Then if you click the refresh button on the toolbar, the
original image returns.

I don''t have any other browsers installed. I''m using
IE6.0.2800.1106.xpsp2.030422-1633. I''m wondering what the effects are with
others. I would appreciate feedback from those of you who do have other
browsers installed.

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability o
r fitness for a particular purpose.
-Technet Knowledge Base-
http://support.microsoft.com/default...&ln=EN-US&FR=0
-Technet Script Center-
http://www.microsoft.com/technet/tre...er/default.asp
-WSH 5.6 documentation download-
http://www.microsoft.com/downloads/d...displaylang=en
-MSDN Library-
http://msdn.microsoft.com/library/default.asp

推荐答案



" Roland Hall" <没有人@无处>在消息中写道

news:e1 ************** @ TK2MSFTNGP12.phx.gbl ...

"Roland Hall" <nobody@nowhere> wrote in message
news:e1**************@TK2MSFTNGP12.phx.gbl...
我读过Aaron''文章: http://www.aspfaq.com/show.asp ?id = 2276 re:

我收录了文章中的信息并创建了.asp,根据HTTP_REFERER,一个图像与另一个图像呈现
。我还添加了无右键点击并关闭了带有META标签的图库,我将一个
透明gif图像放在一个跨度内的另一个图像上并将
设置为背景。
I read Aaron''s article: http://www.aspfaq.com/show.asp?id=2276 re:
I took the information in the article and created the .asp that renders one image vs another depending on the HTTP_REFERER. I also added the no-right
click and turned off the image gallery with the META tag and I put a
transparent gif image over the other image that is inside a span and set to the background.



不,该文章的目的是防止热链接,而不是阻止人们保存你的图像。每个人都知道你不能解决这个问题。这是为了避免Joe Malicious Bastard网站管理员使用< img

src =" http://www.mysite.com/myimage/using/my/bandwidth.jpg">


雷在工作


No, the point of that article is to prevent hot-linking, not to prevent
people from saving your images. Everyone knows that you can''t get around
that. This is to avoid Joe Malicious Bastard Webmaster from using <img
src="http://www.mysite.com/myimage/using/my/bandwidth.jpg">

Ray at work




" Roland Hall" <没有人@无处>在消息中写道

news:e1 ************** @ TK2MSFTNGP12.phx.gbl ...

"Roland Hall" <nobody@nowhere> wrote in message
news:e1**************@TK2MSFTNGP12.phx.gbl...

我没有看到任何提及这种特殊方式。但是,我想看看是否有人可以通过这些设置,实际上
获取图像,以及以何种方式仍然可以完成。如果你真的想要它,我认为你可以把它从你的浏览器缓存中拉出来。

http://kiddanger.com/images/badtest.asp




Prnt Scrn


Ray at work



Prnt Scrn

Ray at work


" Ray at<%= sLocation%>"写道:

:Roland Hall写道:

:>我读过Aaron的文章: http://www.aspfaq。 com / show.asp?id = 2276 re:



:>

:>我在文章中获取了信息并创建了.asp,它呈现了

:一个

:>图像与另一个取决于HTTP_REFERER。我还添加了

no-right

:>点击并关闭带有META标签的图片库,我放了一个

:>透明的gif图像覆盖在一个跨度内的另一个图像并设置

:到

:>背景。





:不,那篇文章的目的是防止热链接,而不是防止

:保存图像的人。每个人都知道你无法解决

:那个。这是为了避免Joe Malicious Bastard网站管理员使用< img

:src =" http://www.mysite.com/myimage/using/my/bandwidth.jpg">


是的。我想你错过了第一句话的这一部分,也许我不会说b
$ b。 保护图像不被其他网站链接。

我们实际上在这里达成一致。


我的帖子的其余部分都在参考中。到页面底部的链接

实际上是一篇完全不同的文章。


Roland
"Ray at <%=sLocation%>" wrote:
: "Roland Hall" wrote:
: > I read Aaron''s article: http://www.aspfaq.com/show.asp?id=2276 re:
:
: >
: > I took the information in the article and created the .asp that renders
: one
: > image vs another depending on the HTTP_REFERER. I also added the
no-right
: > click and turned off the image gallery with the META tag and I put a
: > transparent gif image over the other image that is inside a span and set
: to
: > the background.
:
:
: No, the point of that article is to prevent hot-linking, not to prevent
: people from saving your images. Everyone knows that you can''t get around
: that. This is to avoid Joe Malicious Bastard Webmaster from using <img
: src="http://www.mysite.com/myimage/using/my/bandwidth.jpg">

Yes. I think you missed this part of the first sentence and perhaps I
didn''t say it correctly. "protecting images from linked to by other sites."
We are actually in agreement here.

The rest of my post was in ref. to the link at the bottom of the page which
is actually a totally different article.

Roland


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

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