IFrame

Status
Not open for further replies.

Dave33445

New member
May 4, 2007
139
1
0
Might be a stupid question but its driving me crazy!

If an offer has a landing page that redirects, is it possible to keep it in an IFrame or will it always break out?
 


I haven't found a way to keep it from breaking out yet but wish I could.
You can do it as an object and that works but then IE gives an Active X warning message which isn't good either.


If you find a solution please post it.
 
I haven't done it myself but you could do as follows:

<topframe>Drop the cookie. Frame not seen by user</topframe>
<bottomframe>
Grab the source of the landing page yourself using Curl or whatever and strip the javascript that causes the breakout. You may have to add in <base href='http://landingpage.com'> or fiddle with the source so the images/css still work.
</bottomframe>

To drop the cookie you'll probably need to use the redirected image method to prevent breakout.

No idea is this is against merchant terms - as I said I don't use it myself - but it should work.

Hope that helps,

Leon
 
Thanks for that - I am learning a bit of CURL at the moment, so playing with your script and my curl I will have a go at an unbreakable iframe as well!

Sorry to tap onto someone else thread but I was looking into the same thing :)
 
Random trick I learned and thought this would be a good place to put it.
If you need to redirect an iframe, but are having security errors and whatnot, use 2 iframes.
So localhost/a.php is an iframe of localhost/b.php. localhost/b.php is an iframe of whatever the hell randomness you want.
Since localhost/a.php is on the same domain as localhost/b.php, you can redirect it wherever you want, and the other iframe changes with it obviously.
If you really want to have fun, you can set localhost/b.php?url=SITEHERE to iframe whatever's in the argument.
 
I was just going to mention something similar to what Shady posted. I've had success with an iframe inside an iframe on a page. So basically you let the offer bust the 1st iframe but the page still resides in the 2nd iframe which the script doesn't attempt to bust.

Worked for me on a few offers but It might have been code specific so no guarantees.
 
Wouldn't you just make the link "target" the iframe name? Kinda like how if you had a popup called pop_window then the anchor would be <a href="url" target="iframe_name"... (course you might have to use php or some other script to modify the target source's anchor tags)
 
Status
Not open for further replies.