Security

A Practical WordPress Security Checklist

A practical look at how WordPress security goes beyond installing a security plugin and is instead a workflow of updates, access control, backups, monitoring and technical decisions that work together to reduce unnecessary risk.

Table of Content

WordPress security is rarely the result of one plugin, one setting or one hardening trick.

A secure WordPress website is the result of several layers working together: maintained software, sensible access control, appropriate server configuration, reliable backups, monitoring and a process for responding when something unexpected happens.

That also means there is no universal configuration that makes every WordPress website “secure”. A brochure website, an ecommerce platform and a membership site have different risks, infrastructure and
operational requirements.

The following checklist is not intended as a guarantee or a one-click recipe. It is a practical baseline for reviewing the areas that commonly matter when building or maintaining a WordPress website.

Keep WordPress, Plugins and Themes Maintained

Updates are one of the most basic parts of WordPress security, but the goal should not simply be to click every available update as quickly as possible. The important part is having a process.

That process should include keeping WordPress core supported and reasonably current, monitoring plugin and theme updates, reviewing security-related releases, removing software that is no longer required,
identifying abandoned components, testing significant changes where appropriate and checking important functionality after updates.

Unused plugins and themes should not remain installed indefinitely. The smaller and better understood the software stack is, the easier it becomes to maintain.

Be Selective About Plugins and Themes

A plugin should solve a real requirement, not simply be installed because it makes a small task convenient.

Before adding a dependency, consider whether the functionality is necessary, whether the project is actively maintained, how vulnerabilities are handled, what access the plugin requires and how difficult it would be to replace later.

This is not an argument for using as few plugins as mathematically possible. A well-maintained plugin can be a much better decision than unnecessary custom code. The goal is to understand the dependencies your
website relies on.

Protect Authentication and User Access

WordPress roles and capabilities should follow least privilege: give an account the access required to perform its job and no more.

Review administrator accounts, remove accounts that are no longer required, use strong unique passwords, enable multi-factor authentication where appropriate, avoid shared administrator credentials
and monitor unusual login activity.

Changing the login URL can reduce automated noise in some environments, but it should not be treated as a primary security control.

Review File and Directory Permissions

WordPress needs to read and, in specific locations, write files. It does not need unrestricted filesystem access everywhere.

Permissions should match the hosting environment and ownership model rather than being copied blindly from a checklist. Files should not be globally writable, sensitive configuration deserves additional attention, and 777 should not be used as a generic fix for permission problems.

Protect Sensitive Configuration

wp-config.php contains information that deserves careful handling.

Depending on the environment, useful measures can include restrictive filesystem permissions, preventing accidental web exposure, keeping credentials out of public repositories, rotating credentials when compromise is suspected and separating development and production secrets.

Moving wp-config.php outside the web root can be appropriate in some configurations, but it should not be treated as a universal requirement.

Review Unnecessary Attack Surface

WordPress installations often expose functionality that a particular website never uses: XML-RPC functionality, legacy integrations, unused accounts, old staging environments or abandoned plugins.

The correct approach is not to disable features blindly. First determine whether the website depends on them. If a feature has no business or technical purpose, removing unnecessary exposure simplifies the platform.

Use Security Headers Deliberately

HTTP security headers can provide useful browser-side protections.


Depending on the site, relevant controls can include Content-Security-Policy, X-Content-Type-Options, Referrer-Policy, frame restrictions and Permissions-Policy.

A Content Security Policy deserves particular care. Copying a restrictive CSP can break scripts, forms, analytics, fonts or integrations. Security headers should be tested, not merely added.

Consider a Web Application Firewall

A WAF can provide another defensive layer by filtering suspicious requests. Depending on the infrastructure, that layer may exist at the hosting provider, CDN/reverse proxy or WordPress application level.

A firewall should complement the rest of the security model rather than compensate for abandoned software, weak credentials or an unmaintained website.

Treat Backups as Part of Security

A backup is useful only if it can be restored.

A sensible strategy considers how frequently the website changes, how much data the business can afford to lose, where backups are stored, how many restore points are retained and how restoration is tested.

Backup frequency should follow business risk rather than an arbitrary schedule.

Monitor Unexpected File Changes

Unexpected changes to WordPress core, plugin, theme or configuration files can be an important indicator during an investigation.

File integrity monitoring can help identify modified core files, unexpected PHP files, changes outside normal updates and modifications to .htaccess or configuration files.

Not every changed file is malicious. The value comes from having enough context to distinguish expected changes from unexpected ones.

Protect Upload and Writable Areas

Directories that accept user-controlled files deserve additional attention. Where appropriate, controls may include restricting permitted file types, validating uploads, preventing executable PHP from running in media upload locations and ensuring uploaded files cannot overwrite sensitive application files.

The exact controls depend on what the website allows users to upload and how those files are processed.

Keep the Infrastructure in Scope

WordPress does not operate in isolation.

Security also depends on PHP, the web server, database, hosting control panels, DNS, TLS configuration, server accounts, email accounts, backups and third-party integrations.

Hardening WordPress while ignoring an outdated server or compromised hosting account solves only part of the problem.

Make Logging Useful Before You Need It

Logs often become important only after something has already gone wrong.

Depending on the environment, useful logging may include authentication events, web server access and error logs, firewall events, security alerts, file changes and hosting/control-panel access.

Logging should respect privacy and retention requirements. The goal is to preserve enough relevant information to understand unusual behavior when an investigation becomes necessary.

Have a Basic Incident Response Plan

Security controls reduce risk. They do not guarantee that an incident will never occur.

Before an incident happens, it should be clear how you would identify the problem, preserve useful evidence, contain the affected system, determine what can reasonably be established, remove malicious changes,
restore trusted components, address identified weaknesses and monitor after recovery.

Security Is a Process, Not a Checklist

A checklist is useful because it creates a repeatable baseline. It becomes dangerous when completing the checklist is confused with proving that a website is secure.

A WordPress website changes over time. Plugins are updated. New functionality is added. Users change. Hosting environments evolve. New vulnerabilities are discovered.

The practical objective is not to promise that nothing can ever go wrong. It is to reduce unnecessary risk, make problems easier to detect, maintain reliable recovery options and be in a better position to respond when something does.