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

iframe src with redirect

Discussion in 'General Scripting Chat' started by S1lv3rdo7, Apr 18, 2013.

  1. S1lv3rdo7

    S1lv3rdo7 Regular Member

    Joined:
    Jul 17, 2010
    Messages:
    480
    Likes Received:
    315
    Occupation:
    Tech Support
    Location:
    Austin, TX
    I'm not sure if this is a php/html question so I'm posting it here.

    I'm trying to figure out how to redirect from a domain within an iframe. For example,

    I have site supercoolstuff.com that site has a page that redirects to an offer that's iframed on a different page. Let's say a blogspot for the sake of example.

    I want it to be associated with a banner ad as well so if someone were to go to the actual site (supercoolsite.com) and clicks on the banner it would just redirect to the offer. If you go to supercoolsite.com see the banner and click on it it goes to a .php page that redirects to the offer.

    On a different site though like blogger or w/e, the same offer is iframed coming from supercoolsite.com

    < iframe src=supercoolsite/redirect.php >

    That way the offer shows in the iframe but the source looks like it came from the supercoolsite.com

    My question is what is the code I would associate with the banner?

    <ahref=supercoolsite/redirect.php><img src=coolbanner.jpg></a>

    What is the code I would use for the blogger page that would have the iframe with the offer inside it?

    <iframe src=supercoolsite/redirect.php>

    If someone were to fill out the CPA offer on the blogger page would it look like they did it on supercoolsite.com?

    My guess is that since the offer already loaded from supercoolsite.com on the blogger page to the CPA company it would look like they just clicked the link and were direct linked to the offer page.

    What code would I use on the actual redirect page to blank the referrer as well?

    I found this page but I'm not sure if this is what I'm looking for or not.
    http://www.blackhatworld.com/blackh...0996-blank-referer-v2-0-meta-refresh-dmr.html

    Thanks for the help I'm still trying to put this concept together!
     
  2. BlueZero

    BlueZero Power Member

    Joined:
    Jul 6, 2011
    Messages:
    500
    Likes Received:
    257
    Occupation:
    Webdeveloper, Project Manager
    Location:
    Byte in the Net
    Home Page:
    I am really not sure what you want to do.

    But if you specify the target for anchor in your banner like this:

    Code:
    <a href="pagetoredirectto.php" target="myiframe"><img src="whatever.jpg" /></a>
    
    and then give a name to the iframe

    Code:
    <iframe src="firstpage.php" name="myiframe"></iframe>
    
    then on click on the banner the iframe should go to the redirect page.
     
    • Thanks Thanks x 1
  3. S1lv3rdo7

    S1lv3rdo7 Regular Member

    Joined:
    Jul 17, 2010
    Messages:
    480
    Likes Received:
    315
    Occupation:
    Tech Support
    Location:
    Austin, TX
    Thanks that's what I was looking for.