Lock down WordPress at the server level first, then harden user access and the application. WordPress runs about 43% of all websites, which makes it a huge target for automated attacks [source: W3Techs].
TLDR: Good WordPress security is not just about installing a plugin. A real setup uses server rules, tight file permissions, strong login controls, backups, and monitoring. For example, blocking direct access to wp-config.php and limiting login attempts can cut common bot traffic before it reaches WordPress. On a small WooCommerce site with 25,000 monthly visits, even a 2% failed login rate means 500 unwanted login attempts per month.
Start with server rules
Server rules are the first wall. They decide what visitors, bots, and scripts can touch before WordPress loads. This matters because every request that reaches PHP uses memory, CPU, and database time.
On Apache, these rules usually live in .htaccess. On Nginx, they live in the server block. The syntax is different, but the goal is the same: block bad requests early.
- Block access to wp-config.php. This file contains database credentials.
- Deny PHP execution in uploads. The uploads folder should serve media, not run code.
- Limit access to xmlrpc.php. Many brute force tools still hit it hard.
- Add security headers. Use headers like X-Frame-Options and Content-Security-Policy.
- Rate limit repeated requests. This slows down scanners and login bots.

The annoying part is that hosts do not all behave the same. One rule that works on staging may throw a 500 error on production. Expect to waste time testing small changes, then checking logs line by line.
File permissions should be boring
File permissions are not glamorous. They are also one of the easiest places to make a serious mistake. A loose permission setting may let a compromised plugin write files where it should not.
A common baseline is:
- 755 for folders
- 644 for files
- 600 or 640 for wp-config.php, if your host supports it
Never use 777 unless a trusted host gives a very specific reason. Even then, treat it as temporary. If a plugin asks for broad write access, that is a red flag.
Access controls matter more than most people think
Most WordPress breaches start with access. Weak passwords, reused passwords, old admin accounts, and abandoned contractor logins are common causes. Honestly, it feels like half of security work is cleaning up accounts nobody remembers creating.
Use these controls as a baseline:
- Use unique admin usernames. Do not use “admin” as the main account.
- Require two factor authentication. At least for admins and editors.
- Use least privilege. A writer does not need admin rights.
- Remove stale users. Audit users every month.
- Use a private password vault. A good zero knowledge password manager helps keep shared access under control.
Password rules should be strict, but not silly. Long passphrases are better than forced symbols that users write on sticky notes. Pair them with two factor authentication and alerts for new admin logins.
Protect the login page without breaking real users
The WordPress login page gets hammered. That does not always mean a skilled attacker is watching your site. Many attacks are scripts scanning thousands of domains.
Good login protection includes:
- Login attempt limits based on IP and username.
- CAPTCHA or challenge rules only after suspicious behavior.
- IP allowlisting for admin access when a team has fixed office IPs.
- New device alerts for admins.
Do not overdo it. If a normal editor needs 18 extra seconds to log in every morning, they will complain. They will also start asking for shortcuts. Security that annoys people too much gets bypassed.
Keep plugins under control
Plugins add features. They also add risk. Every plugin is code running inside your site. If it is abandoned, poorly written, or too powerful, it can become an easy entry point.
Use fewer plugins. Remove inactive ones. Update often. Before installing a security, form, backup, or page builder plugin, check recent updates, support history, and user complaints. For bigger teams, formal security compliance and audit readiness work can also help define who approves tools and how risk is tracked.
Monitoring and logs are not optional
You cannot protect what you cannot see. Logs show failed logins, file changes, blocked requests, plugin updates, and odd traffic spikes. The OWASP Top 10 also lists bad logging and monitoring as a major risk area for web apps.
At minimum, track:
- Admin logins and failed login bursts.
- File changes in theme, plugin, and core folders.
- New user creation, especially admin users.
- Plugin activation and deactivation.
- Unexpected redirects and injected scripts.
When security also includes offices, studios, or warehouses, digital controls should match physical controls. Some teams pair website alerts with camera systems or review video surveillance platforms for broader incident response.

Backups are your last clean option
A backup is not security by itself. It is recovery. Still, it may be the only clean option after malware, bad updates, or a damaged database.
Use offsite backups. Keep several restore points. Test restores on staging. A backup that has never been tested is just a hopeful file sitting somewhere.
Serious WordPress security is layered. Server rules reduce noise. Access controls stop easy account abuse. Monitoring shows trouble early. Backups give you a way back. None of this is flashy, but it works.







