Results 1 to 2 of 2

Thread: link pulled from database, redirect page = link Juice?

  1. #1
    epidemic is offline Net Builder
    Join Date
    Jan 2009
    Posts
    112
    Thanks
    2
    Thanked 9 Times in 6 Posts

    link pulled from database, redirect page = link Juice?

    On my website I track clicks out using a redirect page that counts the clicks on a seperate php file, it "redirects and logs" ...

    so i was wondering if a link pulled from database, using a redirect php script = influences link juice.

    for example if I link to netbuilders url : NetBuilders - We Build The Net
    The actual link you click might be :

    Code:
    http://www.webhost-choice.com/32-netbuilders/
    which then calls a php script and pulls the actual link from a database .
    This is the code I use if anyone is wondering how this works on coding level if you want to use it, you may , you may also spread the code, but please leave the credits inside
    PHP Code:
    <?php

    // Link out script V1.0 
    // Programmer : Sven Vranken.
    // Contact  synbitz@gmail.com.
    // This code is written for http://www.webhost-choice.com.
    // Modification to work on your website is allowed and free for anyone.
    // This code is opensource, spreading is allowed.
    //  but the credits above must be be kept in the script file.


    include_once('config.php');
    include_once(
    'Functions/General.php');
    $database 'example';

    if (isset(
    $_GET['name']))
    {
        
    $string $_GET['name'];
        
    $data split('[-]'$string);

        
    $Host_Exists RecordExists($data[0],'hosts',$DB_FreeHosting,$DB_Host,$DB_User,$DB_Password);

        if (
    $Host_Exists == false)
        {
            
    header("location:$baselink/sendsucces.php?referrer=brokenlink");
        }
        else
        {
            
    $IP $_SERVER['REMOTE_ADDR'];
            
    $query "SELECT * FROM hitsout WHERE ip='$IP' AND freehost_id=$data[0]";
           
    // check if IP already clicked this link on page ( COUNT UNIQUE IP's ONLY )
            
    DB_CONNECT($DB_FreeHosting,$DB_Host,$DB_User,$DB_Password);
            
    $result mysql_query($query);
            
    DB_DISCONNECT();
            if (
    mysql_num_rows($result) == 0)
            {
                
    DB_CONNECT($DB_FreeHosting,$DB_Host,$DB_User,$DB_Password);
                
    mysql_query("INSERT INTO hitsout (IP,name,freehost_id,date) VALUES ('$IP','$data[1]','$data[0]',now())");
                
    DB_DISCONNECT();
                
    $_SESSION['id'] = $id;
                
    $_SESSION['name'] = $_GET['name'];
            }




            
    // GET LINK FROM DIFFERENT TABLE 

            
    $query "SELECT * FROM hosts WHERE id=$data[0]";
            
    DB_CONNECT($DB_FreeHosting,$DB_Host,$DB_User,$DB_Password);
            
    $result mysql_query($query);
            
    DB_DISCONNECT();
            
    $OK mysql_fetch_array($result);
            
    header("location:$OK[link]");

        }

    }

  2. #2
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    Quote Originally Posted by epidemic View Post
    ... I was wondering if a link pulled from database, using a redirect php script = influences link juice.
    Those links pass no link juice.
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

Similar Threads

  1. [WTS] freelinkbase.com - 1000+ Link Database - Cheap
    By KMRock in forum Sites
    Replies: 0
    Last Post: 6 September, 2010, 01:12 AM
  2. [WTS] Link on a PR3 SEO-related page. Only $25/year
    By kapengbarako in forum Links
    Replies: 0
    Last Post: 28 July, 2010, 16:41 PM
  3. [WTS] Link on a PR2 Recipe Page (subpage) for just $12/year
    By kapengbarako in forum Services
    Replies: 0
    Last Post: 28 July, 2010, 07:12 AM
  4. Replies: 0
    Last Post: 16 April, 2009, 00:20 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •