How to iframe this site?

Discussion in 'CPA' started by sevans4262, Jan 6, 2010.

Tags:
  1. sevans4262

    sevans4262 Registered Member

    Joined:
    Aug 21, 2009
    Messages:
    52
    Likes Received:
    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
     
  2. nikhil88

    nikhil88 Regular Member

    Joined:
    Jun 12, 2008
    Messages:
    208
    Likes Received:
    97
    Occupation:
    E&TC Engineering Student
    Location:
    Pune,India
    its got a frame breaker script on it( check the page source). it will be difficult if not impossible to frame
     
  3. sevans4262

    sevans4262 Registered Member

    Joined:
    Aug 21, 2009
    Messages:
    52
    Likes Received:
    5
    That's what I thought. What would it involve?
     
  4. nerdmoney

    nerdmoney Junior Member

    Joined:
    Feb 24, 2008
    Messages:
    135
    Likes Received:
    37
    Occupation:
    web nerd
    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">
     
  5. petros

    petros Newbie

    Joined:
    Jan 23, 2009
    Messages:
    13
    Likes Received:
    7
    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: Jan 9, 2010