最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Google search results in an iframe - Stack Overflow

programmeradmin5浏览0评论

To the extend of my research, Google stopped allowing its page being displayed in an iframe. There used to be a URL () which showed Google results and allowed display in an iframe. That site went down recently.

I'm wondering is there any way at all now to have Google search results in an iframe? What's the best solution/alternative to have search results in an iframe?

Thanks!

To the extend of my research, Google stopped allowing its page being displayed in an iframe. There used to be a URL (http://gog.is) which showed Google results and allowed display in an iframe. That site went down recently.

I'm wondering is there any way at all now to have Google search results in an iframe? What's the best solution/alternative to have search results in an iframe?

Thanks!

Share Improve this question asked Feb 25, 2016 at 17:58 Ayman Abdel-RahmanAyman Abdel-Rahman 5501 gold badge6 silver badges13 bronze badges 5
  • Well google does not want t be framed so only way around it is a proxy that removes the headers – epascarello Commented Feb 25, 2016 at 18:10
  • @epascarello Ok we can do that but the issue is also with the result links. They point to google first then redirect to the resulting website. If that redirection happens partially through the browser (iframe) it would fail. Do you have any idea whether the results would be displayed normally when clicked? – Ayman Abdel-Rahman Commented Feb 26, 2016 at 7:40
  • Reason you are not using their custom search or their apis? – epascarello Commented Feb 26, 2016 at 13:13
  • @epascarello tell me more about that – Ayman Abdel-Rahman Commented Feb 26, 2016 at 17:03
  • @epascarello Note that I want to search the entire web for something, and not custom search within my app/website – Ayman Abdel-Rahman Commented Feb 26, 2016 at 17:08
Add a ment  | 

1 Answer 1

Reset to default 8

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>
发布评论

评论列表(0)

  1. 暂无评论