dxszzcylm 发表于 2012-5-17 23:32:52

How I made $12,000 in one month uncontested

Intro: this isn't a rehashed method. this is some real deal stuff

Basically the method was to create an incentive gateway type affiliate program that's only for adult traffic - I would rebroker offers from cpa networks and blank the refferer onto my review type landing page.

Here is the entire setup:

In one directory create the the following .htaccess file<FilesMatch "\.(js)$">
AddHandler application/x-httpd-php .js
</FilesMatch>This will make it possible to run php scripts inside your javascript file. No publisher is going to trust you if tell them include php scripts from your server.

Next is the actual gateway code. Save this file as the gateway.js file - it's going to be the file that they will include. I didn't do too much work on it so the unlock method is a timer.var loaded = true;



var hasloaded = false;
var delay_time = 0;
var unscroll_time = 200;
var a = 0;
hide_ie_embeds = 0;

function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toUTCString());
}
function getCookie(c_name)
{
if (document.cookie.length>0)
{
c_start=document.cookie.indexOf(c_name + "=");
if (c_start!=-1)
    {
    c_start=c_start + c_name.length+1;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    }
}
return "";
}
function getScrollPos(){
    var topScroll;
    if (self.pageYOffset) {
      topScroll = self.pageYOffset;
    }else if (document.documentElement and& document.documentElement.scrollTop){
      topScroll = document.documentElement.scrollTop;
    }else if (document.body) {
      topScroll = document.body.scrollTop;
    }
    return topScroll;
}

function getPageSize(){
var xScroll, yScroll;
    if (window.innerHeight and& window.scrollMaxY) {   
      xScroll = window.innerWidth + window.scrollMaxX;
      yScroll = window.innerHeight + window.scrollMaxY;
    } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
      xScroll = document.body.scrollWidth;
      yScroll = document.body.scrollHeight;
    } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
      xScroll = document.body.offsetWidth;
      yScroll = document.body.offsetHeight;
    }
    var windowWidth, windowHeight;
    if (self.innerHeight) {    // all except Explorer
      if(document.documentElement.clientWidth){
            windowWidth = document.documentElement.clientWidth;
      } else {
            windowWidth = self.innerWidth;
      }
      windowHeight = self.innerHeight;
    } else if (document.documentElement and& document.documentElement.clientHeight) { // Explorer 6 Strict Mode
      windowWidth = document.documentElement.clientWidth;
      windowHeight = document.documentElement.clientHeight;
    } else if (document.body) { // other Explorers
      windowWidth = document.body.clientWidth;
      windowHeight = document.body.clientHeight;
    }   
    // for small pages with total height less then height of the viewport
    if(yScroll < windowHeight){
      pageHeight = windowHeight;
    } else {
      pageHeight = yScroll;
    }
    // for small pages with total width less then width of the viewport
    if(xScroll < windowWidth){   
      pageWidth = xScroll;      
    } else {
      pageWidth = windowWidth;
    }
    arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight)
    return arrayPageSize;
}
function alerts(a) {
alert(a);
}

function addLoadEvent(func) { // credit to Scott Andrew
      var oldonload = window.onload;
      if (typeof window.onload != 'function'){
      window.onload = func;
      }else{
          window.onload = function(){ oldonload(); func(); }
      }
}

// -----------


function initGateway() {

   
if(window.location.hash) { exit; }
else {
if (hasloaded != true){
    hasloaded = true;
    if (delay_time > 0) {
      setTimeout("loadGateway()", delay_time*1000);
    } else {
      loadGateway();
    }
    addLoadEvent(check());
    }
    }
}

function loadGateway(){
// the Body must be ready before we can begin
    var objBody = document.getElementsByTagName("body");
    if (objBody == null) {
      setTimeout("loadGateway();", 200);
      return false;
    }
var overlayDiv = document.getElementById('gw_overlay');
    toggleEmbeds(0);
    var mainDiv = document.getElementById('gw_main');
    mainDiv.style.display = 'block';
    var arrayPageSize = getPageSize();
    overlayDiv.style.height = (arrayPageSize + 'px');
    if (navigator.appName == 'Microsoft Internet Explorer') {
      overlayDiv.style.width = (arrayPageSize + 'px');
    }
    overlayDiv.style.display = 'block';
    document.getElementById('gw_iframe').style.display = '';
    document.getElementById('gw_iframe').src = <?php echo "\"http://www.eikasoft.com/publisher/get.php?id=".$_GET["id"].'";' ?>
    if (unscroll_time > 0){ unscroll(); }
}

function unscroll(){
    scroll(0,0);
    if (unscroll_time > 0) {
      setTimeout("unscroll();", unscroll_time);
    }   
}

