Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My website is under attack by malware. How can I remove it and prevent its recurrence?

share|improve this question

migrated from stackoverflow.com Oct 29 '10 at 9:34

This question came from our site for professional and enthusiast programmers.

Duplicate of this: serverfault.com/questions/179876/hacked-by-black-jaguar – Piskvor Oct 29 '10 at 9:34
Could you tell us exactly what is happening or provide some details of your setup? – toomanyairmiles Feb 8 '12 at 1:09

IMO, if you have to ask, then you need to find a webmaster/web developer with some security expertise to handle the situation.

There are millions of ways a site could be compromised and infected with malware. There isn't a magical program you can just run on your server to remove the malware infection. So without knowing how the system was built, how it was compromised, and what kind of malware it is, there's no way for us to tell you how to remove it.

If you don't want to hire a security-conscious webmaster, then your best bet is to delete the site, restore from a backup, change your passwords, and update all of your software.

But if you don't know how or when the site was compromised, and if the exploit used was in your custom-written code, in your configurations, or still exists in the latest version of your software, then you'll just be compromised again.

share|improve this answer

There is a similar question here which has a few good answers in.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.