隐藏图片网址 [英] Hiding image URL
问题描述
< img src =images / thumbpic .jpgwidth =100px/>
然而,我正在寻找方法来屏蔽图像,以便不显示URL路径。否则,用户将能够直接访问图像,只需在地址栏中输入网址即可。
我该怎么做?
这是完全不可能的,因为它是所有客户端,并且始终有一种方法可以获取该映像。同样的答案是CSS& JS。
禁用盗链并不会对您有所帮助,因为这种情况与它无关(因为您通过输入URL来输入他们的地址栏
)。
Using shadowbox, I am displaying my images onto the screen like this:
<img src="images/thumbpic.jpg" width="100px" />
However I am looking for way to mask the image so that the URL path is not displayed. Otherwise the user will be able to access the image directly, by typing the URL into their address bar.
How can I do this?
This is not possible at all, since it's all client side and there's always a way to get that image. Same answer is for CSS & JS.
Disabling a hotlinking wouldn't help you, since this case has nothing to do with it (because you said by typing the URL into their address bar
).
这篇关于隐藏图片网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!