function toggleEmbeds(newstate) {
    if (newstate==0){
    v_visibility = 'hidden';
    v_wmode = 'opaque';
    f_display = 'none';
}else{
    v_visibility = 'visible';
    v_wmode = 'window';
    f_display = '';
}
   
    var embeds = document.getElementsByTagName('embed');
    for (var ems = document.embeds, i = 0, em; em = ems; i++) {
    if (navigator.appName == 'Microsoft Internet Explorer') {
            if (hide_ie_embeds){ em.style.visibility = v_visibility; }
            em.setAttribute('wmode', v_wmode);
      }else{
          em.setAttribute('wmode', v_wmode);
          if (newstate==0){
            var nx = em.nextSibling, pn = em.parentNode;
            pn.removeChild(em);
            pn.insertBefore(em, nx);
          }
      }
    }   
}
function removeElement(divNum) {
var d = document.getElementById('myDiv');
var olddiv = document.getElementById(divNum);
d.removeChild(olddiv);
}



var out = '';
out = '<style type="text/css">';
      out += '#gw_overlay { position:absolute;top:0;left:0; width:100%; z-index:1999002; background-color:#000000; filter:alpha(opacity=50); opacity:0.50; -moz-opacity:0.50; }';
out += '#gw_main { margin-top:100px; width:100%; text-align:center; position:absolute;top:0;left:0; z-index:1999003; }';
out += '</style>';
out += '<div id="myDiv"> </div>';
out += '<div id="gw_overlay" style="display:none;"></div>';

out += '<div id="gw_main" style="display:none;">';
out += '<iframe width="650" height="420" id="gw_iframe" src="" scrolling="no" allowtransparency="true" frameborder="0" style="overflow-x:hidden;overflow-y:hidden; background-color:transparent; z-index:1999005;" scrollbars="no"></iframe>';
out += '</div>';

document.write(out);
if (delay_time != -1){ addLoadEvent(initGateway); }


function check()
{
    if(window.location.hash) {
      location.reload(true);   
    }
    else {
      setTimeout('check()', 10);
    }
}

dxszzcylm 发表于 2012-5-17 23:33:34

Next I was going to use pyronauts code at first so here is what I have. You don't have to use it you can simply design your own. So for now it iframes mine onto his beacuse I didn't bother editing it since it worked fine.<script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js" type="text/javascript"></script>
<script type="text/javascript">

var Delay = 70;//Seconds after them clicking the link, the gateway vanishes.
function HttpRequest(url){
    var pageRequest = false //variable to hold ajax object
    /*@cc_on
   @if (@_jscript_version >= 5)
      try {
      pageRequest = new ActiveXObject("Msxml2.XMLHTTP")
      }
      catch (e){
         try {
         pageRequest = new ActiveXObject("Microsoft.XMLHTTP")
         }
         catch (e2){
         pageRequest = false
         }
      }
   @end
@*/

if (!pageRequest and& typeof XMLHttpRequest != 'undefined')
   pageRequest = new XMLHttpRequest()

if (pageRequest){ //if pageRequest is not false
   pageRequest.open('GET', url, false) //get page synchronously
   pageRequest.send(null)
   embedpage(pageRequest)
   }
}

function embedpage(request){
//if viewing page offline or the document was successfully retrieved online (status code=2000)
if (window.location.href.indexOf("http")==-1 || request.status==200)
   document.write(request.responseText)
}



    function getCookie(c_name)
    {
      if (document.cookie.length>0)
      {
            c_start=document.cookie.indexOf(c_name + "=");
            if (c_start!=-1)
            {
                c_start=c_start + c_name.length+1;
                c_end=document.cookie.indexOf(";",c_start);
                if (c_end==-1) c_end=document.cookie.length;
                return unescape(document.cookie.substring(c_start,c_end));
            }
      }
    return "";
    }

    function setupgateway()
    {
      

      var Left = $(window).width() /2;
      Left = Left - $('#gatewaydiv').width()/2;

      var Top = $(window).height() /2;
      Top = Top - $('#gatewaydiv').height()/2;

      $('#gatewaydiv').css('top', Top+'px').css('left', Left+'px').css('display', 'inline');
      $('#gatewayDimmer').width($('html').width());
      $('#gatewayDimmer').height($('html').height());
      $('#gatewayDimmer').css('display','block');
      
    }
    function setCookie(c_name,value,expiredays)
    {
      var exdate=new Date();
      exdate.setDate(exdate.getDate()+expiredays);
      document.cookie=c_name+ "=" +escape(value)+
      ((expiredays==null) ? "" : ";expires="+exdate.toUTCString());
    }

    function removegateway()
    {
      var url = document.referrer;
      url += "#c8t";
      top.location.href = url;
      

    }

    $(document).ready(function()
    {
      $('.offerlink').click(function()
      {
            setTimeout('removegateway()', Delay*500);
      });

      setupgateway();
    });
</script>
<style>


    #gatewaydiv
    {
      
      background-repeat:no-repeat;
      width:500px;
      height:300px;
      padding:20px;
      position:absolute;
      display:none;
      background-color:#FFFFFF;
      border:solid 4px gray;
      text-align:center;
      font-family:arial;
    }

    #gatewaydiv h1
    {
      font-size:35px;
      color:#cc0000;
    }

    #gatewayMessage
    {
      font-size:18px;
    }

    .offerlink
    {
      color:red;
      font-weight:bold;
    }
