admin 管理员组文章数量: 1086019
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
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?
http://jsfiddle/EgurZ/
Thanks
Share Improve this question edited Nov 15, 2011 at 16:27 evotopid 5,4393 gold badges29 silver badges41 bronze badges asked Nov 15, 2011 at 16:15 user962768user962768 231 silver badge3 bronze badges 4- 6 If they don't wan't that you embed their's webpage into your's I don't remend to do it, because otherwise you could get problems with them ;-) – evotopid Commented Nov 15, 2011 at 16:20
- 4 It's an intentional click-jacking defense. – ephemient Commented Nov 15, 2011 at 16:27
- 1 If you wan't to add a Google search in your website, use a Google Custom Search for this. – evotopid Commented Nov 15, 2011 at 16:28
- Why do you want that?? they give you API for a lot of things, search included. Use that. – Damien Pirsy Commented Nov 15, 2011 at 16:29
2 Answers
Reset to default 7You 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
(or SAMEORIGIN
is already enough). It doesn't even e down to javascript.
You can use this link instead of https://google./ , it works pretty good:
https://www.google./search?igu=1
With specific word you can use this link:
https://www.google./search?igu=1&ei=&q=YOUR+WORD
Than iframe should looks as this:
<iframe src="https://www.google./search?igu=1"></iframe>
本文标签: phpHow to embed google iframeStack Overflow
版权声明:本文标题:php - How to embed google iframe? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1744005412a2517198.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论