How to secure a WooCommerce shop before the busy season
A plain-English checklist for WooCommerce shop owners: updates, plugins, checkout, card-testing fraud, logins and backups, to sort out before the rush.
For a shop, the worst week to be hacked or to go offline is the week everybody is buying. Sales are highest, nobody has time to investigate, and every hour of trouble costs real orders. The good news is that most of what protects a WooCommerce shop is dull, regular housekeeping, and it can be done before the rush starts.
This guide walks through that housekeeping in plain English. You do not need to touch code to use it. Most of it is a list of things to check, and questions to put to whoever looks after your shop.
Why a shop is a bigger target than a brochure site
A shop holds customer names, phone numbers, addresses and order history, and it takes payments. That makes it worth more to a thief than a simple information site. WooCommerce’s own security page puts it plainly: it only takes “one sneaky or badly designed plugin or code snippet” to put a store’s data at risk. Your shop is only as strong as the weakest piece added to it.
Step 1: update everything, in the right order
WooCommerce’s guidance calls keeping WordPress and all plugins up to date, WooCommerce or otherwise, “crucial”. The WordPress project explains why: once a fix is released, details of the weakness often become public, which makes sites that have not updated easier to attack.
Before the busy season:
- Ask who updates your shop, and when they last did.
- Make sure updates are tested on a copy first if your shop is customised. A rushed update in the middle of a sale can break checkout, so do this now, not during the rush.
- Plan a “quiet period” before your peak: no new plugins, no big changes, only fixes.
Step 2: remove plugins you do not need
Every plugin and theme is code you are trusting. List all of them and ask three questions about each:
- Do we still use it?
- Is it still being updated by its authors?
- Did we install it for a one-off job and forget it?
Anything that fails should be removed, not just switched off. Our post on why plugins are the weakest link explains how attackers use old ones.
Step 3: check how customers pay
WooCommerce explains two kinds of payment gateway (the service that takes the card payment):
- Offsite gateways send the customer to the payment company’s own page to pay. WooCommerce describes this as meaning minimal security concerns for your site.
- Integrated gateways keep the payment form on your shop. These need more care. WooCommerce says they all demand at least some basic PCI compliance, which includes valid https.
PCI is the card industry’s rulebook for handling card details. The key principle from WooCommerce is that your customer’s card number and security code should never be stored on your website. If you do not know which kind of gateway you use, ask your developer. It is a short question with an important answer.
Also check that every page of the shop, not only checkout, loads over https. WooCommerce strongly recommends https for all shops.
Step 4: guard against card testing
Card testing is when criminals use your checkout to try out lists of stolen card numbers, often with many tiny payments. It can leave you with refunds, fees and an unhappy payment provider, even though no customer data was taken from you.
WooCommerce lists several defences you can ask about:
- Anti-fraud software, and a bot check such as reCAPTCHA on checkout.
- Checking whether “donation” or “name your price” products are being used for the testing.
- Considering whether to turn off guest checkout.
- Asking your payment provider to review its own anti-fraud measures.
- Refunding payments you believe are fraudulent. WooCommerce warns that providers may not refund the transaction fees on refunded fraudulent charges.
You do not have to do all of these. Ask your payment provider and your developer which fit your shop, and decide before the rush, not during it.
Step 5: lock down the logins
Most shops have more people with admin access than the owner realises: a developer, a former agency, a freelancer, a staff member who left. For each person with access, ask whether they still need it.
The WordPress project’s advice on logins:
- Use strong passwords that are not based on your name, company or site name. A password generator helps.
- Avoid obvious usernames such as “admin” or “webmaster”, because attackers try those first.
- Turn on two-step authentication as an extra layer.
- Require https for the admin area, so logins are encrypted.
- Use SFTP, the secure way to upload files, rather than plain FTP, so passwords are not sent as readable text.
Our two-factor authentication guide covers the choices. If staff leave over the festive season, our leaver checklist tells you what to change.
Step 6: have backups you have actually tested
The WordPress project advises backing up regularly, including the database, and keeping several copies over time. Why several? Because if an attack goes unnoticed for a while, you need a copy from before it happened. A shop needs the database in particular, as that is where the orders live.
A backup you have never restored is a hope, not a plan. Ask your host or developer:
- How often are backups taken, and are orders included?
- Where are they stored, and is that separate from the shop itself?
- When was one last restored as a test, and how long did it take?
Our backup and recovery plan guide goes deeper.
Step 7: know what you will do if it goes wrong
Write down, on one page, before the rush:
- Who to call about the website, the host, the payment provider and the domain.
- Who can take the shop offline or switch on a maintenance page.
- What you will tell customers.
If you ever see signs that the shop has been hacked, our guide to what to do when a WordPress site is hacked gives the first steps in order.
A one-page pre-season checklist
- WordPress, WooCommerce, theme and plugins updated and tested.
- Unused plugins and themes removed.
- We know whether our payment gateway is offsite or integrated.
- Card-testing defences discussed with the payment provider.
- Only the right people have admin access, with strong passwords and two-step sign-in.
- Backups include the database and a restore has been tested.
- A one-page “who to call” sheet exists.
Want a second pair of eyes on your shop?
Start with our free website security checker. It looks at your shop the way a visitor’s browser does and shows what it gives away. If you would like us to check the rest and fix what matters in a safe order, see our website security service.
- Email hello@wpfoss.com
- WhatsApp +254 118 271 160
- Tell us what you need
Sources and further reading
- WooCommerce: Security. Source for the “one sneaky or badly designed plugin” warning, the importance of updates, offsite and integrated gateways, PCI, never storing card numbers, https, and the card-testing defences.
- WordPress developer documentation: Hardening WordPress. Source for the update, password, username, two-step, https admin, SFTP and backup advice.
- The WooCommerce developer “Security best practices” page was opened but held only a short introduction, so nothing here relies on it.
