Logo Background RSS

» Scripts

  • Get an email When Google Crawls Your Site
    By admin on February 25th, 2009 | 1 Comment1 Comment Comments

    Hi friends here is the php code to know whenever google crawl your website.
    it automatically sends you an email on your email id.

    < ?php
    if ( strpos( $_SERVER['HTTP_USER_AGENT'], ‘Googlebot’ ) !== false )
    {
    // Your email address
    $email_address = ‘you@yourdomain.com’;
    // Send yourself an email
    mail($email_address,’Googlebot Alert’, ‘The Googlebot has visited your page: ‘.$_SERVER['REQUEST_URI']);
    }
    ?>

    If you have any query feel free to contact me

  • IP script php
    By sps on February 2nd, 2009 | No Comments Comments

    Hi this is a script to show your ip address

    <?php
    $ip = getenv(”REMOTE_ADDR”) ;
    Echo “Your IP is ” . $ip;
    ?>

    and save it with any name like file.php