HTTP Referer on HTML Frames

送分小仙女□ 提交于 2019-12-23 00:51:10

问题


Say that I have a link from one.com to two.com/A.html. A.html looks like this

<FRAMESET cols="100%">
  <FRAME src="B.html">
</FRAMESET>

The HTTP Referer on A.html is "one.com", but what will the HTTP referer be on B.html? Is this browser specific?


回答1:


it'll be two.com/A.html, the link from the container. It's not browser specific, unless the browser is told to send a different referer via configuration




回答2:


It should be two.com/a.html (i.e. the page that has the frameset on it).

Remember that these referrers are set by the browser and therefore can be faked.



来源:https://stackoverflow.com/questions/4101336/http-referer-on-html-frames

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!