How to Secure Your WordPress Site: Complete Security Checklist

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.

43% of websites = #1 Target for Hackers

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.

Why WordPress Sites Get Hacked

Before the checklist, it helps to understand what attackers are actually looking for:

  • Outdated software — WordPress core, plugins, and themes with known vulnerabilities are the #1 attack vector. Exploit databases list publicly known vulnerabilities with instructions for how to use them.
  • Weak passwords and usernames — The username admin with a simple password is still common. Brute force bots scan millions of sites testing common credential combinations.
  • Nulled (pirated) themes and plugins — Free downloads of premium plugins from unofficial sources almost always contain malware pre-installed.
  • Inactive plugins and themes — Even deactivated plugins with vulnerabilities can be exploited. Dormant code is still present on your server.
  • Insecure hosting — Shared hosting where one compromised neighbour account can access others, or hosts without server-level security features.
  • No monitoring — Sites that aren't monitored can be compromised for months before the owner notices — long enough for attackers to plant backdoors, send spam, or steal data.
01
Keep WordPress Core, Plugins, and Themes Updated

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:

  • Go to Dashboard → Updates weekly and apply all available updates
  • Enable automatic minor WordPress updates (security patches):
PHP — wp-config.php
define( 'WP_AUTO_UPDATE_CORE', 'minor' );
  • Use a staging environment to test major updates before applying to live
  • Delete — not just deactivate — plugins and themes you don't use
02
Use Strong, Unique Passwords for Everything

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:

  • Minimum 16 characters
  • Mix of uppercase, lowercase, numbers, and symbols
  • Never reused from another account
  • Never based on dictionary words or personal information
Pro Tip: Use a password manager (Bitwarden is excellent and free, 1Password is premium) to generate and store strong unique passwords for every account.

In WordPress: Go to Users → Your Profile → Account Management → Generate Password to create a strong password.

03
Change the Default Admin Username

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:

  1. Create a new admin user with a unique username
  2. Log in with the new user
  3. Delete the old 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.

04
Enable Two-Factor Authentication (2FA)

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):

  1. Install and activate WP 2FA
  2. Follow the setup wizard
  3. Configure 2FA as required for administrator accounts
  4. Choose between authenticator app (Google Authenticator, Authy) or email OTP

Google Authenticator — WordPress Two Factor Authentication (free): Simple setup, reliable, supports backup codes.

Important: Enable 2FA for at minimum your administrator accounts. For sites where multiple users log in (membership sites, WooCommerce, etc.), enable it for all user roles.
05
Install a WordPress Security Plugin

A dedicated security plugin provides a security layer that monitors your site, scans for malware, and blocks threats.

Wordfence Security (free tier is excellent):

  • Real-time malware scanner
  • Firewall that blocks known attack patterns
  • Brute force protection
  • Login security features
  • File integrity monitoring
  • Live traffic monitoring

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.

Pro Tip: Pick one security plugin — don't install multiple security plugins simultaneously as they conflict.
06
Limit Login Attempts

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):

  1. Install and activate
  2. Go to Settings → Limit Login Attempts
  3. Set: 3–5 allowed retries
  4. Lockout duration: 20–30 minutes
  5. After X lockouts: 24-hour ban

Alternative: Use Cloudflare's rate limiting to block excessive login attempts at the CDN level before they reach WordPress.

07
Change Your WordPress Login URL

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):

  1. Install and activate WPS Hide Login
  2. Go to Settings → General → scroll to WPS Hide Login
  3. Change the login URL to something non-obvious (e.g., /site-access or /manage-2026)
  4. Save — the old /wp-login.php URL now returns a 404
Important: Note your new login URL carefully — if you forget it, you'll need to deactivate the plugin via FTP to regain access.
08
Implement SSL/HTTPS

HTTPS 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:

  1. Get a free SSL certificate via Let's Encrypt (available through most hosting control panels)
  2. In cPanel: go to SSL/TLS → Let's Encrypt
  3. Force all traffic to HTTPS by adding to .htaccess:
Apache — .htaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  1. In WordPress: go to Settings → General and update both URLs to https://
  2. Add to wp-config.php:
