Web Design

Wordfence Settings That Matter: Lock Out Hackers, Not Customers

Wordfence settings should stop attacks, not customers. We design and build WordPress websites in-house. Tell us what you have in mind.

Wordfence Settings That Matter: Lock Out Hackers, Not Customers

The best Wordfence settings protect your website without getting in the way of your business. Optimise the firewall, check visitor IP detection, set sensible login limits, schedule daily scans and protect staff accounts with two-factor authentication.

At Everge, we're based in Leicestershire and design and build WordPress websites ourselves, as one team. We judge a website on the enquiries it brings in, not just how it looks. If you're planning a new website, tell us about your project.

This guide explains how to set up Wordfence using its own recommended settings, which options to leave alone and how to avoid blocking the very people your website is there to serve.

The Best Wordfence Settings at a Glance

Open Wordfence from your WordPress dashboard, select All Options and click Expand All.

For a typical business website, these are the settings worth getting right.

SettingWhere it isWhat to setWhy
Firewall StatusBasic Firewall OptionsEnabled and ProtectingBlocks malicious requests
Protection LevelBasic Firewall OptionsExtended ProtectionProtects WordPress earlier
Visitor IP detectionGeneral Wordfence OptionsVerify your IP addressPrevents incorrect blocking
Failed login attemptsBrute Force Protection20Avoids unnecessary staff lockouts
Forgotten password attemptsBrute Force Protection5Prevents password reset spam
Failure counting periodBrute Force Protection5 minutesDetects repeated attempts
Lockout durationBrute Force Protection5 or 60 minutesSlows automated attacks
Google crawlersRate LimitingUnlimited access for verified crawlersProtects search engine crawling
Security scansScan Options and SchedulingStandard, dailyIdentifies security issues
Two-factor authenticationLogin SecurityUsers with publishing permissionsProtects staff accounts
Live TrafficToolsSecurity OnlyAvoids unnecessary logging

These are sensible starting points, not a universal configuration. A busy online shop may need different settings from a business website that mainly generates enquiries.

Setting Up Wordfence: Get the Basics Right

Before diving into advanced options, make sure Wordfence understands how your website works and can tell you when something goes wrong.

Choose an Email Address You Actually Check

Use an email address that someone in your business reads. A security warning sitting unread in an old inbox isn't much help to anyone.

Check "Your IP with This Setting", Especially Behind Cloudflare

Under General Wordfence Options, find Your IP with this setting. The address shown should match your public IP address.

This matters most if your website uses Cloudflare or another reverse proxy. Wrong IP detection can make Wordfence treat unrelated visitors as though they're coming from the same address, so blocking one suspicious visitor could also block genuine customers.

Run Your First Scan

Open Wordfence → Scan and run a security scan. Wordfence recommends Standard Scan for most websites. Check that daily scan scheduling is switched on, too.

Good WordPress development considers security from the outset, rather than relying on a plugin to make up for problems elsewhere in the build.

The Wordfence Firewall: Extended Protection and Learning Mode

The firewall examines incoming requests and blocks malicious ones. Two settings decide when it starts working and whether its rules are actively protecting your website.

How to Optimise the Wordfence Firewall

Under Protection Level, you'll see one of these:

  • Basic WordPress Protection: the firewall starts working as WordPress loads.
  • Extended Protection: the firewall loads before WordPress, so it can inspect requests earlier.

Wordfence recommends Extended Protection. Open Wordfence → Firewall, click the button to optimise the firewall and follow the steps. Download any configuration file backups it offers first.

Depending on your hosting, Wordfence may change your `.htaccess` or `.user.ini` file. If you're unfamiliar with these files, ask your developer to handle it. A small mistake in a server file can cause a rather large headache.

Wordfence Learning Mode: Make the First Week Count

Wordfence Learning Mode normally runs for seven days after installation. It helps the firewall recognise normal activity on your site before it enforces its rules.

Use this week to send enquiries, upload images, edit pages and test checkout or booking features. During Learning Mode, firewall rules aren't blocking attacks, although brute force protection stays active.

Once testing is done, make sure Firewall Status reads Enabled and Protecting. Leaving Learning Mode running for ever defeats the point of the firewall.

Brute Force Protection and Wordfence Login Security

Brute force attacks are automated attempts to guess usernames and passwords, often using details stolen in earlier data breaches. Wordfence limits these attempts, but stricter isn't always better.

Lock Out After How Many Login Failures?

Under All Options → Brute Force Protection, Wordfence recommends:

  • Lock out after how many login failures: 20.
  • Lock out after how many forgot password attempts: 5.
  • Count failures over what time period: 5 minutes.

Some online guides suggest much lower login limits. Wordfence recommends 20 because genuine users can easily make five or more mistakes.

Picture your marketing manager back from holiday, forgetting their password and getting locked out before they've finished their morning coffee. Your security plugin should stop criminals, not your marketing department.

Lockout Time and Invalid Usernames

The Amount of time a user is locked out setting decides how long an IP address stays blocked. With a 5-minute lockout, Wordfence works out that an attacker gets about 2,880 guesses a day. Raising it to 60 minutes cuts that sharply, so for a business site with a handful of staff accounts we'd start there.

