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

Record Vistors ips address. Anyone know how

Discussion in 'Black Hat SEO Tools' started by zenerchi, Jul 7, 2010.

  1. zenerchi

    zenerchi Regular Member

    Joined:
    Jul 13, 2009
    Messages:
    322
    Likes Received:
    294
    Occupation:
    Building wealth and refreshing my stats page
    Location:
    Earth
    Hey.

    Wondering if anyone can paste some code that will record the visitors ip that vists my .php link and then also some code that will direct everyone in the .txt file with the i.ps to one site and redirect everyone that isnt in the .txt file to another site.


    major thanks rep and appreciation.
     
  2. Slaughtlander

    Slaughtlander Registered Member

    Joined:
    May 17, 2009
    Messages:
    60
    Likes Received:
    8
    All i got is this =/ Hopefully it will help a little?
    PHP:
    <?php
    $LogFileLocation 
    "iplogs.txt";
    $fh fopen($_SERVER['DOCUMENT_ROOT'].$LogFileLocation,'at');
    fwrite($fh,date('dMy H:i:s')."\t".$_SERVER['REMOTE_ADDR']."\t".$_SERVER['REQUEST_URI']."\n");
    fclose($fh);
    echo 
    'Your IP has been logged.'
    ?>