PHP — wp-config.php
define( 'FORCE_SSL_ADMIN', true );
09
Set Correct File Permissions

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 directory755
wp-admin/755
wp-content/755
wp-includes/755
All PHP files644
wp-config.php600 or 640
.htaccess644
uploads/ folder755

Via SSH:

Bash
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
⚠️ Critical: Never set any file or folder to 777 — this gives write access to everyone on the server and is a critical security vulnerability.
10
Protect 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:

Apache — .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.

Advanced Server Hardening

✅ 11. Disable XML-RPC (If Not Needed)

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:

Apache — .htaccess
<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.

✅ 12. Protect the wp-admin Directory

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.

Apache — wp-admin/.htaccess
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:

Apache — .htaccess
<Files wp-login.php>
Order Deny,Allow
Deny from All
Allow from YOUR.IP.ADDRESS.HERE
</Files>

✅ 13. Disable File Editing in WordPress Dashboard

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:

PHP — wp-config.php
define( 'DISALLOW_FILE_EDIT', true );

This removes the Appearance → Theme Editor and Plugins → Plugin Editor menus entirely.

✅ 14. Add Security Headers

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:

Apache — .htaccess
# 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.

15
Set Up Automatic Backups

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):

  1. Install and activate UpdraftPlus
  2. Go to Settings → UpdraftPlus Backups
  3. Set schedule: Daily database backup, weekly full backup
  4. Set remote storage: Google Drive, Dropbox, or S3
  5. Run a manual backup immediately and verify it restores correctly

Key backup rules:

  • Store backups off-site (not just on your hosting server)
  • Test restore at least quarterly — a backup you've never tested is a backup you don't trust
  • Keep at least 30 days of backup history
16
Monitor Your Site for Threats

Security without monitoring is just hope. Set up active monitoring so you know immediately when something goes wrong.

  • Uptime monitoring: UptimeRobot (free) checks your site every 5 minutes and emails you if it goes down — which can signal a hack or server compromise.
  • Security scan scheduling: Configure your security plugin (Wordfence/Sucuri) to run automated scans daily and email you the results.
  • Activity log: Install WP Activity Log (free) to record every admin action — plugin installs, user changes, file modifications — so you have an audit trail if something goes wrong.
  • Google Search Console: Check the Security Issues report in Search Console regularly — Google will alert you if it detects malware or hacked content on your site.

WordPress Security Quick Reference

Security Measure Priority Effort
Keep everything updatedCriticalLow
Strong unique passwords + password managerCriticalLow
Change admin usernameCriticalLow
Enable 2FACriticalLow
Install security plugin (Wordfence)CriticalLow
Limit login attemptsHighLow
Enable SSL/HTTPSCriticalLow
Change login URLHighLow
Correct file permissionsHighMedium
Protect wp-config.phpHighLow
Disable XML-RPCMediumLow
Disable file editingMediumLow
Security headersMediumMedium
Automatic backupsCriticalLow
Site monitoringHighLow

Frequently Asked Questions

Q: How do I know if my WordPress site has already been hacked?
A: Signs include: unexpected admin users, unfamiliar files on your server, Google showing "This site may be hacked" in search results, your hosting provider suspending your account for spam, visitors being redirected to other sites, or your security plugin detecting malware. Run a full Wordfence scan immediately if you suspect compromise.
Q: Is the free version of Wordfence enough for most WordPress sites?
A: Yes — Wordfence's free tier includes real-time malware scanning, a firewall, brute force protection, and file integrity monitoring. The premium version adds real-time threat intelligence feed updates (free version gets them 30 days delayed). For most small to medium sites, the free version is excellent.
Q: How often should I update WordPress plugins?
A: Check for updates at minimum weekly. For security-critical sites or sites with high traffic and revenue dependency, enable automatic plugin updates for trusted, well-maintained plugins and check manually for others.
Q: Will these security measures slow my WordPress site?
A: Minimally. Most measures (2FA, changed login URL, wp-config protection, file permissions) have zero performance impact. A security plugin like Wordfence adds a small overhead but its firewall actually reduces server load by blocking malicious requests before they reach WordPress.

Final Thoughts

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
Views: 99