Website defacement, suggested fixes?

iso99

Well-Known Member
Jan 5, 2011
112
7
68
cPanel Access Level
Root Administrator
One of my client's website is getting defaced regularly these days. Yes, it is an unsecured script but they are preparing to release a new version soon. It's a custom coded system.

At this time, what can we do to prevent attacks?

Any way to catch IP of culprit?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello :)

You could try reviewing the domain access logs for this domain name (/usr/local/apache/domlogs/$domain.com) to see if you can determine the source of the attack. However, attackers will often change their IP address, so generally it's better to address the vulnerability in the script itself. Also, ensure you use Mod_Security with a useful ruleset and CSF if you don't already. The "Security Advisor" option in WHM will provide general advice on securing certain aspects of your system.

Thank you.