iframeとリファラ

ふと、「iframe経由でリダイレクトされた時って、リファラ送られたっけ?」ってなったのでテストしました。
結論から言うとリファラは送られます。

以下、テストの内容。

まず、iframeタグに埋め込むコンテンツとして、"inside_iframe.html"を用意。
iframe03.png

次に"inside_iframe.html"が埋め込まれた"iframe_test.html"を用意。
iframe02.png

ちなみに"iframe_test.html"をブラウザで表示すると、こんな感じです。
iframe01.png

iframeが埋め込まれた"iframe_test.html"にアクセスする
iframe04.png

リファラが送られてました。
iframe05.png

以上。

Leave a Reply

Your email address will not be published. Required fields are marked *