如何嵌入谷歌iframe?
Google 似乎正在屏蔽使用 iframe 的网站。当然,我使用 google 及其商标并将其嵌入到 iframe 中。但由于某种原因它永远不起作用。
有人知道如何绕过它吗?
谢谢
Google seems to be blocking websites which use iframes. Of course I'm using google with its trademark and embedded it in an iframe. But for some reason it never works.
Anyone knows how to bypass it?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您无法以任何方式在现代浏览器中绕过它,它们只是拒绝在 iframe 中显示发送 X-Frame-Options 标头带有
DENY
(或SAMEORIGIN
就已经足够了)。它甚至不归结为 javascript。You cannot bypass it in modern browsers in any way, they simply refuse to display websites in iframe that send a X-Frame-Options header with
DENY
(orSAMEORIGIN
is already enough). It doesn't even come down to javascript.您可以使用此链接代替 https://google.com/ ,效果非常好:
包含特定字词您可以使用此链接:
iframe 应该如下所示:
You can use this link instead of https://google.com/ , it works pretty good:
With specific word you can use this link:
Than iframe should looks as this: