Logo Background RSS
  • Get an email When Google Crawls Your Site
    By admin on February 25th, 2009 | 5 Comments5 Comments 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

  • Know other websites on same ip
    By admin on February 13th, 2009 | No Comments Comments

    Hi friends enjoy reverse ip lookup
    Virtual Hosts and websites on a IP

    Here are some quick tips to know all the websites and Virtual Hosts on a IP address:

    1) Using whois DB
    syntax: http://whois.webhosting.info/x.x.x.x
    e.g.: http://whois.webhosting.info/64.233.169.99

    2) Using Domain Tools (sign-up required)
    syntax: http://www.domaintools.com/reverse-ip/?hostname=x.x.x.x
    e.g. http://www.domaintools.com/reverse-ip/?hostname=64.233.169.99

    Hope you all enjoy :D

  • Restart Mysql from ssh
    By sps on February 10th, 2009 | No Comments Comments

    To restart mysql service from command line (ssh)

    * Login to SSH as root using a program like putty.
    * Type the following command,

    /scripts/restartsrv_mysql

    Hope you all enjoy this command.

  • Modify ssh Welcome message
    By vinod on February 9th, 2009 | No Comments Comments

    Hi friends if you want to create a ssh login message for your server if any buddy login with ssh they will get a welcome message.
    Lets Start Login with root password

    pico /etc/motd

    You will get a welcome screen you can modify it anything you want to show to your users. who logged via ssh. Write something like this
    This computerized system is designed for registered users. All activity is recorded and investigated by the individual system regularly. Those without power or more than their rights when using this system to cancel all its services are subject to. Any illegal services or the user of the server or attempt to withdraw their services in the conduct of local law enforcement to notify the user of law will be finalized and will be punished. Anyone using this system consents to these terms.

    Now type Ctrl+X then hit Y and enter

    now your welcome message is now saved

    Logout of SSH then log back in, you’ll see your new greeting.. :D

  • Move account via whm/ssh
    By admin on February 9th, 2009 | No Comments Comments

    To move an account to another server you need whm or ssh but if account is big in size
    then it is not possible by whm you need ssh by root access.
    Follow the commands below:

    TO PACK ANY ACCOUNT:

    /scripts/pkgacct nameoftheuser

    TO MOVE ONE TAR FILE TO ANOTHER SERVER. IT REQUIRES SERVER ROOT PASSWORD:

    scp /home/name_of_tar_file root@IP_DESTINY_SERVER:/home/ name_of_tar_file

    Restoring Packed Account:

    /scripts/restorepkg nameoftheuser

    Hope you all like this :D

  • Get Email when someone Login by root
    By admin on February 9th, 2009 | No Comments Comments

    Hi friends everybuddy wanted security about their webserver and updated everytime
    you can get an email when anybuddy login via root though ssh.

    To accomplish this you will need to edit the file .bash_profile.
    At command prompt type the below command:

    pico .bash_profile

    At the end of the file add following code:

    echo ‘ALERT – Root Access from:’ `date` `who` | mail -s “Alert: Root Access from `who | awk ‘{print $6}’`” admin@gmail.com

    Replace this with your email “admin@gmail.com”

    If  anybuddy login via ssh root  then you will recieve an email.