user962768
user962768

Reputation: 23

How to embed 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?

http://jsfiddle.net/EgurZ/

Thanks

Upvotes: 2

Views: 9578

Answers (2)

Jozef
Jozef

Reputation: 117

You can use this link instead of https://google.com/ , it works pretty good:

https://www.google.com/search?igu=1

With specific word you can use this link:

https://www.google.com/search?igu=1&ei=&q=YOUR+WORD

Than iframe should looks as this:

<iframe src="https://www.google.com/search?igu=1"></iframe>

Upvotes: 0

Esailija
Esailija

Reputation: 140228

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 (or SAMEORIGIN is already enough). It doesn't even come down to javascript.

Upvotes: 7

Related Questions