Lawscan.org Scan free

Security

WordPress Security and GDPR: A 12-Step Hardening Checklist

Published November 18, 2026 · 6 min read

Secure your WordPress site and protect personal data: updates, 2FA, backups, login protection, roles, plugins and monitoring in 12 steps.

WordPress powers a large share of the web, which makes it a favourite target. A hacked site is both a business problem and a potential GDPR data breach, since contact forms, orders and user accounts hold personal data. These steps close the most common doors.

1. Keep everything updated

Core, themes and plugins. Most compromises exploit known flaws that were already patched. Enable automatic minor and security updates.

2. Remove what you do not use

Deactivated plugins and old themes still contain code. Delete them. Choose well-maintained plugins with recent updates.

3. Use strong, unique passwords

Use a password manager and avoid the username "admin". WordPress stores passwords hashed, but weak choices are still guessed.

4. Turn on two-factor authentication

At least for administrators and editors. It stops most credential-stuffing attacks.

5. Limit login attempts

Rate-limit or block repeated failures and consider hiding or restricting /wp-admin by IP where practical.

6. Apply least privilege

Give users the lowest role they need. Not everyone is an administrator, and former staff should be removed promptly.

7. Back up and test restores

Automated daily backups stored off the server, with a restore actually tested. A backup you cannot restore is not a backup.

8. Force HTTPS and add security headers

See our guide to HTTP security headers.

9. Harden files and the database

Disable file editing from the dashboard, set correct permissions and use a non-default database prefix with a dedicated database user.

10. Add a firewall and malware scanning

A web application firewall blocks brute-force and SQL injection attempts and alerts you to changes in files.

11. Log and monitor

Keep an activity log of logins and changes, with a defined retention period that matches your privacy policy.

12. Have a breach plan

Know who to call and what to do. Read what to do in the first 72 hours.

Related checks in the Compliance Index

Find out what your website is missing

Scan it for free, then ask for a full report with a prioritised action plan.

Scan my website free

Prefer expert help? Request a full compliance report →

Keep reading

This guide is for general information and is not legal advice. Rules change and national laws vary: check with a qualified professional for your specific case.

Scan your website free →