开发者

bypass spoof redirection

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 acce开发者_C百科ssing the site directly. I need to have both websites open side by side.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