Website been hacked how can I clean & protect it

wevet

Free Member
Mar 7, 2008
1,094
212
West Sussex
One of my sites hosted on Godaddy has been attacked and some script planted in the script. I went through it and found the lines but it has re-occurred and I am flummoxed as to how this is happening.
Suggestions please on:
How to clear the site defintively of any nasties
How to prevent the site being attacked again
 
D

Deleted member 61074

You will need to do some work to work out how the "hack" happened.

I've seen plenty of hacks where abit of js is added to every index page - this often happens when there is a virus on your own pc. thus the solution is to thoroughly clean your pc with a good AV and spyware prog (malwarebytes is good)

other reasons include, you are running insecure php on your site - solution here is to upgrade to the latest version.

you got infected across the server, solution here would be to find a better host (certainly one with suphp/suexec)
 
Upvote 0
I suggest fixing the site again but from a computer that you know is clean. If the site gets infected for a third time you know the source probably isn't your machine, (and the other way around.)

Scan your machine with Virustotal and Malwarebytes anyway, and further subject any even faintly suspicious stuff to Jotti.

My experience is that it is usually in the local machine.
 
Upvote 0

wykthorr

Free Member
May 26, 2009
160
21
Romania
If it's not a large website, then you'll probably be better of rebuilding it (you can reuse certain parts, but you should use only the code from the old site you understand)

When a hacker manages to break into a system he usually leaves a backdoor, and give the thousands of lines of code apps like wordpress have it's virtually impossible to make sure everything's clean. Also when rebuilding it make sure you use the latest version of whatever software your site uses.

Another thing to do is to see how the hack occurred so that you can prevent future hacks, but that might be really complicated if there are no obvious holes in the code (like SQL inject vulnerabilities)
 
Upvote 0

Latest Articles