The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

finding which hosted domain a visitors ip is connecting to..

Discussion in 'General Discussion' started by niceboy, Dec 12, 2013.

  1. niceboy

    niceboy Active Member

    Joined:
    Sep 29, 2011
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi,

    I have a specific visitors ip causing server overload.

    Since it is causing very small load, instead of blocking the ip, I want to know which hosteddomain this ip is connecting to..

    Could some one please provide me a shell command for this?

    thanks.
     
  2. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    If you have root access to the server, go to the /usr/local/apache/domlogs folder and type the following command:

    # grep -lr 'ipaddress' */*

    This should tell you which username/domain name the IP address in question is hitting.
     
  3. niceboy

    niceboy Active Member

    Joined:
    Sep 29, 2011
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    great. thx :)
     
Loading...

Share This Page