我有了一個iframe鏈接到另一個網站與下面的示例代碼的iframe網站:我如何隱藏iframe中網站的網址?
<html>
<body>
<iframe src="http://google.com" width="100%" height="600">
</iframe>
</body>
</html>
所以,上面的例子中,我怎麼能防止訪客找到的網址:http://google.com?
我有了一個iframe鏈接到另一個網站與下面的示例代碼的iframe網站:我如何隱藏iframe中網站的網址?
<html>
<body>
<iframe src="http://google.com" width="100%" height="600">
</iframe>
</body>
</html>
所以,上面的例子中,我怎麼能防止訪客找到的網址:http://google.com?
您可以編寫例如PHP或Apache重寫從後端服務器獲取頁面。這有很少的CPU開銷。
找到什麼對象?你不能從響應文本中刪除它,所以客戶端將始終可以查看html代碼 – VMAtm 2011-05-20 14:02:19
你不能因爲谷歌無處不在。 – Bastardo 2011-05-20 14:07:11