An online store owner opens their website in the morning and discovers that visitors are being redirected from the catalogue to an unfamiliar page. Orders stop arriving, the administrator cannot sign in and the advertising campaign continues spending money. The website appeared to work normally the previous evening. Without recent backups, hosting access and a recovery plan, even a relatively small incident can result in several days of disruption.
Securing WordPress and WooCommerce is not a matter of installing one plugin that promises absolute protection. It requires a set of measures that reduce risk, help identify problems and enable recovery. For a business, the important outcomes are website availability, integrity of orders, confidentiality of customer information and continued control over business accounts. This article explains practical principles that help owners organise these responsibilities.
1. What should a website be protected against?
Threats vary according to functionality. A small informational website may become a source of spam or malicious redirects, while an online store contains information about customers, purchases, deliveries and payment statuses. Learning platforms also manage access to materials and student accounts. Appointment systems store contact information and details about visits.
Attacks do not always target a specific business. Automated scans may identify sites with known vulnerabilities, weak accounts or poorly configured servers. Other risks include credentials stolen through phishing, reused passwords and infected employee devices. A well-configured WordPress installation cannot eliminate the risks associated with a compromised hosting account or the owner's email address.
Consider ordinary mistakes as well as malicious activity: accidental deletion of products, a failed update or incorrect synchronisation with an accounting system. Backups and controlled changes help in these situations too. Security involves preventing problems where possible and maintaining the ability to resume operations afterwards.

2. Access for owners, administrators and employees
Start by taking inventory of business accounts. The owner should control the domain, hosting, WordPress administration, email and external services. When a developer installs a payment gateway, CDN or email delivery service, establish who owns the relevant accounts and who can recover access.
Each employee should have a separate account. A shop manager does not always need administrator privileges, and a blog author does not need permission to install extensions. Assign roles according to actual responsibilities. When a person leaves the business relationship, revoke their access and rotate shared service credentials where necessary.
Use unique long passwords, a password manager and multifactor authentication wherever available. Protect the email accounts used for password recovery. Avoid sharing permanent administrative credentials through public documents or group chats. For temporary support, a dedicated account with appropriate permissions can be created and removed when the work is complete.
Prepare secure recovery procedures in case an authentication device or security key is lost. Store recovery codes separately from the primary device. If several people manage the business, decide who is responsible for access outside normal working hours.
3. Updating WordPress, themes and extensions
Updates fix bugs and security vulnerabilities and help maintain compatibility with new software. A site that has not been maintained for several years accumulates risks. Review not only the WordPress core but also the theme, active and inactive plugins, PHP version and server environment.
Install software from official repositories or trusted vendors. Avoid unauthorised copies of paid themes and plugins from unknown sources. In addition to the possibility of malicious modification, such copies often lack reliable updates and support. Remove unnecessary components after verifying that nothing depends on them.
Updating an online store needs to be a controlled process. Create a current backup, review compatibility and test changes on a staging copy where practical. Afterwards, check checkout, payments, shipping, notifications, customer accounts and connected services. Critical security fixes should be addressed promptly rather than postponed for months.
Automatic updates may be appropriate for some components, provided the results are monitored and a recovery procedure is available. For a complex store, agree who is notified about a failed update and who responds. Do not assume that a website is up to date simply because automatic updates were enabled previously.
4. Hosting, HTTPS and server security
Hosting affects both performance and security. Businesses should look for maintained software versions, appropriate separation between websites, access to logs, backup capabilities, secure connection methods and responsive support. Not every plan includes each of these features, so confirm the actual provisions before migrating.
HTTPS protects information in transit between the browser and the web server. The certificate needs to be valid and critical resources should not be loaded over insecure connections. HTTPS does not mean that the server cannot be compromised or that installed software has no vulnerabilities.
A web application firewall, or WAF, can reduce unwanted requests and block some attacks. Login rate limiting may help resist automated password guessing. None of these measures replaces updates, appropriate permissions and backups. Check that protection rules do not block legitimate customers, payment notifications or other required integrations.
File and database permissions depend on the server configuration. Do not blindly apply commands found in a forum without understanding their consequences. Excessively permissive settings increase risk; overly restrictive settings can break updates, file uploads and normal application behaviour.
5. Backups that can actually be restored
A complete WordPress backup includes its files and database. Files contain themes, extensions, uploaded content and configuration while the database stores pages, accounts, products, orders and other information. A backup of only one component may not be sufficient to reconstruct the website.
The appropriate backup frequency depends on the cost of losing information. A company website that changes once a week might be adequately served by a daily copy. A store receiving dozens of purchases per hour could encounter serious difficulties if it loses even a few hours of transactions. Agree on an acceptable amount of data loss and a target recovery time.
Retain several backup versions, including copies outside the primary hosting account. Protect access to the storage. An attacker obtaining control of one account should not automatically be able to destroy every recovery copy. Monitor whether scheduled backups completed successfully and whether their files remain available.
Periodically restore a backup into a private test environment. Verify pages, logins, databases, images and important functionality. With WooCommerce, do not overwrite a production store with an older database without reconciling purchases, transactions and subscriptions that occurred since the backup was made. A restore can have financial consequences even when the technical process appears successful.
6. Protecting WooCommerce payments
Use suitable payment gateways from reputable providers. Card data handling depends on the implementation. When customers are redirected to a provider's payment page or use securely hosted payment components, the provider may handle the card information directly. Standard mechanisms used by official WooCommerce payment integrations do not store complete card details in the store.
An appropriately certified payment provider can reduce the merchant's compliance burden, but does not eliminate responsibility for website security. PCI DSS obligations depend on the integration and other circumstances. Confirm the requirements with the payment provider or an appropriately qualified specialist.
Never collect card details through a standard contact form, ordinary email or messaging conversations. Restrict access to payment dashboards and API keys and use a test environment for changes. Verify transaction confirmations and the handling of duplicate notifications or interrupted payments.
Security also includes fraudulent orders. Transaction checks, restrictions on suspicious attempts and a process for manual review should reflect the way the business sells. Excessively restrictive filters can block legitimate customers, so evaluate their effectiveness. Make sure the team knows how to investigate an unfamiliar payment status without accepting an unverified screenshot as proof of payment.
7. Personal data, integrations and logs
Collect only the information needed for a specified purpose. A delivery address is necessary for shipping physical products, but may not be needed in a simple enquiry form. Data retention periods, deletion procedures and the legal basis for processing should be assessed according to the applicable jurisdiction and business activity. Medical and other sensitive information requires a separate assessment.
When a website connects to CRM, ERP, delivery services, email providers or analytics, identify which information each system receives. Do not give an integration full administrative privileges if it only requires access to order records. Revoke associated credentials when an integration is retired and check for leftover access.
Logs help establish who signed in, when settings changed and what led to failures. They may also contain private information. Keep them out of public access, restrict reading permissions and avoid recording passwords, tokens or payment card details in diagnostic logs.
Review caching of personalised pages. Customer accounts, shopping baskets, wholesale prices and private documents should never enter a shared cache served to unrelated visitors. Make sure test copies of the website do not expose real customer records or accidentally contact customers through production email integrations.
8. How to recognise that something is wrong
Potential warning signs include unknown administrators, unexpected file changes, redirects, browser security warnings, search spam, unusual purchases or an increase in errors. Any one symptom alone does not establish that the site was hacked. Checkout failures, for example, may result from a plugin conflict.
Set up availability monitoring, alerts for important events and review security messages from the hosting provider. Search Console may show security issues Google has detected. Regularly check core business workflows, including enquiry forms and checkout, rather than only the homepage response status.
Do not ignore visitor reports. An issue that appears only on mobile devices, for new customers or through search results may be invisible in the owner's usual browser. Record the time, affected URL and behaviour without distributing confidential data. If possible, preserve relevant information for professional investigation.
9. What to do if a website has been compromised
The first priority is containing the harm. If customers may be at risk, temporarily restrict the affected functionality or access to the site in coordination with the responsible parties. Preserve available logs and a copy of the affected state for investigation. Contact the hosting provider and a specialist who can assess the extent of compromise.

