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

niceboy

Active Member
Sep 29, 2011
41
1
58
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.
 

cPanelPeter

Senior Technical Analyst
Staff member
Sep 23, 2013
586
25
153
cPanel Access Level
Root Administrator
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.