Spam pages under your domain in Google, a redirect to a strange site on phones, an admin user nobody created, or a warning from your host. If your WooCommerce store has been hacked, the order you do things in matters. Here’s what to do in the first 24 hours.
Signs your store has been hacked
- Searching
site:yourstore.comin Google shows pages you didn’t create, often in another language or selling something unrelated. - Visitors on phones are sent to another site, while it looks fine on your desktop.
- Admin users you don’t recognise.
- Your host, Google Search Console or your payment provider has sent a warning.
- Customers report card fraud after buying from you.
Hour 1: stop it getting worse
- Don’t delete anything yet. You’ll need the evidence to find how they got in.
- Take a full backup of files and database, as it is now. Label it clearly as infected.
- Change passwords: every WordPress admin, your hosting account, the database and SFTP. Use a password manager.
- Turn on maintenance mode if the store is sending visitors to harmful sites, or if customers report card fraud.
- Tell your payment provider if card details may be involved. They’ll tell you what they need from you.
Hours 2 to 12: clean up
- Replace WordPress core files with fresh copies of the same version.
- Reinstall every plugin and theme from the original source, not from your server.
- Check the uploads folder for PHP files. There should be none.
- Look in the database for injected scripts in posts, options and widgets, and for admin users you don’t know.
- Check
wp-config.phpand.htaccessfor code that doesn’t belong. - Remove spam pages and return a “gone” status for their URLs, so Google drops them faster.
Scanner plugins help, but they miss things. A hand check of files and the database is what finds the backdoor that brings the hack back a week later.
Hours 12 to 24: close the door
- Find how they got in. Usually an outdated plugin, a reused password, or an abandoned admin account.
- Update everything and remove plugins and themes you don’t use.
- Reset security keys in
wp-config.php, which logs everyone out. - Turn on two-factor login for every admin.
- Check that checkout uses hosted payment fields, like Stripe’s or PayPal’s, so card numbers never touch your server.
After the clean-up
- If Google flagged your site, request a review in Search Console once it’s clean.
- Keep the infected backup somewhere safe and offline for a few months, then delete it.
- Write down what happened, what you changed and when. Your payment provider may ask.
- Set up a routine: tested updates every month, daily backups and uptime monitoring. Our maintenance checklist lists what to do and how often, and our guide covers WooCommerce security in more depth.
Need help now?
Our Emergency Rescue starts within 24 hours on US business days, and our security clean-up covers everything above, with a written report you can give your payment provider. Call us on +1 (855) 532-4711.