隐藏图片网址 [英] Hiding image URL

查看:86
本文介绍了隐藏图片网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用shadowbox,我将图像显示在屏幕上,如下所示:

 < 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屋!

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