How to iframe an affiliate offer

This article is OLD

This article was published 7 years, 3 months ago. Please keep in mind that the information may be outdated. Post a comment below if you have any questions.

You can find all the latest affiliate marketing tips on affLIFT!

Although I always suggest that PeerFly publishers learn how to create their own landing pages, it’s not always necessary. Direct linking is also common practice among affiliate marketers. Instead of creating a landing page and directing traffic to the offer through that, you simply use your affiliate link (Short Link or Long Link on PeerFly) and send the visitor directly to the offer. In some cases though, the company you are using to promote the offers will not allow you to use a direct affiliate link. For example, Facebook does not allow PeerFly publishers to directly link our offers using the affiliate link. So, what can you do if this is the case? IFrame it!

IFraming an affiliate offer

With PeerFly, you are more than welcome to iframe any offer we have as long as it is not specifically restricted in the Marketing Restrictions. Also, you need to iframe 100% of the offer landing page. I will explain and demonstrate this below, but it’s important to remember. But, what exactly is an iframe?

It’s an HTML element that allows to to frame a document within a document or a webpage within a webpage. In the example below, I take my affiliate link and place it within ipad2.html to make it look like ipad2.html is actually the affiliate offer page.

iframe example

HTML to iframe an affiliate offer

The HTML for iframing is actually very simple.  You can find the source for my sample page at:

You can view what it will look like here:

It is important thing to remember is to remove the page margin, which I did in the example within the <style> tags. You can remove all other margin and borders with frameborder=”0″, marginheight=”0″, and marginwidth=”0″ otherwise the page framed will look funny. Make sure you keep the width and height of the iframe at 100% as well. Of course, change the links to the pages being iframed (my short links) to your own unless you want me to get credit for your traffic.

That pretty much explains how to iframe a CPA offer. Please let me know if you have any questions.

Post a comment

