如何使網頁只允許 iframe 訪問 (How to make web page only allowed accessed by iframe)


問題描述

如何使網頁只允許 iframe 訪問 (How to make web page only allowed accessed by iframe)

我有一個通過 iframe 嵌入來自另一台服務器的內容的應用程序。如何防止通過瀏覽器直接訪問 iframe 內容?

這是我嵌入 iframe 的頁面:http ://10.1.1.1/pustaka/random/parameter

這是我的 iframe 內容服務器:http://10.1.1.2/flipbook/folder/related/to/random/parameter


參考解法

方法 1:

How to use .htaccess to allow page access in my iframe but not directly?

Try searching around for answers =] I believe this one will help you out, though.

(by user2236102Davehkiin)

參考文件

  1. How to make web page only allowed accessed by iframe (CC BY‑SA 2.5/3.0/4.0)

#iframe #.htaccess






相關問題

IE6 iframe 渲染問題 (IE6 iframe rendering issue)

Cross Domain JavaScript parent location setting firefox error (Cross Domain JavaScript parent location setting firefox error)

Перанакіраванне ад даччынага акна да бацькоўскага ў iframe з дапамогай javascript (OAuth) (Redirecting from child window to parent to a iframe using javascript (OAuth))

Tương tác với trình phát youtube được nhúng của học viện Khan (Interacting with Khan academy's embedded youtube player)

創建文件並將其加載到 iframe (creating file and load it in iframe)

Firefox 無法訪問同一域上的 iframe 打印 (Firefox can't access iframe print on the same domain)

如何在特定情況下處理 iframe。如何處理 iframe 內容? (How to handle iframe in particular situation. How to handle iframe contents?)

使用 jQuery 按鈕單擊更改 iFrame 的 URL? (Change URL of iFrame with jQuery button click?)

如何使網頁只允許 iframe 訪問 (How to make web page only allowed accessed by iframe)

為什麼 Internet URL 在 iframe 標記中不起作用? (Why is an Internet URL not working in an iframe tag?)

Word 2007 文件啟動新窗口而不是顯示內聯 (Word 2007 files launching new window instead of displaying inline)

有沒有辦法在 <IFrame> 中嵌入網站,如果它拒絕嵌入? (Is there any way to embed a website in <IFrame>, If it is denying to be embedded?)







留言討論