1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Some CPA advertisers preventing Iframes via special code?

Discussion in 'CPA' started by Slasher, Mar 7, 2010.

  1. Slasher

    Slasher Junior Member

    Joined:
    Apr 11, 2009
    Messages:
    184
    Likes Received:
    64
    Some iframes I create with certain CPA offers work, while others don't.

    The ones that DO work correctly double-meta refresh and only show the part of the cpa offers I want to show in the iframe on my landing page.

    The iframes that don't work, DON'T when the iframe is loading the source/cpa offer and then the offer breaks out of the iframe and fills up the whole page as if you just visited the cpa offer link directly. It's as if the iframe is non-existent because it just starts to load the offer, then my entire browser goes to the offer link (it leaves my landing page too...)

    Any ideas?
     
  2. hangovernd

    hangovernd Junior Member

    Joined:
    Feb 9, 2010
    Messages:
    129
    Likes Received:
    5
    they probably have a iframe buster on it, i tried to figure out how to stop that before but wasnt successful but im not the smartest maybe someone else will know
     
  3. Slasher

    Slasher Junior Member

    Joined:
    Apr 11, 2009
    Messages:
    184
    Likes Received:
    64
    Do you know what the "iframe buster" code looks like?.

    EDIT: CPA Advertisers use code to bring their offer to the Parent window, which breaks out of the iframe.

    Here is a link to the problem and the solution:

    (replace the ** in the link)

    h**p://stackoverflow.com/questions/369498/how-to-prevent-iframe-from-redirecting-top-level-window

    the fix code to be put into the HEAD of your landing page:

    Code:
    <script type="text/javascript">
        window.onbeforeunload = function () {                       
             return "This will end your session";
        }
    </script>
     
    Last edited: Mar 7, 2010