149 thoughts on How to iframe an affiliate offer

  1. I sent you an email about this not 5 minutes ago. I didn’t see this post, you seem to be blacklisted on your demo page 🙂

    I just need to figure out where to put the header image, guessing you can just edit this in notepad and then name it whatever.html then upload it to server?


  2. I am still perplexed about this whole iFrame thing.

    Let’s say I want to promote offer 3324 (Johnson’s baby kit)…..

    What do I do ?? Please help.

  3. Last I heard, Facebook still allowed the like pages. Can you put a standard Peerfly link in one of those? I have some really good ideas using Facebook!

  4. If that be the case, can I still redirect people to a page FROM FB, but yet not ever show a Peerfly link ON FB? I can do it that way, if allowed, and still almost seamlessly integrate the offer with another page. A little HTML and scripting, and that shouldn’t be a problem.

  5. I do not understand what you mean by saying ” You cannot iFrame our affiliate offers”. Can I iFrame my landing page on facebook or am I just allowed to put the link to my landing page on my facebook page.

    1. You are not allowed to iFrame our offers directly on Facebook. The only Facebook promotion we allow are paid Facebook Ads. I am talking about iFraming the offer on your own host (HostGator suggested) and then using that link to promote the offer on Facebook Ads.

  6. Hi, Luke thank you for this information,I’ve promoted by PPV networks but my shortlink was rejected,because it contained frame breaking script, how do I fix this?

  7. Hi Luke, thanks for the great info, just one question:
    For iframe, Can i use mi tracking link to replace the short or long link that peerfly provides?

  8. Hi luke thanks for the info i almost got it but need some more instructions
    is there is any step by step to show me how i can iframe a website

  9. Luke I tried Facebook’s paid ad. with PeerFly’s direct offer link and it was rejected, other than iFraming do you think redirecting a domain name to the affiliate link would work?

  10. Tried your Iframe script on ADF.LY and was rejected. They saying that script break frame which against there rules. Still dont understand why

    1. 1. You do not need to iframe if you are going to advertise using
      2. If the frame is being broken it’s by the advertiser’s landing page, not the iframe. You cannot iframe said offer and you cannot promote it on because of that.

      We do not suggest promoting our offers at PeerFly on because the traffic simply does not convert well and overall, the response from our advertisers after receiving traffic from has not been good.

  11. thanks for this important information, there I want to ask:
    As we know, almost all the offers don’t allow us to use direct visitors from twitter (I do not know why). Can I use this iframe for twitter traffic?
    Like this:
    Twitter traffic => My own landing page with iFrame

    1. We don’t allow directly linking on Twitter because Twitter considers it spam. This would probably be fine as long as you are not massively tweeting it across multiple accounts.

  12. Luke my question is similar to Mambo’s. Twitter traffic as you stated is not allowed because Twitter considers it spam. But is it allowed to drive twitter traffic to ones own landing page(with or without iFraming) and then to the CPA offer. ie

    Twitter traffic=> Own Landing Page(with or without iFraming)=> CPA Offer.

    Similarly what is the position with regard to Pinterest ie

    Pinterest traffic=> Own Landing Page(with or without iFraming)=> CPA Offer.

  13. I don’t have a lot of experiance with html. Is there a step by step video on you tube or can i ask somebody to do this for me?

  14. Just got rejected by facebook, and did a google search, landed me back here. I’m pretty sure this is the best resource. Thanks again Luke.

  15. hello, luke
    awesome, i got my ad approved!

    Campaign Reach?
    Social Reach?


    these was the statistics. before suggested bid was $1 to $1.72 but now its $0.51 – 1.11 USD. should i edit my bid to $0.51? or how i can get lower cpc?

    1. Hi Khairul, I guess you are from Bangladesh. If you are, Could you please contcat me @01754076861 . I am asking Because I wan to know how you get approved!

  16. Hey Luke for soem reason after i framing my conversion pixel from propser202 is not firing. ex I have domain as iframe domain my postback pixel is

  17. Hi Luke, I am a newbie, Could you please let me know how I can add this Tag to my existing word press blog? I have tried, But it comes as a post and a tiny scrolling page. This will really help me a lot. Please email me the process if you have little bit of time.


  18. Thanks Luke, but I am using custom domain (purchased on Blogger Platform), So basically my site works on blogger format, so could you please help me how I could iframe Peerfly offers om my site.

  19. can someone out there do a video who can show how to successfully place this iframe script on thier own site with a peerfly offer? I hope to do this correct the first time. thanks.

  20. OOT: Your blog rocks!

    About the iFrame I was wondering to use it because whatever the user do on the merchant site, anyway he’s on our domain. So what about legal stuff?
    Moreover this can be resolved if there’s a way, when the user, as an example, subscribe to the dating offer, you can make him go to the merchant site and leave your domain. Is possible?


    1. Thanks! When you have an iFrame everything performed within that iFrame loads in the iFrame, so it’s not possible to leave that iFrame from the user perspective unless the merchant site breaks the frame or opens a link in a new window.

      1. Hey Luke, thanks for reply.
        You’re right, I’ve tried a lot of different code ( javascript, jQuery ecc…) to try to alter the target meta in the merchant form site. In this way if a user submit the form, the new window is going to open in a new window. But there’s no way, and that’s correct, to alter a page loaded in an iFrame, even if you use a user side script.
        This is why I was wondering what’s happen to the legal stuff on the merchant site. Ex: ” I accept bla bla bla on … bla bla bla “… but the user is still on our domain 🙁

        OOT: on peerfly do you have also a good number of international offers? this because probably with my bad english grammar the US, UK, CA etc are not profit traffics for me.

  21. Hi Luke,

    I don’t quite understand the purpose of iframing. What is the need for iframing an offer when it goes to the same CPA offer page if it wasn’t iframed?


  22. Hi Luke, I am actually a Peerfly publisher, but when I first started I had a hard time finding offers that I could promote on a social network, so I gave up for a while. I’m gonna try again and found this article as well as a response you posted on Warrior Forum about not posting direct links on Pinterest back in April 2012. Will this iFrame option work on a Pinterest account (or should this only be used for Facebook/Twitter)? Thanks much 🙂

  23. Hi, Luke

    I’ve emailed you about a recent tragedy that happened to me, regarding account suspension.

    Please have a look at my submitted email to you.

    I’m really waiting to get a reply, as i was recently approved @peerfly

    Warmest Regards
    Muzammil Rafiq

  24. Hi Luke, I often use iframes and I’d have 2 questions to ask you:
    – where can I find a good disclaimer text in order to protect myself when linking/iframing aff links?
    – do you think that advertiser’s website TOS and Disclaimer could indirectly “protect” me?
    Thanks 🙂

    1. I don’t see the need for a disclaimer text on an iFrame and have never used one myself. I don’t hide my information on my whois so if someone had an issue with a page I was iframing they could find my information and ask me to remove it.

  25. I used your tool “Free iFrame Hosting ” with the keyword “Folgers” and my affiliate link and the link that generates me “” but it didn’t aimed at the capture page, sends me to a survey page why?

    P.S. I’m using a U.S. proxy

  26. Hello,
    A lot of peerfly offers ‘break’ out of the iframe. Even when using your service, the CPA offer still ‘breaks’ out of it making the iframe useless.
    Any work around for this?

  27. Just to clarify my previous comment. The reason why I thought of iframing is to avoid duplicate display/destination URL issue with Bing and Google. Will it work?


  28. Hi Luke:

    I sent you a message off your page above. I am having trouble what you are referring to about creating an iframe. I have the assumption that Peerfly and FB don’t mix? So, are you telling me to create a iframe code from a tab on either a fanpage or home page of FB to an offer… let’s say I have a dating offer… I create a squeeze page to entice dating enthusiast to that page which in tails leads them to a the “Thank you” page of which they can join the offer? Is that possible?


  29. Hi Luke,

    Thanks for the great tool. I am currently a Peerfly Pub. I am trying to use Iframing for one of the offers. Its a ledgen. The thing is, the leadgen on the original page is a “HTTPS”. In your experience, if my domain is on HTTP, will the leads go through safely from an HTTPS page?

  30. Hi Luke! How do i create my own service like yours? I mean with the domain name of because sometimes that i use your service i earn double because of that. Please help to build my own thanks a lot!

  31. Hi,

    Please advise after following the instruction above. Yes the iframe for an offer is done but one thing is facebook is not approve my request the importance thing is facebook has disable my ads manager which i cannot do anything at all.

    This the message: we have paused your facebook payment account because we noticed some unusual activity.

    Here is my iframe link:

    Hope to hear from you soon


  32. please I would like to communicate with you via email, kindly reply me via my mail so that I can send my questions across to you, Thanks

  33. Luke,

    I am a new member to your blog and to CPA offers in general.

    I wanto to advertise on Facebook but that Iframe think is something I do not understand..

    I mean do I have to copy the Iframe and paste it where? On facebook? On the sield that we link our advertisement?

    Unfortunately I find it very difficult to understand this…

    Is there any way you can do a video about iframe and Facebook ads?

    That would be great for * newbies * like me 🙂

    1. You copy the iFrame code and paste it into an HTML file on your web hosting. If you don’t have hosting I recommend getting setup with HostGator and learning HTML 🙂

  34. Hi Luke,

    I am a newbie, I have created the separate HTML file but I am confused about where to upload this file. I have WP Blog, I tried uploading it into my home page it doesn’t came with 100% coverage. Please help with it. Where should I upload my files to?

  35. Thanks Luke, you’ve been amazing. Am having a slight problem with the iframe section.
    When I post the new iframed link to facebook it doesn’t show any image in the rectangular display box. Only , , and the new iframed url is displayed in a rectangular box. I want an image to be added to the rectangular display on facebook .
    I tried adding an image html in the head section but no image was still displayed in the rectangular box after posting it on facebook. See what I have been trying.


    * {
    margin: 0;
    padding: 0;
    body {
    margin: 0;
    padding: 0;


  36. Hey luke the html file u given in article and two links in body . Those links are affiliate url of offer or short links u generated. plz clear

  37. I’ve wondered that even though it’s 2015, with Google making sure all websites are mobile-friendly, how would you iframe an offer to be mobile-friendly by their standards?

    1. An iFrame doesn’t matter when it comes to mobile. You’re not going to be doing any SEO (you won’t rank more than likely).

  38. Very true about ranking, but I’d still like to make it mobile-friendly as if you use the iframe as you have offered us, it won’t fit onto the screen unless the user scrolls to make it fit. What I mean is that how do I get the iframe to fit the screen automatically on any device?

  39. hii luke,
    can i use link shortner for facebook ppc ads?? when i directly post the link its not
    accepting but when i use shot link it accepts.

  40. that cool but I have another problem I can not see the page cause I am from Jordan it take to another pages not the affiliate page

  41. Hi Luuk, is iframing a cpa offer on your own domain against Facebook TOS?

    Facebook does not allow me to post direct cpa network) links to the offer (with url shortener). Is cloaking cpa network links against Facebook TOS?

    I do not want to get my account banned.

  42. Hi Luke I am a new affiliate ,I use bing PPC to generate traffic ,also I and only direct link offers.So form your experience could you tell me which is the best method to direct link offers to get approved in bing ads??
    1. Meta refresh url
    2.Iframe affiliate link lie above you mentioned.
    Please let me know .

  43. Hi Luke, i decided to join and i try to promote 1 of cpa product i’m new here. the affiliate link that given is totally not same with the landing page of the product. i try to use proxy to open the affiliate link but it’s still showing like random ads from other affiliate. may i know what’s that means?

      1. You should not generate a conversion, but you can click your link to make sure the landing page is loading (as long as you are in the offer’s Allowed Country).

  44. Hey Luke,

    I was wondering.. Lets say for example, I have my landing page/funnel and I want to Iframe a simple zip submit on the first page of my funnel. The idea here is to get paid from the zip submit after the prospects enter their zip (through iframing the offer) and then automatically redirecting them to the second page on my funnel without them being redirected to the zip submit offer’s page so they can continue their way into my funnel.

    Is this possible?



    1. That is not possible. The client would not want that traffic because the zip code isn’t worth anything to them. The rest of their funnel is where they make their money.

  45. Hi Luke,

    You talked about building your own landing page when advertising on FB using paid Ads. Is this the correct funnel for FB? Ad, landing page, CPA offer?? If so, could I not use n IFRAME on my landing page to cut out the 3rd step of them being taken to my offer FROM my landing page? Thanks for your reply

    1. Yeah, but iframes don’t always work right so better to just send them from your landing page to your affiliate link directly.

  46. I’m happy I found this but, I have some questions.
    Can all offers be iframed? like dating, zip submits, etc.
    The second question is, if I iframe an offer on my domain and then promote with Facebook ppc or twitter? would the advertisers know that the traffic is from my domain or from Facebook? I’m still new to this CPA thingy.

  47. Hey Luke,
    Can we use this iframe method on one of my blog or website where I am already promoting another offer of Maxbounty or Peerfly without making the frame funny.

  48. Iframing an CPA or affiliate offer is not allowed in facebook now. Facebook can ban you account. I have already tried 10ns of methods but didn’t get success….

  49. Is it still ok to Iframe any Peerfly offer as long as there are no special restrictions prohibiting iframing?

    I always thought this shit would get you dropped from most networks

  50. Hello Luke I apply as a publisher but my application was rejected. This was the mail I received from Corey (
    Hi Matthew,

    Thank you for applying with PeerFly. Unfortunately, in the interest of our advertisers, we will not be able to work with you without a traffic reference from another CPA network. Are you a publisher with any other CPA affiliate network that is similar to PeerFly that will vouch for the quality of your traffic? All you have to do is reply to this email with their website link and your affiliate managers email and we will contact them. Please note that in order for the network to count as a reference you must have earned at least $500.00 with them and that we cannot accept account screenshots as a reference.

    If you’re not with any other networks we suggest joining the networks below. You can then send us a reference with them. Please note the below links are referral links and we may receive a commission if you earn revenue with them.)
    But I have reply to that email explaining ways in which I will use in promoting offers. I want to use social media paid advert to promote the offer but am yet to receive a response from your team, hope you can help me with the issue.

    1. There’s always a risk of ban if the offer you are running is not compliant, but you should try the iFrame 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

Let's Make Some Money!

Want to learn how to make more money online? Join my mailing list today!

I hate spam as much as you. I will only send you awesome emails.

Click here to close this pop up if you already are subscribed.

I only send out a few emails a month, but they'll be packed with:

  • Traffic source reviews
  • Landing page templates
  • Tools you NEED in your arsenal
  • Hot affiliate offers