Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    40
    Likes Received:
    0
    Trophy Points:
    56
    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:
    575
    Likes Received:
    20
    Trophy Points:
    143
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. niceboy

    niceboy Active Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice