如何在iframe中隐藏网站的网址?

use*_*891 0 html url iframe hide

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

 <html>
 <body>

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

 </iframe>

 </body>
 </html>
Run Code Online (Sandbox Code Playgroud)

因此,对于上面的示例,我如何阻止访问者找到网址:http://google.com

Dar*_*rov 5

你不能.只需浏览源代码并查看即可.即使你试图将它放在一个混淆的javascript文件中,它将动态设置srciframe 的属性,也无法从FireBug中Net选项卡中隐藏任何内容.所以我建议你不要浪费你的时间.