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

Technical Analyst III
Staff member
Sep 23, 2013
575
21
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.