as
    #OfferList
    {
      margin:0;
      padding:0;
    }

    #OfferList
    {
      list-style:none;
    }

    #gatewayDimmer
    {
      background-color:#000000;
      opacity:0.8;
      opacity:0.8;
      display:none;
      width=100%;
      height=100%;
      position:absolute;
      top:0;
    }
    }
</style>





<div id="gatewaydiv">
    <ul id="OfferList">
    <h1>High quality content area</h1>
    <span id="gatewayMessage">The following page is a high quality content page and requires that you complete a short survey to continue.</span>
    <br /><br />
    <li><a href="http://www.eikasoft.com/publisher/go.php?id=<?php echo $_GET["id"]; ?>&offer=fb" class="offerlink" target="blank">Own a facebook? Complete a short survey on Facebook.</a></li>
    <li><a href="http://www.eikasoft.com/publisher/go.php?id=<?php echo $_GET["id"]; ?>&offer=iphone" class="offerlink" target="blank">Test and keep an iPhone 4</a></li>
    <li><a href="http://www.eikasoft.com/publisher/go.php?id=<?php echo $_GET["id"]; ?>&offer=ringtone" class="offerlink" target="blank">Test out our hottest ringtones</a></li>
    <li><a href="http://www.eikasoft.com/publisher/go.php?id=<?php echo $_GET["id"]; ?>&offer=airlines" class="offerlink" target="blank">Try a free flight with our airlines</a></li>
    </ul>
    <br />
    This is a measure taken to protect us from bots and leechers. Thank you for understanding.<br />
   
</div>

dxszzcylm 发表于 2012-5-17 23:34:18

Using both of our codes is like double security I guess. Name that file "get.php". This file will be what the original gateway.js will call.

The following file should be named go.php<?php


$id = $_GET["id"];
$offer = $_GET["offer"];


if($offer == "fb")
{
header("Location: http://www.offshorebp.com/short-facebook-quiz/?mn=8403&type=facebookads$id");
}
else if($offer == "ringtone")
{
header("Location: http://www.offshorebp.com/ringtones/?mn=8403&type=adbrite$id");
}
else if($offer == "iphone")
{
header("Location: http://www.offshorebp.com/free-iphone-4/?mn=8403&type=adwords$id");
}
else if($offer == "airlines")
{
header("Location: http://www.offshorebp.com/southwest-airlines/?mn=8403&type=adbrite$id");
}
?>

dxszzcylm 发表于 2012-5-17 23:34:45

This file will allow you to redirect to to cpa redirector or such when someone clicks a link. You'll also need an edited version of cpa redirector that I'll post in a little bit.

The last file will be update.php. This will be check your postback. You will need to edit it to how you setup mysql to add money to a user. I'll be helping people set that up in the post below. Here is mine:<?php
if($_SERVER['REMOTE_ADDR'] == "174.122.2.34")
{
include('"');

$id = ereg_replace( '[^0-9]+', '', $_GET["subid1"]);
$commission= $_GET["commission"];

echo $id . "<br>";
echo $commission;



$e = new eika();
$commission = $commission / 2;
echo "<br>". $commission;
$e->AddPoints($id, 5, $commission);
}
else echo "Error";

?>

dxszzcylm 发表于 2012-5-17 23:36:28

Design your gateway, affiliate program, home page, and publisher area to look well. Don't be scared to pay some money for a design. The places where I promoted my gateway were GFY and JBM - both adult affiliate forums. If I forgot anything I'll edit it in add it later. You never know you could end up getting requests from real advertisers and ending up as CEO of a large adult affiliate network. Like all methods get it while it's good!


Let me know how it works

http://www.contentgeneration.org/cpa-redirector-2/<input type="hidden"name="mn" value="' . get_option('wp_magicnumber') . '" />
<input type="hidden"name="type" value="'. $_GET["type"] .'" />
<input type="hidden"name="type" value="'. $_GET["type2"] .'" />
</form>
<script language="JavaScript">
    document.getElementById(\'form1\').submit();</script></body></html>';
      return true;
      exit();
}

    if ($_POST['mn']==get_option('wp_magicnumber')){

            echo '<html><head><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
</head><body><form action="'. get_permalink($post->ID) . '" method="post" id="form1">

<input type="hidden"name="mn" value="' . get_option('wp_magicnumber') . get_option('wp_magicnumber') . '" />
<input type="hidden"name="type" value="'. $_POST["type"] .'" />
<input type="hidden"name="type" value="'. $_POST["type2"] .'" />
</form>
<script language="JavaScript">
    document.getElementById(\'form1\').submit();</script></body></html>';
      return true;
      exit();      
}

    if ($_POST['mn']==(get_option('wp_magicnumber').get_option('wp_magicnumber'))){
      $x = get_post_meta($post->ID, "theurl", true) . $_POST["type"] . $_POST["type2"] ;
      header( 'Location: ' . $x);
      exit();
    }

    return false;
}
页: [1]
查看完整版本: How I made $12,000 in one month uncontested