我可以在没有http处理程序的情况下在asp.net页面上隐藏图像路径吗? [英] Can I hide an image path on asp.net page without http Handler?
问题描述
我的站点结构中的目录下有许多静态图像,并且我不关心图像的热链接或复制保护.由于种种原因,我需要做的是不显示站点上的图像路径(或显示伪造的图像).
I have many static images under a directory in my site structure, and I'm not concerned with hotlinking or copy-protecting the images. For a myriad of reasons, what I need to do is not show the image path on the site (or show a fake one).
是否有任何方法可以不诉诸http处理程序或工作程序asp.net页面?
Is there any way to do this without resorting to an http handler or a worker asp.net page?
推荐答案
You could use URL Rewritting. Doing it yourself would require you to implement a custom handler but there are third party options already available you could try.
不过,我想将一个简单的http处理程序实现为ASHX端点可能是最简单的选择.
I would guess however that a simple http handler implemented as an ASHX endpoint would probably be the easiest option.
这篇关于我可以在没有http处理程序的情况下在asp.net页面上隐藏图像路径吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!