WordPress powers over 43% of all websites on the internet. That popularity makes it the single most targeted CMS by hackers, bots, and malicious actors in the world. Every day, tens of thousands of WordPress sites are compromised — through brute force attacks, outdated plugins, stolen credentials, and known vulnerabilities.
The good news: the vast majority of WordPress hacks are entirely preventable. Most successful attacks exploit basic security gaps that take minutes to close. A properly hardened WordPress site is not an easy target — and attackers almost always move on to easier prey.
This complete checklist covers every essential WordPress security measure for 2026 — from the simplest settings changes to server-level hardening — so you can protect your site before something goes wrong.
Before the checklist, it helps to understand what attackers are actually looking for:
admin with a simple password is still common. Brute force bots scan millions of sites testing common credential combinations.This single step prevents more hacks than all others combined.
Every WordPress, plugin, and theme update that addresses a security vulnerability creates a public announcement of what that vulnerability was. Attackers immediately scan for sites still running the old version.
What to do:
define( 'WP_AUTO_UPDATE_CORE', 'minor' );
Every access point to your WordPress site needs a strong, unique password: WordPress admin account(s), hosting control panel, FTP/SFTP account, database (MySQL), and email accounts associated with the domain.
Standards for a strong password:
In WordPress: Go to Users → Your Profile → Account Management → Generate Password to create a strong password.
The default WordPress username admin is the first thing every brute force bot tries. If your account uses this username, you're giving attackers half of what they need.
How to change it:
admin user (reassign content to the new user)Alternative: Change it directly in the database via phpMyAdmin: wp_users table → find the row → edit user_login.
Two-factor authentication adds a second verification step to your login — even if an attacker gets your password, they still can't log in without the second factor.
Best plugins for WordPress 2FA:
WP 2FA (free, by Melapress):
Google Authenticator — WordPress Two Factor Authentication (free): Simple setup, reliable, supports backup codes.
A dedicated security plugin provides a security layer that monitors your site, scans for malware, and blocks threats.
Wordfence Security (free tier is excellent):
Install: Plugins → Add New → search "Wordfence" → Install → Activate → Run initial scan.
Alternatives: Sucuri Security (free) — security activity auditing, file integrity monitoring, malware scanning. iThemes Security (now Solid Security) — 30+ security measures in one plugin.
By default, WordPress allows unlimited login attempts. This enables brute force attacks where bots systematically try thousands of password combinations.
Using Wordfence: Login security is included — configure under Wordfence → Login Security.
Using Limit Login Attempts Reloaded (free, standalone):
Alternative: Use Cloudflare's rate limiting to block excessive login attempts at the CDN level before they reach WordPress.
The default WordPress login page is yourdomain.com/wp-login.php — every bot in the world knows this. Moving it to a custom URL eliminates the vast majority of automated brute force attempts.
Using WPS Hide Login (free):
/site-access or /manage-2026)/wp-login.php URL now returns a 404HTTPS encrypts data between your visitors' browsers and your server — including login credentials, form submissions, and payment information.
SSL is now a baseline requirement, not an optional extra. Google marks non-HTTPS sites as "Not Secure" in Chrome, and HTTPS is a Google ranking factor.
How to implement:
.htaccess:RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
https://wp-config.php:define( 'FORCE_SSL_ADMIN', true );
Incorrect file permissions are a common security vulnerability. Files that are too permissive allow any server user to read, write, or execute them.
Correct WordPress permissions:
| Location | Permission |
|---|---|
| WordPress root directory | 755 |
| wp-admin/ | 755 |
| wp-content/ | 755 |
| wp-includes/ | 755 |
| All PHP files | 644 |
| wp-config.php | 600 or 640 |
| .htaccess | 644 |
| uploads/ folder | 755 |
Via SSH:
find /path/to/wordpress/ -type d -exec chmod 755 {} \;
find /path/to/wordpress/ -type f -exec chmod 644 {} \;
chmod 600 /path/to/wordpress/wp-config.php
wp-config.php contains your database credentials, security keys, and other sensitive configuration. It should never be accessible via a browser.
Block direct access via .htaccess:
<files wp-config.php>
order allow,deny
deny from all
</files>
Move wp-config.php up one directory level:
WordPress automatically looks for wp-config.php one level above the web root if it's not in the root. Moving it outside the public directory makes it inaccessible via HTTP entirely. Simply move the file from public_html/wp-config.php to the parent directory — WordPress finds it automatically.
XML-RPC is a WordPress feature that allows remote connections to WordPress. It's used by mobile apps, Jetpack, and some third-party services — but it's also a common attack vector for brute force and DDoS amplification attacks.
If you don't use Jetpack or mobile posting apps, disable it:
<Files xmlrpc.php>
order deny,allow
deny from all
</Files>
Or use Disable XML-RPC (free plugin) — installs and does exactly this in one click. If you need XML-RPC (for Jetpack, etc.): Use Wordfence's XML-RPC protection to allow legitimate use while blocking abuse.
Restrict access to /wp-admin/ by adding an additional layer of HTTP authentication — a username/password prompt before WordPress's own login page even appears.
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /path/to/.htpasswd
Require valid-user
Alternative — IP whitelist: If you access wp-admin from a fixed IP address, restrict access to that IP:
<Files wp-login.php>
Order Deny,Allow
Deny from All
Allow from YOUR.IP.ADDRESS.HERE
</Files>
WordPress has a built-in theme and plugin file editor that lets you edit PHP files from the dashboard. If an attacker gains admin access, they can use this to inject malicious code directly.
Disable it permanently by adding to wp-config.php:
define( 'DISALLOW_FILE_EDIT', true );
This removes the Appearance → Theme Editor and Plugins → Plugin Editor menus entirely.
HTTP security headers instruct browsers on how to handle your site's content — preventing clickjacking, content sniffing, and cross-site scripting attacks.
Add to your .htaccess file:
# Clickjacking protection
Header always set X-Frame-Options "SAMEORIGIN"
# XSS protection
Header always set X-XSS-Protection "1; mode=block"
# Prevent MIME sniffing
Header always set X-Content-Type-Options "nosniff"
# Referrer Policy
Header always set Referrer-Policy "strict-origin-when-cross-origin"
# Permissions Policy
Header always set Permissions-Policy "geolocation=(), microphone=(), camera=()"
Test your security headers at securityheaders.com after adding.
Backups are your ultimate security safety net. When — not if — something goes wrong, a recent backup is the difference between a 10-minute restore and a catastrophic data loss.
UpdraftPlus (free):
Key backup rules:
Security without monitoring is just hope. Set up active monitoring so you know immediately when something goes wrong.
| Security Measure | Priority | Effort |
|---|---|---|
| Keep everything updated | Critical | Low |
| Strong unique passwords + password manager | Critical | Low |
| Change admin username | Critical | Low |
| Enable 2FA | Critical | Low |
| Install security plugin (Wordfence) | Critical | Low |
| Limit login attempts | High | Low |
| Enable SSL/HTTPS | Critical | Low |
| Change login URL | High | Low |
| Correct file permissions | High | Medium |
| Protect wp-config.php | High | Low |
| Disable XML-RPC | Medium | Low |
| Disable file editing | Medium | Low |
| Security headers | Medium | Medium |
| Automatic backups | Critical | Low |
| Site monitoring | High | Low |
WordPress security is not a one-time setup — it's an ongoing practice. Work through this checklist today to close the most common attack vectors. Then establish a routine: weekly updates, monthly backup verification, quarterly security scans and plugin audits.
The goal is not to make your site unhackable — that's not realistic. The goal is to make it significantly harder to compromise than the average unprotected WordPress site. Since most attackers are automated and opportunistic, a properly hardened site is rarely targeted twice.
Our WordPress security team can audit your site, implement every measure in this checklist, and set up ongoing monitoring — so you can focus on running your business instead of worrying about security.
Contact us today