Recovery is not simply deleting the visible malicious file. Identify the cause and affected components, remove unauthorised code or rebuild from a verified clean version, address the original vulnerability and rotate compromised credentials using a trusted device. If there is a suspected data breach, arrange an appropriate assessment of required notifications and further steps.
Before reopening the store, verify integrity of order records, payment statuses, accounts and integrations. Reinfection is possible if the root cause remains or the backup already contained malicious changes. Continue monitoring after recovery and, where appropriate, request review of any reported search security issues through Google.
10. Establishing a maintenance routine
For a small business, assign responsibility for access, updates, backups, payment checks and incident response. Even if maintenance is outsourced, the owner should know how to access the system, where backups are stored and whom to contact if something goes wrong.
Consider a hypothetical store receiving fifty orders per day with one database backup every twenty-four hours. Restoring yesterday's state may mean reconstructing orders that arrived afterwards. The actual volume depends on the incident time, payment records and connected systems. Agree on a recovery process before facing such a situation.
Regular maintenance may include reviewing updates, backups, availability, user permissions and key workflows. The appropriate frequency depends on the site's risk and activity. Compare maintenance costs with the risk of downtime, data loss, recovery work and consequences for customers. Absolute security is not guaranteed, but a controlled process leaves a business much better prepared.
Frequently asked questions
Is a security plugin enough?
No. It may help with monitoring and protection, but you also need maintained software, appropriate access controls, suitable hosting and tested backups.
How often should we create backups?
It depends on how frequently information changes and how much loss is acceptable. An active store may require more frequent database backups than an informational website.
Can a hacked WordPress website be recovered?
Often yes, but the outcome depends on the extent of compromise, available backups and whether the root cause can be resolved. Verify the recovered data and functionality.
How to keep a WordPress website secure
Website security is part of operating a business. At CianBay Studio, we provide WordPress maintenance, website repair and WooCommerce store development for businesses in Ukraine and internationally. With existing websites, we begin by identifying the problem and agreeing the scope. See also our guide to website speed and SEO.
Sources and further reading
- WordPress: hardening WordPress
- WordPress: backups
- WordPress: what to do after a hack
- WooCommerce: website and data security
- WooCommerce: PCI DSS
- WooCommerce: payment integration privacy
Originally published at CianBay Studio.
Disclosure: This article was prepared with AI assistance.
Top comments (0)