我怎么能隐藏一个网站的网址在iframe中? [英] How could I hide the url of a site within an iframe?

查看:115
本文介绍了我怎么能隐藏一个网站的网址在iframe中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,其iframe链接到另一个网站,并使用以下iframe代码示例:

I have a site that has an iframe linking to another site with the following example iframe code:

 <html>
 <body>

 <iframe src="http://google.com" width="100%" height="600">

 </iframe>

 </body>
 </html>

因此,对于上面的例子,我怎么能阻止访问者找到url: http://google.com

So, for the above example, how could I prevent visitors from finding the url: http://google.com ?

推荐答案

<你不能。只需浏览源代码并查看即可。即使你试图把它放在一个混淆的JavaScript文件中,它会动态地设置iframe的 src 属性,但是不能从 Net标签位于 FireBug 。所以我建议你不要浪费你的时间。

You can't. Suffice to browse the source code and see it. And even if you try to put this in an obfuscated javascript file which will dynamically set the src property of the iframe nothing can't be hidden from the Net tab in FireBug. So I would recommend you not wasting your time with this.

这篇关于我怎么能隐藏一个网站的网址在iframe中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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