How to Back Up a WordPress Site: The Complete Step-by-Step Guide
Learn how to back up a WordPress site manually and with plugins. Step-by-step guide covering UpdraftPlus, cPanel, and …
New members: get your first 7 days of Premium free! Unlock your discount now!
Securing your WordPress site doesn't require a cybersecurity degree — but it does require deliberate action. This WordPress security settings guide walks you through the most impactful configuration changes, plugin choices, and ongoing habits that keep your site safe from brute-force attacks, malware injections, and unauthorized access. Most steps are free and take under 10 minutes each.
WordPress powers over 43% of all websites on the internet (W3Techs), which makes it the single biggest target for automated hacking attempts. Attackers don't manually pick victims — they run bots that scan millions of sites simultaneously looking for outdated plugins, weak passwords, and exposed login pages. If your site is left with default settings, it's essentially an unlocked door on a busy street.
A compromised WordPress site can result in stolen customer data, Google blacklisting your domain, SEO rankings collapsing overnight, and costly cleanup bills. Prevention is dramatically cheaper than recovery. A common mistake site owners make is assuming that because their site is small or new, it isn't a target — in reality, small sites are often easier prey precisely because they're less likely to have security measures in place.
Before installing any plugins, there are several built-in WordPress settings and server-level configurations you should address immediately. These form the foundation of a secure site.
WordPress used to default to the username "admin" — and millions of sites still use it. Attackers know this and target it directly in brute-force attacks (automated attempts to guess your password). If you created your site with "admin" as your username, create a new Administrator account with a unique username, transfer all content to it, and delete the original "admin" account.
For passwords, use a minimum of 16 characters mixing uppercase, lowercase, numbers, and symbols. A password manager like Bitwarden (free) or 1Password (paid) makes this effortless. Never reuse a password across multiple sites.
Outdated software is the leading cause of WordPress hacks. When a vulnerability is discovered in a plugin or theme, the developer patches it — but only sites that update receive that protection. Sites running old versions remain exposed, sometimes for years. Enable automatic background updates for minor WordPress core releases by adding this line to your wp-config.php file: define('WP_AUTO_UPDATE_CORE', true);
For plugins and themes, review updates weekly. In your WordPress dashboard, go to Dashboard → Updates to see everything pending. A practical tip: before updating, make sure you have a recent backup (more on that below). Tools like ManageWP or MainWP let you manage updates across multiple sites from one dashboard.
An SSL certificate (Secure Sockets Layer) encrypts data transmitted between your visitor's browser and your server, preventing interception. Most hosting providers now offer free SSL certificates via Let's Encrypt. In your WordPress settings, go to Settings → General and ensure both the WordPress Address and Site Address begin with https:// rather than http://. Google also uses HTTPS as a ranking signal, so this helps your SEO as well.
Security plugins add layers of protection that WordPress doesn't include by default — things like firewall rules, login attempt limiting, and malware scanning. Here's a comparison of the most popular options:
| Plugin | Key Features | Free / Paid | Best For |
|---|---|---|---|
| Wordfence Security | Firewall, malware scanner, login security, live traffic monitor | Free + Paid ($119/yr) | Most WordPress sites — excellent all-rounder |
| Sucuri Security | Malware scanning, file integrity monitoring, post-hack cleanup | Free + Paid ($199/yr) | Sites needing a CDN-level firewall |
| iThemes Security | Two-factor auth, brute-force protection, file change detection | Free + Paid ($99/yr) | Beginners wanting guided setup |
| All-In-One Security (AIOS) | Login lockdown, CAPTCHA, database prefix change, firewall | Free + Paid ($70/yr) | Budget-conscious site owners |
For most users, the free version of Wordfence is the best starting point. After installing it, run the setup wizard, enable the Web Application Firewall (WAF), and schedule weekly malware scans. The firewall alone blocks a huge volume of automated attack traffic before it ever reaches WordPress.
The WordPress login page (/wp-login.php) is the most attacked URL on any WordPress site. Hardening it is one of the highest-impact things you can do.
By default, WordPress allows unlimited login attempts, which makes brute-force attacks trivial. Install Limit Login Attempts Reloaded (free) to automatically block IP addresses after a set number of failed attempts — typically 3 to 5. After blocking, the IP is locked out for a configurable period (20 minutes is a sensible default). This single change stops the vast majority of automated brute-force bots.
Two-factor authentication (2FA) means that even if an attacker guesses your password, they still can't log in without a second verification code — usually from an app like Google Authenticator or Authy on your phone. Wordfence, iThemes Security, and the free plugin WP 2FA all offer this feature. Enable it for all Administrator and Editor accounts at minimum.
Moving your login page from the default /wp-login.php to a custom URL (e.g., /my-secure-login) stops bots that blindly attack the default path. The free plugin WPS Hide Login handles this in under two minutes. Important caveat: save your new login URL somewhere safe before activating — if you forget it, you'll need FTP access to recover.
The wp-config.php file contains your database credentials and secret keys — it's the most sensitive file on your server. Add the following to your .htaccess file (Apache servers) to block direct HTTP access to it:
<files wp-config.php>
order allow,deny
deny from all
</files>
You can also move wp-config.php one directory level above your WordPress root — WordPress will find it automatically, but web visitors can't access it.
WordPress uses wp_ as the default prefix for all database tables (e.g., wp_users, wp_posts). SQL injection attacks often target this predictable naming convention. Changing it to something random like xk7m_ makes automated attacks less effective. Security plugins like AIOS and iThemes Security can do this for you with a single click — always back up your database first.
WordPress includes a built-in theme and plugin editor accessible from the admin dashboard. If an attacker gains admin access, they can use this editor to inject malicious code directly into your site. Disable it by adding this line to wp-config.php: define('DISALLOW_FILE_EDIT', true); This doesn't affect how your site works — it just removes a dangerous attack surface.
Backups aren't a security setting in the traditional sense, but they are your ultimate safety net. If your site is hacked, a clean backup means recovery takes hours rather than weeks. A common mistake is storing backups only on the same server as your site — if the server is compromised, so are the backups.
Use UpdraftPlus (free) to schedule automatic backups and send them to remote storage like Google Drive, Dropbox, or Amazon S3. Aim for daily backups for active sites, weekly for low-traffic ones. Before making any significant changes to your site — updating plugins, changing themes, editing code — always trigger a manual backup first.
At this point in your security setup, you might be realizing that maintaining a WordPress site — keeping content fresh, updating plugins, monitoring security, and publishing consistently — takes a significant amount of ongoing time. If you're also trying to grow your site's organic traffic through regular blog content, the workload compounds quickly.
That's exactly the problem Publisha.ai was built to solve. It's an AI content automation platform that generates keyword-targeted blog posts, schedules them in advance, and publishes directly to WordPress, Instagram, and LinkedIn — all from one dashboard. Instead of spending hours writing and formatting each post, you can keep your content calendar full while focusing on the higher-level work like security, strategy, and growth. It's a genuinely useful tool for site owners who want consistent output without hiring a full content team.
One-time configuration is a great start, but security is an ongoing practice. Here are the habits that separate well-protected sites from vulnerable ones:
Sometimes sites are compromised silently — the attacker doesn't deface the site but instead injects spam links, uses your server to send phishing emails, or mines cryptocurrency in the background. Warning signs include: Google Search Console flagging your site for malware, visitors reporting browser warnings, unexpected admin accounts appearing, or your hosting provider suspending your account.
Run a free scan using Sucuri SiteCheck (sitecheck.sucuri.net) — paste in your URL and it checks for known malware, blacklist status, and outdated software. Wordfence's malware scanner (free tier) also checks core file integrity against the official WordPress repository, flagging any files that have been modified. If you find an infection, consider hiring a professional cleanup service or using Sucuri's paid cleanup service ($199) rather than attempting it manually.
Ready to keep your site both secure and consistently publishing great content? Publisha.ai lets you automate your blog content pipeline so you can spend less time staring at a blank editor and more time on the things that actually grow your site. Give it a try if you want a steady stream of SEO-optimized posts without the manual grind.
The single most impactful change is limiting login attempts and enabling two-factor authentication on your admin account. These two steps stop the vast majority of automated brute-force attacks, which account for most WordPress compromises.
Yes, for most small to medium WordPress sites, the free version of Wordfence provides solid protection — including a Web Application Firewall, malware scanner, and login security. The paid version adds real-time threat intelligence (firewall rules updated in real time rather than 30 days delayed), which is worth it for high-traffic or e-commerce sites.
Active sites that publish content or process transactions daily should be backed up daily. Low-traffic informational sites can get by with weekly backups. Always store backups in a remote location (Google Drive, Dropbox, S3) separate from your hosting server.
It reduces automated bot traffic targeting the default /wp-login.php URL, which lowers server load and eliminates a class of unsophisticated attacks. However, it's security through obscurity — it should be used alongside, not instead of, strong passwords, 2FA, and login attempt limiting.
Some security plugins add overhead, particularly those with real-time traffic monitoring. Wordfence's firewall runs efficiently for most sites, but if you notice performance degradation, check GTmetrix or Google PageSpeed Insights before and after installation. Sucuri's firewall operates at the DNS/CDN level, meaning it actually speeds up your site while protecting it.
First, take the site offline to prevent further damage or spreading malware to visitors. Restore from a clean backup if available. If no clean backup exists, use Wordfence or hire a professional service like Sucuri to clean the infection. After cleanup, change all passwords, revoke all active sessions, and audit how the attacker got in to close that vulnerability.
No comments yet. Be the first to comment.
Leave a Reply
Your email address will not be published. Required fields are marked *