4

I have a webpage within which there is another webpage

my code

<iframe id="myiframe" src="http://bing.com" width="800" height="500"></iframe>

I want to open the webpage in the iframe using an proxy ip like ip:port method is that possible

Because it provides different data for different country ip i.e) Indian ip data is different from US ip data or some is blocking Indian ip is that possible

Or is there a way to set proxy in IFrame

Thanks

The6thSense
  • 8,103
  • 8
  • 31
  • 65

1 Answers1

3

If you have a proxy server in the US for domain1.com and your site is located on domain2.com, maybe could you do something as follows:

on domain1.com/page.html:

<iframe id="myiframe" src="http://bing.com" width="800" height="500"></iframe>

and on domain2.com:

<iframe id="myframe" src="http://domain1.com/page.html" width="800" height="500"></iframe>

It should then pull bing.com from the US proxy while still displaying it properly on your website.

You might want to add seamless and scrolling=no to your tag on domain1.com to prevent multiple scrollbars if you choose this method.

Michael d
  • 305
  • 2
  • 16
  • It wouldn't load it as an ip:port, but you can load it from a US server and then load it from your current server this way and it should still pull the data from the US request. – Michael d May 19 '15 at 16:01
  • 3
    This will result in an iframe inside another iframe - but the browser making the request will all still be the same browser from the same country - and not the server located in the US – Lee Elenbaas Oct 27 '16 at 10:41