Immediately lock out invalid usernames is useful on sites with one or two administrators. Be more careful on online shops and membership sites, where customers mistype their details too.

Two-Factor Authentication and Passkeys

Under Wordfence → Login Security, set up two-factor authentication for administrators, editors and anyone else who can publish. A stolen password alone is then not enough to get in. Passkeys are another good option where supported.

Wordfence Rate Limiting Settings That Won't Shut the Door on Google

Rate limiting controls how often visitors and crawlers can request pages from your website. Under All Options → Rate Limiting, switch on Enable Rate Limiting and Blocking, and avoid tight limits.

Give Verified Googlebot Crawlers Unlimited Access

Select Verified Google crawlers have unlimited access to this site. Wordfence uses a reverse DNS check to confirm a crawler really belongs to Google.

Avoid giving unlimited access to anyone claiming to be Google. That's like letting someone into your office because they've printed their own staff badge.

When Wordfence limits a visitor, it returns a 503 Temporarily Unavailable response. That asks Googlebot to come back later, but blocking it again and again could still get in the way of crawling.

Why "Very Strict" Settings Backfire

Wordfence shows a "Very strict. May cause false positives" warning when limits are set to 60 or fewer requests a minute, or 30 or fewer page-not-found (404) errors a minute. Treat these as warning lines, not targets. One page visit can trigger several requests, so leave the limits alone unless you've found a specific problem.

Wordfence Email Settings and Options to Leave Alone

Too many security emails can be almost as bad as none.

What the Increased Attack Rate Email Actually Means

By default, Wordfence sends an Increased Attack Rate email when its firewall records at least 100 blocks in 10 minutes. It doesn't mean your site has been hacked. It means the firewall has been busy blocking requests.

If the emails are getting out of hand, raise Number of attacks before sending an alert under All Options → Email Alert Preferences. This changes the emails, not how the firewall blocks attacks.

Live Traffic, Wordfence Country Blocking and IP Allowlisting

  • Live Traffic: set it to Security Only so Wordfence doesn't record every ordinary visit.
  • Country blocking: a Wordfence Premium feature. Attackers can get round it with a VPN, while genuine customers abroad could lose access.
  • IP allowlist: only allowlist trusted, genuinely static IP addresses.
  • Custom firewall rules: leave these to someone who understands HTTP requests and firewalls.

There's no prize for having the most complicated security settings.

What Wordfence Can't Fix: A Strong Fence Won't Repair Weak Foundations

Imagine putting a strong fence round your premises while leaving a broken window at the back. That's what relying on Wordfence to protect a poorly built or out-of-date website looks like.

Wordfence can't rewrite vulnerable code, replace abandoned plugins or make up for admin accounts nobody uses. Page builders fall short here too: they add another heavy layer of code and usually need extra add-ons, so there's more to keep updated and more to attack.

Having lots of plugins isn't automatically a security problem. What matters is what they do, whether they're still supported and whether you need them. We explain this in our guide to how many WordPress plugins are too many. Where a business needs specific features, custom WordPress plugins can replace a pile of overlapping extensions.

Want a WordPress Website That's Secure From Day One?

Security should be part of the build, not something remembered on launch day.

Our WordPress web design and development covers bespoke themes, custom features and websites built around how your business works. Security is set up as part of the build: the firewall configured and optimised, two-factor login for everyone who can publish, the right roles for your staff and only the plugins the site needs.

We design and build everything ourselves, and you shouldn't need a developer every time you change a paragraph. We're based in Leicestershire and work with businesses across the UK. The scope and a fixed price are agreed in writing before we start.

Tell Us About Your WordPress Project

Whether your current website has become hard to manage or you're planning something new, we'd like to hear what your business needs.

Have your WordPress site built properly, or tell us about your project to start the conversation.

Share this article

Questions

Start a project
Why am I being blocked by Wordfence?

You may have gone over a login or rate limiting threshold, triggered a firewall rule or been caught by wrong IP detection. Ask whoever runs the website to check the reason for the block.

Is Wordfence free, and do I need Premium?

Yes, there's a free version with a firewall, malware scanner, brute force protection and login security. Premium adds real-time firewall rule and malware signature updates, country blocking, a real-time IP blocklist and support.

I've been locked out by Wordfence. How do I get back in?

Wait for the lockout to expire, or follow the recovery steps on the blocking page. Another administrator can unblock your IP address under Wordfence → Firewall → Blocking.

When should I switch on the firewall on a brand-new site?

Install Wordfence during development and use Learning Mode while you test the site. Once testing is done, switch to Enabled and Protecting, ideally before launch.

Should I install Wordfence?

It's a useful security plugin for many WordPress business websites. Check what your hosting already includes, and don't run two security plugins that do the same job.

Start a project

Want us to do this for you?

Tell us what you need and we'll come back with a plan and a fixed price agreed in writing before we start.

Ready to talk about your project?

Web design, SEO, PPC, Facebook ads and bespoke software from one UK team.