{
    "title": "How to secure a WordPress site: the complete 7-layer method",
    "seo_title": "How to Secure a WordPress Site: Complete 2026 Guide",
    "h1": "How to secure a WordPress site: the complete 7-layer method",
    "description": "Secure WordPress in the right order: hosting, access, updates, attack surface, monitoring, backups and response. Method, priorities and a 30-day plan.",
    "lead": "The complete method to secure a WordPress site: the seven layers of protection, the order to follow for your type of site, a 30-day plan and the wp-config.php settings.",
    "language": "en",
    "locale": "en-US",
    "type": "article",
    "url": "https://www.wp-feint.com/how-to-secure-wordpress-site/",
    "canonical": "https://www.wp-feint.com/how-to-secure-wordpress-site/",
    "markdown": "https://www.wp-feint.com/how-to-secure-wordpress-site/index.md",
    "json": "https://www.wp-feint.com/how-to-secure-wordpress-site/index.json",
    "published": "2026-05-02T06:00:00+00:00",
    "modified": "2026-11-23T09:52:23+00:00",
    "site": {
        "name": "WP Feint",
        "url": "https://www.wp-feint.com/"
    },
    "translations": [
        {
            "language": "en",
            "hreflang": "en-US",
            "title": "How to secure a WordPress site: the complete 7-layer method",
            "url": "https://www.wp-feint.com/how-to-secure-wordpress-site/",
            "markdown": "https://www.wp-feint.com/how-to-secure-wordpress-site/index.md",
            "json": "https://www.wp-feint.com/how-to-secure-wordpress-site/index.json"
        },
        {
            "language": "fr",
            "hreflang": "fr-FR",
            "title": "Comment sécuriser un site WordPress : la méthode complète en 7 couches",
            "url": "https://www.wp-feint.com/fr/comment-securiser-site-wordpress/",
            "markdown": "https://www.wp-feint.com/fr/comment-securiser-site-wordpress/index.md",
            "json": "https://www.wp-feint.com/fr/comment-securiser-site-wordpress/index.json"
        },
        {
            "language": "es",
            "hreflang": "es-ES",
            "title": "Cómo proteger un sitio WordPress: el método completo en 7 capas",
            "url": "https://www.wp-feint.com/es/como-proteger-sitio-wordpress/",
            "markdown": "https://www.wp-feint.com/es/como-proteger-sitio-wordpress/index.md",
            "json": "https://www.wp-feint.com/es/como-proteger-sitio-wordpress/index.json"
        },
        {
            "language": "de",
            "hreflang": "de-DE",
            "title": "WordPress-Website absichern: die vollständige Methode in 7 Schichten",
            "url": "https://www.wp-feint.com/de/wordpress-website-absichern/",
            "markdown": "https://www.wp-feint.com/de/wordpress-website-absichern/index.md",
            "json": "https://www.wp-feint.com/de/wordpress-website-absichern/index.json"
        },
        {
            "language": "it",
            "hreflang": "it-IT",
            "title": "Come proteggere un sito WordPress: il metodo completo in 7 livelli",
            "url": "https://www.wp-feint.com/it/come-proteggere-sito-wordpress/",
            "markdown": "https://www.wp-feint.com/it/come-proteggere-sito-wordpress/index.md",
            "json": "https://www.wp-feint.com/it/come-proteggere-sito-wordpress/index.json"
        },
        {
            "language": "pt",
            "hreflang": "pt-BR",
            "title": "Como proteger um site WordPress: o método completo em 7 camadas",
            "url": "https://www.wp-feint.com/pt/como-proteger-site-wordpress/",
            "markdown": "https://www.wp-feint.com/pt/como-proteger-site-wordpress/index.md",
            "json": "https://www.wp-feint.com/pt/como-proteger-site-wordpress/index.json"
        },
        {
            "language": "nl",
            "hreflang": "nl-NL",
            "title": "Een WordPress-site beveiligen: de volledige methode in 7 lagen",
            "url": "https://www.wp-feint.com/nl/wordpress-website-beveiligen/",
            "markdown": "https://www.wp-feint.com/nl/wordpress-website-beveiligen/index.md",
            "json": "https://www.wp-feint.com/nl/wordpress-website-beveiligen/index.json"
        }
    ],
    "headings": [
        {
            "level": 1,
            "text": "How to secure a WordPress site: the complete 7-layer method"
        },
        {
            "level": 2,
            "text": "What actually threatens a WordPress site"
        },
        {
            "level": 2,
            "text": "The seven layers of protection, in order"
        },
        {
            "level": 3,
            "text": "1. Hosting and server"
        },
        {
            "level": 3,
            "text": "2. Access and accounts"
        },
        {
            "level": 3,
            "text": "3. Updates and inventory"
        },
        {
            "level": 3,
            "text": "4. Attack surface"
        },
        {
            "level": 3,
            "text": "5. Monitoring"
        },
        {
            "level": 3,
            "text": "6. Backups"
        },
        {
            "level": 3,
            "text": "7. Incident response plan"
        },
        {
            "level": 2,
            "text": "Where to start depending on your site"
        },
        {
            "level": 2,
            "text": "The 30-day plan"
        },
        {
            "level": 2,
            "text": "Settings to add to wp-config.php"
        },
        {
            "level": 2,
            "text": "What a security plugin does, and what it does not"
        },
        {
            "level": 2,
            "text": "Frequently asked questions"
        },
        {
            "level": 3,
            "text": "Key takeaways"
        },
        {
            "level": 2,
            "text": "Close the doors bots try first"
        },
        {
            "level": 2,
            "text": "Sources"
        }
    ],
    "body": "Securing a WordPress site does not mean installing a plugin and ticking every box in its settings. It means closing, in the right order, the doors that bots try every day: weak accounts, outdated plugins, files and URLs that give too much away, no backups and no monitoring. This guide gives you the complete method in seven layers, the order to tackle them in depending on your site, a 30-day plan and the exact settings to apply.\n\nLooking for a list to tick off on an existing site instead? Our 40-point WordPress security checklist works as an audit. Here, the goal is to understand what each measure protects, so you can decide what to do first.\n\n## What actually threatens a WordPress site\n\nMost hacked sites were not targeted personally. Bots crawl the internet non-stop, spot WordPress sites, try passwords and look for plugin versions with a published vulnerability. WordPress core is rarely the problem: most of the vulnerabilities published each year affect plugins and themes. Attacks fall into a few families, and each one is stopped at a specific place.\n\n| Threat | How it arrives | Layer that stops it | Urgency |\n| --- | --- | --- | --- |\n| Known plugin vulnerability | Bot looking for a vulnerable version | Updates, alerts | Very high |\n| Stolen password | Brute force, credential stuffing, phishing | Access and accounts | Very high |\n| Booby-trapped or abandoned plugin | Change of ownership, no patch | Inventory, alerts | High |\n| Misconfigured server | End-of-life PHP, overly broad permissions | Hosting | High |\n| Automated reconnaissance | Account enumeration, XML-RPC, fingerprints | Attack surface | Medium |\n| Data loss | Hack, mistake, outage | Backups | High |\n\n*Common attack families and the protection layer that answers each one.*\n\n## The seven layers of protection, in order\n\nEach layer covers a risk the others cannot see. A very complete security plugin does not make up for a missing backup, and a perfect backup does not prevent a stolen password. The animation shows the recommended order: start with the foundation, then lock down access, before adding monitoring.\n\n*The recommended order: the foundation first, then access, before monitoring and recovery.*\n\n### 1. Hosting and server\n\nEverything rests on the server. WordPress now recommends PHP 8.3 or later, with at least MySQL 8.0 or MariaDB 10.11. An end-of-life PHP version no longer receives security fixes (see [end-of-life PHP versions](https://www.wp-feint.com/end-of-life-php-versions/)). Also check that your host isolates accounts from each other, offers SFTP rather than FTP, a web application firewall and backups. Our [WordPress hosting comparison](https://www.wp-feint.com/best-wordpress-hosting/) covers these points plan by plan.\n\n### 2. Access and accounts\n\nThis is the layer with the best return. A long, unique password per account, [two-factor authentication](https://www.wp-feint.com/wordpress-two-factor-authentication/) for every administrator, login attempt limiting and a moved login page remove the vast majority of attacks on accounts. Apply least privilege too: an editor does not need the administrator role, and every contractor should have their own account, deleted when the job is done.\n\n- Delete the \"admin\" account if it exists, along with any unused account.\n- Revoke the application passwords you do not use (Users, Profile).\n- Protect access outside WordPress as well: your hosting control panel, SFTP, the database and the administrator's mailbox.\n\n### 3. Updates and inventory\n\nKeep WordPress on its latest version. Minor core updates install themselves; also turn on automatic updates for plugins you trust, and keep a staging site for the most sensitive ones (shop, page builder). Above all, shrink the inventory: every deactivated plugin still sitting on the server can still be attacked. Delete what you no longer use and replace plugins that are no longer maintained ([the danger of abandoned plugins](https://www.wp-feint.com/abandoned-wordpress-plugins-danger/)).\n\n### 4. Attack surface\n\nThe less a bot learns about your site, the less it has to work with. Close what you do not use: [XML-RPC](https://www.wp-feint.com/wordpress-xml-rpc-risks/) and pingbacks, user enumeration through `/?author=1` and the REST API, the file editor in the Dashboard. Fix file permissions, add HTTP security headers and remove the fingerprints that reveal WordPress, its plugins and their versions. Hiding these does not replace updates: it reduces automated targeting.\n\n### 5. Monitoring\n\nA hack discovered after three days costs far less than one discovered after three months. Watch four signals: published vulnerabilities affecting your plugins, the integrity of core files, administrator actions (new account, plugin installed) and Google's alerts in Search Console. Our guide on [how to tell whether a WordPress site has been hacked](https://www.wp-feint.com/detect-hacked-wordpress-site/) details the manual checks.\n\n### 6. Backups\n\nA backup is only worth something if it is stored off the server and you have already restored it successfully once. Follow the [3-2-1 rule](https://www.wp-feint.com/wordpress-backups-3-2-1-strategy/): three copies, two types of media, one copy off-site. Keep several weeks of history, because an infection is often discovered late and recent backups may already contain it.\n\n### 7. Incident response plan\n\nWrite it before you need it, on a single page: who to notify, where the credentials are, how to put the site in maintenance mode, which backup to restore, how to change every password and the keys in `wp-config.php`. When the day comes, follow the [step-by-step cleanup procedure](https://www.wp-feint.com/clean-hacked-wordpress-site/).\n\n## Where to start depending on your site\n\nEvery layer matters, but the order depends on what you stand to lose and who works on the site.\n\n| Type of site | Priorities | Initial time | Watch out for |\n| --- | --- | --- | --- |\n| Blog or brochure site | Access, automatic updates, off-site backup | 1 to 2 hours | Plugins installed \"to try out\" and then forgotten |\n| Business website | Access, inventory, monitoring, response plan | Half a day | Contractor accounts that were never deleted |\n| WooCommerce store | Mandatory 2FA, staging, frequent backups | One day | Payment plugins and customer data |\n| Agency, several sites | Central inventory, alerts, shared procedure | Varies | A single forgotten site becomes the way in |\n\n*Recommended order of priority by site profile.*\n\n## The 30-day plan\n\nThere is no need to do everything in one evening. This schedule deals first with what bots exploit most.\n\n- **Day 1 (one hour)**: update core, plugins and theme; delete unused plugins and themes; change administrator passwords; run a full backup and copy it off the server.\n- **Week 1**: two-factor authentication for administrators, login limiting, moved login page, XML-RPC closed, roles reviewed.\n- **Week 2**: supported PHP version, HTTPS enforced with HSTS, security headers, file editor disabled, permissions checked.\n- **Week 3**: automatic off-site backups, restore test on a copy, automatic updates for trusted plugins.\n- **Week 4**: monitoring (known vulnerabilities, integrity, activity log, Search Console) and a written response plan.\n- **Then, every month**: review accounts and plugins, read the alerts, check a backup.\n\n## Settings to add to wp-config.php\n\nThese constants go above the line \"That's all, stop editing!\". Make a copy of the file before editing it; our article on [wp-config.php security settings](https://www.wp-feint.com/wp-config-security-settings/) explains them one by one.\n\n```\n// No theme and plugin editor in the Dashboard\ndefine( 'DISALLOW_FILE_EDIT', true );\n\n// Admin area and login over HTTPS only\ndefine( 'FORCE_SSL_ADMIN', true );\n\n// Automatic core updates: minor releases (default value)\ndefine( 'WP_AUTO_UPDATE_CORE', 'minor' );\n\n// Never show PHP errors to visitors\ndefine( 'WP_DEBUG', false );\ndefine( 'WP_DEBUG_DISPLAY', false );\n```\n\nOnly add `DISALLOW_FILE_MODS` if you update by another route (WP-CLI, deployment): this constant also blocks updates from the Dashboard.\n\n## What a security plugin does, and what it does not\n\nNo plugin covers all seven layers. Firewalls and scanners such as Wordfence or Sucuri filter requests and look for malicious code; a backup plugin copies your data; your host runs the server. WP Feint works on layers 2, 4 and 5: reducing what bots can see and what they can try, then letting you know.\n\n- **Free version**: [moved login page](https://www.wp-feint.com/features/custom-login-page/), XML-RPC and pingbacks blocked, WordPress traces and plugin comments removed, plugin folder hidden, bot traps that count scanners.\n- **WP Feint Pro**: two-factor authentication, login limiting, author list hidden, renamed file URLs, security headers, [alerts on vulnerable](https://www.wp-feint.com/features/vulnerable-plugin-alerts/) and closed plugins, core integrity check, administrator activity log, email alerts, and the update status of all your sites in the member area.\n- **What it does not do**: it is not a web application firewall, an antivirus or a backup tool. Pair it with those; our [WordPress security plugin comparison](https://www.wp-feint.com/best-wordpress-security-plugins/) shows the combinations that do not overlap.\n\n*\"Comment sécuriser un site WordPress, tutoriel complet\" by Cédric Dintimille (in French, 2025): a walkthrough of the basic settings in the admin area, useful to see where each option lives.*\n\n## Frequently asked questions\n\n**Is a security plugin enough to secure WordPress?**\n\nNo. It handles some of the layers (access, attack surface, filtering or monitoring depending on the tool). Updates, off-site backups, hosting and account management remain your job.\n\n**What is the most effective step if I only have one hour?**\n\nUpdate everything, delete what you no longer use, change the administrator passwords and copy a backup off the server. Add two-factor authentication as soon as you can.\n\n**Should I change the wp-login.php URL?**\n\nYes, as an extra measure: it removes the noise from bots aiming at the default URL. It does not replace a strong password or two-factor authentication.\n\n**Does hiding WordPress hurt SEO?**\n\nNo, as long as it does not touch your content or the public URLs of your pages. Search engines index your pages, not the signature of the software that builds them.\n\n**How often should I check a site's security?**\n\nAlerts as they come in, a quick review of accounts and plugins every month, and a full audit with a checklist once a year or after a redesign.\n\n### Key takeaways\n\n- WordPress security comes down to seven layers: hosting, access, updates, attack surface, monitoring, backups, response.\n- Start with accounts and updates: those are the doors bots try first.\n- A deactivated plugin can still be attacked: delete what you no longer use.\n- A backup counts only if it is off the server and has been restored at least once.\n- No plugin does everything: combine a smaller attack surface, a firewall or scanner, backups and alerts.\n\n## Close the doors bots try first\n\nThe free plugin Feint Security moves the login page, blocks XML-RPC and hides WordPress. Pro adds two-factor authentication, login limiting, vulnerability alerts and the integrity check, from €59 per year excl. VAT.\n\n[Download the free version](https://www.wp-feint.com/download/)\n\n[See Pro pricing](https://www.wp-feint.com/pricing/)\n\n## Sources\n\n- WordPress Developer: Hardening WordPress (https://developer.wordpress.org/advanced-administration/security/hardening/)\n- WordPress Developer: Brute Force Attacks (https://developer.wordpress.org/advanced-administration/security/brute-force/)\n- WordPress.org: requirements (https://wordpress.org/about/requirements/)\n- WordPress Developer: wp-config.php (https://developer.wordpress.org/advanced-administration/wordpress/wp-config/)",
    "categories": [
        "Hardening"
    ],
    "format": "application/json"
}