WordPress Security Basics: The First 10 Things to Lock Down
Your WordPress site is live, the theme looks right, and the first posts are up — exactly when most new site owners stop thinking about security, and exactly when they should start.
Here is the uncomfortable truth about WordPress security basics: nobody needs to pick your site out of a crowd to hack it — bots scan the whole internet, knocking on every WordPress login page they can find. Your site does not need to be famous to be a target.
The good news? These WordPress security basics are not hard, they are mostly free, and an afternoon on them puts you ahead of most of the internet. This guide walks through the first 10 things to lock down, in the order that matters most — using a real site as the worked example: this very site, magzinetechnology.com, a new WordPress blog on Kadence and Hostinger. Where something is already done here, I will say so. Where it is not, I will say that too.
Why Do WordPress Security Basics Matter for a Small Site?
Because the numbers are not on the side of “it won’t happen to me.”
Around 91% of new WordPress vulnerabilities reported in 2025 were in plugins, about 9% in themes — and only a handful in WordPress core itself. That is the single most important fact in these WordPress security basics, because it tells you where the risk actually lives: not in WordPress itself, but in the extra code you bolt on to it. More than 11,000 new vulnerabilities were logged across the WordPress ecosystem in 2025, and the median time from disclosure to mass exploitation was roughly five hours. Five hours — that is why “I’ll update it next week” is not a plan.
Small sites get hit for the same reason small shops get robbed: the door was open. A hacked site rarely gets defaced any more — more often it quietly sends spam, redirects visitors to scam pages, or mines cryptocurrency in the background while you wonder why your traffic fell off a cliff. Google can also flag it in search results.
So the WordPress security basics in this guide are not paranoia — the same ten things every security checklist agrees on, stripped down to what a new site owner can actually do in an afternoon.
1. Update Everything — and Do It Promptly
Updating promptly is the first of the WordPress security basics because it matters most. Update WordPress core, your plugins, and your themes as soon as updates appear, and delete the ones you do not use.
Check Dashboard, then Updates, weekly at minimum. Minor core releases install themselves by default, and major ones are worth doing the same day they appear. The latest core release, WordPress 7.1.4, arrived on 28 October 2026 as a security release, and one flaw it fixed landed in CISA’s Known Exploited Vulnerabilities catalogue days later — attackers were already using it. That is the pattern: security fixes are public, and the window between a fix being published and bots exploiting unpatched sites is measured in hours, not weeks. On this site right now, the point is live: one plugin update is waiting — Kadence Blocks PRO, 2.9.0 to 2.9.1 — and Site Health flags it as critical. WordPress itself is up to date at 7.1.4, the latest release.
Plugins are where the real exposure sits, so treat their updates with the same urgency — and prune ruthlessly, because every plugin you keep is code you are trusting with your site. On this site the same clean-up already happened with themes: all four unused themes were deleted, leaving only Kadence and the default Twenty Twenty-Five. If you have not used a plugin in three months, delete it — don’t just deactivate it, because deactivated code can still be exploited.
One rule for updates: back up before a major update, and update one thing at a time so you know what broke. That is step 5’s job.
2. Use Strong, Unique Passwords — and Ditch the “Admin” Username
A strong password is the cheapest of the WordPress security basics, and the most skipped. Use at least 16 characters, generated by a password manager, unique to your WordPress login — never reused from your email, your hosting account, or anywhere else. If your password is a word with a number on the end, a bot will guess it; a random string in a password manager, it will not.
Just as important: your username. Never use “admin” — it is the first username every bot tries, and it hands attackers half of your login for free. On this site there is no user called “admin”, so that part is already right. Use a username that is not your display name, your domain name, or guessable from your site.
Keep roles tight: give every user the lowest role that lets them do their job — an author who writes posts does not need to be an administrator. Review your user list every few months. On this site, that means two administrators and one editor, and one of those admins has never published a post — if nobody needs that account, remove it or drop it to a lower role. An old account with admin rights that nobody uses is a door nobody is watching.
3. Turn On Two-Factor Authentication for Every Admin
Here is the single most effective of the WordPress security basics. Two-factor authentication (2FA) means that even if someone steals your password, they still cannot get in without a code from your phone. Passwords leak constantly — in breaches, in phishing emails, in reused credentials. A second factor makes almost all of that useless.
WordPress core does not ship with 2FA, which surprises a lot of new site owners — you need a plugin. The most-cited free options are Two Factor, maintained by WordPress.org contributors, which supports authenticator-app codes, emailed codes, and backup codes; WP 2FA; or Wordfence Login Security, if you go with Wordfence. Use an authenticator app — it beats SMS codes, which can be intercepted.
Set it up for every administrator and editor, not just yourself. One admin without 2FA is a hole in the fence exactly as wide as an admin account. On this site, two-factor authentication is not switched on yet — no 2FA plugin is installed at all. That makes this the first job after this guide: install Two Factor, switch it on for both administrators, and save the backup codes.
4. Limit Login Attempts
WordPress core does not limit login attempts either. Out of the box, a bot can try passwords against your login page all day, forever. That is why this step exists.
Limiting logins is one of the WordPress security basics that costs nothing: install Limit Login Attempts Reloaded, or use the login protection built into a security plugin like Wordfence or Solid Security. A sensible setting is five failed attempts, then a 30-minute lockout — enough room for a real person who mistyped twice, and it turns a bot’s thousand-guesses-a-minute attack into a handful of guesses an hour.
The best place to stop brute-force attacks is before they reach WordPress — rate-limiting wp-login.php at the server or firewall — and many hosts and CDNs offer this. On shared hosting, a plugin is the practical answer. Hiding your login URL with a plugin like WPS Hide Login also cuts bot noise, but be honest about what it is: obscurity, not security. A fine extra, never a substitute for 2FA and login limiting. On this site, nothing limits login attempts today: WordPress core doesn’t do it, and no plugin is installed that does. That changes with step 7’s security plugin, or with Limit Login Attempts Reloaded on its own.
5. Back Up Automatically — Off-Site — and Test the Restore
Everything in this guide is about preventing a bad day. Backups are the WordPress security basics safety net — they are about surviving one anyway.
Set up automated backups of files and database, stored somewhere other than your hosting account. If your host is compromised or your account suspended, a backup on the same server is not a backup. Daily backups for a busy site; weekly at the very least for a small one. And the part almost everyone skips: test a restore at least once. A backup you have never restored is a guess, not a safety net — restore it to a staging copy and confirm the site actually comes back.
On this site, backups run through UpdraftPlus: files and database daily, with 65 backups stored and the most recent from yesterday. That is the good news. The gap is where they live — no off-site storage is configured, so every copy sits on the same server as the site, and the last full backup is from 4 September. The fix is one UpdraftPlus setting: send copies to Google Drive or Dropbox automatically. And test a restore — none is recorded for this site, so that is a job to do, not a box to assume is ticked. For the full step-by-step version of this section, see our WordPress backups with UpdraftPlus guide.
Do this step before changing security settings, not after. Every setting here is reversible, but only if you can get back to where you started.
6. Force HTTPS Everywhere
If your site still loads over plain http, fix that before anything else in these WordPress security basics. HTTPS encrypts the connection between your visitors and your site, so passwords and login sessions cannot be snatched on public Wi-Fi — and browsers now flag http pages as “Not Secure”, so this one is not optional any more.
This step is already done on magzinetechnology.com: the site address was switched from http to https. On a new site, most hosts — Hostinger included — offer a free Let’s Encrypt certificate to enable in one click, then switch your WordPress and Site Addresses to https under Settings, then General.
One extra for the thorough: add FORCE_SSL_ADMIN to wp-config.php so admin sessions are always encrypted. If a page still loads mixed content — an http image on an https page — your browser’s padlock will warn you, and the fix is usually one image URL.
7. Install One Reputable Security Plugin
You do not need five security plugins. One good one, configured properly, covers several WordPress security basics at once — running two firewalls or scanners together causes conflicts, false alarms, and slowdowns, so pick one and commit to it.
The three names in every 2026 roundup are Wordfence, Sucuri, and Solid Security, and they suit different sites:
| Plugin | Best for | Free tier catch |
|---|---|---|
| Wordfence | Most new sites — firewall plus malware scanner in one | Threat-intelligence updates lag 30 days behind the paid tier |
| Sucuri | Sites worried about DDoS — its firewall sits in front of your site, at DNS level | The free plugin is a scanner only; the firewall is paid |
| Solid Security | Owners who want a guided hardening checklist | Some advanced features are paid |
For a new blog, Wordfence’s free tier is the usual default — and the pick for this site, where no security plugin is installed at all. Install it, run its first scan, and let its firewall learn your normal traffic for a week before its stricter rules go on. Whichever you choose, open its dashboard once a week. A security plugin you never look at is a smoke alarm with the batteries out.
8. Harden wp-config.php and File Permissions
wp-config.php is the most sensitive file on your site — it holds your database password — and a few small changes make it much harder to exploit.
First, disable the built-in file editors. Add define( ‘DISALLOW_FILE_EDIT’, true ); to wp-config.php, and the Appearance and Plugins editors disappear from the dashboard. That matters because the dashboard editor turns any compromised admin session into code execution — an attacker who gets in can edit theme files directly. With the editor off, they cannot. On this site, the file editor is still switched on — the Theme File Editor opens and offers to edit theme files, and no DISALLOW_FILE_EDIT setting exists. Adding that one line to wp-config.php is a five-minute job.
Second, check file permissions: wp-config.php should be 600 or 640, directories 755, and files 644 — check them in your host’s file manager. If your site still loads after tightening wp-config.php to 600, the setting works; if it breaks, 640 is the fallback. Hosts differ, so test rather than assume.
Third, regenerate your security salts after any security incident: visit api.wordpress.org/secret-key/1.1/salt/, copy the fresh block, and paste it over the old salts in wp-config.php. Everyone gets logged out — that is the point.
Back up wp-config.php and .htaccess before editing either: a typo in wp-config.php gives you a white screen until it is undone, and you want the original one click away.
9. Switch Off What You Don’t Use
Every feature you leave switched on is a door you have to defend, so switching off what you don’t use is one of the quieter WordPress security basics. WordPress ships with a few you probably do not need.
XML-RPC is the big one: an old remote-publishing protocol WordPress keeps enabled by default, and a favourite target for brute-force attacks because it lets bots try hundreds of passwords in a single request. If you do not use the WordPress mobile app or Jetpack, turn XML-RPC off — a security plugin can do it in one toggle. If you do use Jetpack, it needs XML-RPC, so leave it on and lean on steps 3 and 4 instead.
Also disable directory listing so visitors cannot browse your folders, and block PHP execution inside the uploads folder — uploads should be images and documents, never code that runs. Both are one-line additions to .htaccess, worth doing before the uploads folder fills up. On this site, Jetpack is not installed and nothing disables XML-RPC — so switching it off is a real, available win here, one toggle in a security plugin.
10. Scan Regularly and Watch Your Users
Security is not a job you finish; it is a habit you keep. This last of the WordPress security basics is the one that makes the other nine keep working.
Run a malware and file-change scan weekly — your security plugin does this, and it emails you when a file changes unexpectedly. Check your users and roles every quarter and remove accounts nobody uses. And watch advisories for the plugins you actually have installed: WPScan and Patchstack publish vulnerability lists, and Wordfence’s blog flags the serious ones the same day. You don’t need to read all of it — just know within a day when something you run is affected.
Finally, check Site Health once a month under Tools, then Site Health — it flags missing PHP modules, outdated versions, and configuration gaps a scan cannot see. On this site, Site Health currently shows 1 critical issue, 2 recommended improvements and 25 passed tests. The critical one is that Kadence Blocks PRO update waiting — the two-minute fix from step 1 — and the two recommended improvements are host-level jobs, the PHP imagick module and a persistent object cache, for the host’s support team, not a plugin.
The Don’t-Break-Your-Site Method
The ten steps above are simple individually; the way people get into trouble is doing all of them at once. So here is the method from our LiteSpeed Cache guide, applied to security: change one thing at a time, then test.
Back up first. Make one change. Open the site in a private window and check the homepage, one post, and the login page — then log in and confirm you can still get in. 2FA and login limiting can lock out their own owner if misconfigured, so test them while you are calm, not at midnight before a deadline. Only then make the next change. If something breaks, you know which switch did it.
That discipline is what turns the WordPress security basics from a list into a habit — and it is the difference between a secure site and a broken afternoon.
Frequently Asked Questions
Do I really need a security plugin if my site is small?
Yes — small sites are the most common targets, precisely because their owners assume nobody cares. Bots do not check your traffic before attacking, and one free plugin, configured once, covers the WordPress security basics that matter most.
Will two-factor authentication lock me out?
Only if you skip the backup codes. Save them in your password manager when you set up 2FA, and a lost phone is an inconvenience, not a lockout.
Is changing my login URL enough on its own?
No. It cuts bot noise, which is genuinely useful, but it is obscurity, not security — anyone who finds the real URL faces the same login page. Treat it as an extra, on top of 2FA and login limiting, never instead of them.
Should I turn on auto-updates for everything?
Minor WordPress core releases, yes — they install themselves by default and are almost always security fixes. For plugins and major releases, check weekly and back up before updating; auto-updates can occasionally break a plugin, so a manual weekly check with a backup in place is the safer habit.
What do I do first if my site is already hacked?
Do not panic, and do not just change your password. Take the site offline, restore from a clean backup, change every password, regenerate your salts, then run a full malware scan. If the hack keeps coming back, an outdated plugin is usually the cause — find it and remove it.
WordPress security basics are not a product you buy or a single setting you flip. They are ten small habits — updates, strong passwords, two-factor authentication, login limits, backups, HTTPS, one good security plugin, a hardened config file, fewer open doors, and regular checks — that together make your site a bad target. Bots move on to easier prey.
Start with step 1 today. By step 5 you will have a backup, and by step 10 a site you can stop worrying about — and get back to writing.
Once the site is locked down, set up the front page with our Kadence theme homepage setup guide.
Once the site is locked down, read our Rank Math SEO guide to get your posts to 86-plus on the free plan — the next step after security.






