Reputation: 525
I have news sports websites in 2 iframes.
<div="news">
<iframe src="news site one"></iframe>
<iframe src="news site two"></iframe>
</div>
The first loads fine but the second doesnt anymore. It just returns a white page with a link to the website directly. Is there a way to spoof this so it thinks I am accessing the site directly. I need to have both websites open side by side.
Upvotes: 0
Views: 145
Reputation: 18863
The only way I would know to spoof it with PHP is to setup a page called sports2.php
on your site. Then use CURL
to spoof the headers with how you want them and just echo the contents. Then just set your iframe to load sports2.php
Just a tidbit, just because they say there is "not" protection in place, does not mean that there is not. A lot of times you are not dealing with the programmers / main people at the site and it could be something fairly new implemented, which would be even more likely the contact people do not know about.
Upvotes: 1