How to iframe this site?

sevans4262

Registered Member
Joined
Aug 21, 2009
Messages
52
Reaction score
5
Hey guys, have a quick question.
How could you iframe this cpa offer:

Code:
hxxp://familyfoodrewards.com/oliveg/

It is being stubborn and will not work properly.
Any help?

Thanks,
sevans4262
 
its got a frame breaker script on it( check the page source). it will be difficult if not impossible to frame
 
That's what I thought. What would it involve?
 
i found this on another forum. let us know if it works. im going to try it later, but if it doesnt work fully, maybe we can refine it:

Frame Breaker script:
HTML:
function frame_breaker()
{
if (top != self) 
{
top.location.href = location.href;
}
}

And Anti Frame Breaker script:
The whole idea is to stop execution of javascript in the frame/iframe which doesn't suppose to takeover parent frame/window.
First put this function between html head tags:

HTML:
<script>
function StopLoading()
{
if (!document.all)
{
window.stop();
}
else
{
window.document.execCommand('Stop');
}
}
</script>

Then just add onload event handler to iframe you want to supress, like this:
<iframe onload="StopLoading()" src="http://www.someaddress.com">
 
For IE7 users you can give this a shot:
HTML:
<!-- Disable javascript in the iframe -->
<IFRAME SECURITY="restricted" src="http://offer.com"></IFRAME>

For other browsers doing something like this might suffice (not tested, doesn't work in firefox)

Code:
<script>
// falsify the "top" variable
window.top = {"location": { "href": "http://offer.com", "toString": function(){ return this.href}};
</script>

Another option is that if they don't check the referer you can just re-create the form like so (again not tested):
HTML:
<form action="http://familyfoodrewards.com/oliveg/address.php" method="POST">
<input type="text" name="textfield" value="Zip Code here"></input>
<input type="submit" value="Submit"></input>
</form>
</form>

Problem with that is when they click submit they are redirected to the real site.

One more solution is iframing this page instead:
Code:
http://familyfoodrewards.com/oliveg/address.php

Which doesn't contain any frame-breaker code
 
Last edited:
Back
Top