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

easiest fastest way to get people viewing and clicking on affiliate links

Discussion in 'Black Hat SEO' started by sfidirectory, Aug 25, 2010.

  1. sfidirectory

    sfidirectory Senior Member

    Joined:
    Mar 29, 2010
    Messages:
    899
    Likes Received:
    483
    Occupation:
    Web developer/BTC enthusiast
    Location:
    php artisan make:migration
    Home Page:
    Hi all,

    Am wondering what are some sure fire ways to get viewers and clicks for your affiliate links. I'm sure people have seen a few of my posts about using tinyurl to redirect my affiliate links, now I just want to know from everyone what software(pref free) and other free techniques that can definitely get clicks and views for affiliate links. I'm already trying PRStorm with Webaliser sites, auto directory submissions and traffic exchanges. Everyone has different methods that achieve same, if not better results.
     
  2. Firestarter29

    Firestarter29 Newbie

    Joined:
    Feb 9, 2010
    Messages:
    5
    Likes Received:
    3
    You need a database driven site for that,you put the affiliate link in your database, and then you pass a parameter to that page, to show for example the company name.The script then with a 301 redirect when it reads the parameter,redirects the user to the company you are promoting using your affiliate link, which is hidden :)

    You need to know some basic php though
    The code that does the trick is this
    PHP:
    <?php
    if(isset($row_visit_site['site_name'])){
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: ".$row_visit_site['affiliate_url'])
    ?>
     
    • Thanks Thanks x 2
    Last edited: Aug 25, 2010
  3. sfidirectory

    sfidirectory Senior Member

    Joined:
    Mar 29, 2010
    Messages:
    899
    Likes Received:
    483
    Occupation:
    Web developer/BTC enthusiast
    Location:
    php artisan make:migration
    Home Page:
    I already know some basic php (thanks to learning Java and Python etc), but thanks for the tip :D
     
  4. Offshoreally

    Offshoreally Newbie

    Joined:
    Aug 25, 2010
    Messages:
    6
    Likes Received:
    0
    Home Page:
    Nice piece of information and will be of great help to me. Thanks for sharing the info.:)
     
  5. jclz123

    jclz123 Regular Member

    Joined:
    Sep 18, 2009
    Messages:
    236
    Likes Received:
    38
    Occupation:
    Inventor of the Meganet
    Location:
    UK
    Home Page:
    I think you're asking about how to get good traffic. IMO the best way for targetted traffic is through organic traffic with a good keyword. Obviously this requires some SEO knowledge however
     
  6. Firestarter29

    Firestarter29 Newbie

    Joined:
    Feb 9, 2010
    Messages:
    5
    Likes Received:
    3
    And here is the complete script in case it gave you a headache :)

    PHP:
    <?php require_once('Connections/db_conn.php'); // your database connection file,make sure the path is correct ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function 
    GetSQLValueString($theValue$theType$theDefinedValue ""$theNotDefinedValue ""
    {
      if (
    PHP_VERSION 6) {
        
    $theValue get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      }

      
    $theValue function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

      switch (
    $theType) {
        case 
    "text":
          
    $theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
          break;    
        case 
    "long":
        case 
    "int":
          
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case 
    "double":
          
    $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case 
    "date":
          
    $theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
          break;
        case 
    "defined":
          
    $theValue = ($theValue != "") ? $theDefinedValue $theNotDefinedValue;
          break;
      }
      return 
    $theValue;
    }
    }

    $colname_visit_site "-1"// i named the recordset name "visit_site",ofcourse we need a database table with the columns id,site_name,affiliate_url
    if (isset($_GET['site_name'])) {  // here the script retrieves the parameter
      
    $colname_visit_site = (get_magic_quotes_gpc()) ? $_GET['site_name'] : addslashes($_GET['site_name']);
    }
    mysql_select_db($database_db_conn$db_conn); // here we perform the query to the database,i named the table 'websites'
    $query_visit_site sprintf("SELECT id, site_name, affiliate_url FROM websites WHERE site_name = %s"GetSQLValueString($colname_visit_site"text"));
    $visit_site mysql_query($query_visit_site$db_conn) or die(mysql_error());
    $row_visit_site mysql_fetch_assoc($visit_site);
    $totalRows_visit_site mysql_num_rows($visit_site);

    if(isset(
    $row_visit_site['site_name'])){  
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: ".$row_visit_site['affiliate_url']);
    }
    ?>
    <?php
    mysql_free_result
    ($visit_site);
    ?>
    Ofcourse for not to mislead your visitors , you can make a folder named "visit" and then make a file in that folder named website.php (this is the file that you will insert the above script into), so when the user will hover the link to see for example
    yoursitenamedotcom/visit/website.php?site_name=thewebsitenameyouarerefferingthem , so they will know that they will visit a site outside of your site, while in the same time using your affiliate link :)
    Is sneaky,seo friendly, and also eye friendly to the users :)
     
    Last edited: Aug 25, 2010
  7. syleishere

    syleishere Newbie

    Joined:
    Aug 23, 2010
    Messages:
    14
    Likes Received:
    0
    Can be done in 1 line of perl.
    print redirect('someurl'); just have afflink point to the file containing the url, i wouldn't recommend a database, you just introduce one more failure point.