Home  >  Article  >  Backend Development  >  PHP如何判断当前页面是否被iframe引用?

PHP如何判断当前页面是否被iframe引用?

WBOY
WBOYOriginal
2016-06-06 20:35:212585browse

最好还能知道被引用的页面源地址

回复内容:

最好还能知道被引用的页面源地址

不能,这不是php干的事,你可以试看打印一下SERVE。

php只能直接阻止(header x frame option),判断要用js来做。

客户端的事情,服务端干不了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn