I am hearing this more and more these days. Partly on the WordPress forums, and also form clients that come to me and say “why does my site have these pharmacy adds on it?”
Even though it should be well-known, it doesn’t seem like there’s one spot for the resources that you need to go through to figure out if your site has been hacked, and what you can do to fix it if you have been hacked.
The first thing to do is to figure out if your site has really been hacked, or if it’s something else. The best service that I’ve found for this so far is Sucuri. They have a great free scanner that will tell you if they can detect any problems with your site:
If your site has been hacked, you need to start working your way through these resources:
Anything less will probably result in the hacker walking straight back into your site again.
After all of this, your site should be back in working order. Of course, if you have problems after all of this, there’s always other people that can help (and a small plug for myself in this category as well).
Oh, and remember – you should always have backups of your site! That way if the worst does happen, you’ll be able to restore your backup and keep on going.