Website security is important to protect your site from potential threats. So, you must be careful when you install and setup Wordfence Security in WordPress.
In fact, Wordfence Security is one of the most popular WordPress security plugins with 5 million+ active installations. It offers a range of features, including a firewall, malware scan, and login protection, to keep your site safe and secure.
Installing and configuring Wordfence becomes way simpler if you’ve got the right guidance. We’ve tested it and are here to help you with this step-by-step guide.
So, buckle up your seat belts and get started with Wordfence now!
First, let’s get to know the Wordfence Security plugin better.
Wordfence Security is a comprehensive WordPress security plugin. It secures your website from possible hacking attempts, malware, DDoS (Distributed Denial of Service) attacks, and brute force attacks.
Till now, it has 384 million downloads and is still trusted by 5 million websites. Plus, it scores a perfect 4.7 out of 5 stars average rating by over 4K users.
Wordfence is available in both free and premium versions. The free plugin has the necessary features to protect your site. You can upgrade to a premium plan to access advanced capabilities.
So, both beginner and expert WordPress site owners can use Wordfence for their sites. Here are the free and pro Wordfence features showing how it’s one of the must-have plugins for WordPress:
Now you know the basics, so let’s dive into the installation process.
Installing Wordfence Security has the similar process like any other WordPress plugin. Here, we’ll show the steps required for its free version.
If you purchased a premium plan, then check out the guide on how to install a WordPress plugin on our blog. Now, let’s jump right into it!
First, log into your WordPress dashboard. There, navigate to the ‘Plugins > Add Plugin’ menu. Now, search for the ‘Wordfence Security’ keyword. Once you find the plugin, click the ‘Install Now’ button.
Afterward, press the ‘Activate Plugin’ button.
This installs and activates Wordfence on your WordPress website.
Now, a pop-up appears where you must click the ‘Get Your Wordfence License’ button.
This opens a different page for license registration on the Wordfence website. There, you’ll find various free and premium options. Among them, let’s get Wordfence FREE and click the ‘Get a Free License’ button.
Next, a confirmation message shows the limitations of using the free plugin. If you want basic and essential security features, then go with the free plan. Just click the ‘I’m OK waiting 30 days for protection from new threats’ option.
After that, enter your email address so that you’ll get the license key. Further, pick between ‘Yes’ and ‘No’ regarding to receive security alerts on your email.
Once you agree to the terms and conditions, hit the ‘Register’ button.
With that, open the email you got for the registration license key. There, just hit the ‘Install My License Automatically’ button.
Moving forward, your WordPress site opens up with the ‘Install Wordfence’ section. Here, there is automatic addition of your email and license key. So, all you need to do is press the ‘Install License’ button.
Once Wordfence is active on your site, click the ‘Go to Dashboard’ button.
That’s how to install Wordfence Security in WordPress. Now, move ahead to its configuration.
After the license activation, you’ll land up in the ‘Wordfence > Dashboard’ menu. There are quick options for firewall, malware scan, and other tools.
But let’s go step-by-step and learn how to setup Wordfence Security in WordPress.
Note that this guide recommends possible settings for personal or small business websites. Such sites have user interactions from contact forms and blog comments. The traffic flow on such sites are low to average (around 1K visitors per month).
Hence, such websites can face brute force attacks, spam comments, outdated software risks, and malware. Keeping that in mind, the suggested configuration settings are provided.
According to your website niche and brand, you may require a different setup of Wordfence settings. Only with that, you may be able to secure your WordPress site.
Without further delay, let’s start!
The first step involves managing the firewall. So, go to ‘Wordfence > Firewall.’ Now, press the ‘All Firewall Options’ section to access every setting in one place.
At the top, you’ll find the ‘Basic Firewall Options.’ By default, your WAF status is set to ‘Learning Mode.’ After a week, it’ll automatically enable the firewall. So, make sure the status is ‘Enabled and Protecting’ later.
Next, click the ‘Optimize the Wordfence Firewall’ button.
On the pop-up, Wordfence lets you download your current .htaccess file as a backup. So, press the ‘Download .htaccess’ button. Once the download process finishes, hit the ‘Continue’ button.
With that, Wordfence will update your .htaccess file which makes it run before WordPress. When you’re back to the firewall options page, the basic protection level will be converted to extended protection.
Following that, open the ‘Advanced Firewall Options’ tab. There, you can:
Next, open the ‘Brute Force Protection’ tab. This feature limits login attempts to protect your website by not compromising login credentials.
This security issue can occur on any website even if there’s differences in the type of content or its traffic flow. So, begin by enabling this feature and then set up these possible options (ideal for personal or small business sites):
Other than this, it’s best to tick mark all the other options in this section. This involves locking out invalid usernames and checking password strength on profile updates. Hit the ‘Save’ button so that the settings get saved.
Here’s the complete guide on how to protect WordPress from brute force attacks.
Next, let’s set up the ‘Rate Limiting’ tab. This function lets you control how often a user or crawler can make requests to your website or server in a defined period.
So, you must enable this feature and configure the given options as you want:
As mentioned before, configuration of the settings can vary based on your website.
Following that, let’s move to the ‘Allowlisted URLs’ tab. Here, the list is made when in the Learning Mode or automated false positive identified. But that’s not it.
Suppose there are URLs or parameters with their action or request identified not secure by Wordfence Firewall. But you recognize that they are false positives.
In that case, you can add them to this allowlisted list, so that they are not tested by firewall. Just you need to insert the URL, pick the Param Type, and add the Param Name. Then, click the ‘Add’ button, followed by the ‘Save Changes’ button.
This completes the setup process for WAF. Now, let’s jump into the next setting.
Moving forward, let’s navigate to ‘Wordfence > Scan.’ There, press the ‘Scan Options and Scheduling’ button.
Now, you’ll get the following scan options to configure.
Here, you can enable the scan scheduling feature. Then, pick to let Wordfence scan your website whenever required. For a manual schedule, you need a premium plan.
Further, there are 4 basic scan options. They are limited, standard, high sensitivity, and custom scan. It’s recommended to use the standard scan, but you can also go for a custom scan so that the scan occurs after a change in configuration.
In this section, you can enable and disable various scan options. For example:
Here, you can optimize scans for your server’s resources. So, you can:
Lastly, opening this section lets you fine-tune advanced abilities of scanning, like:
Don’t forget to hit the ‘Save Changes’ button. Then, press the ‘Back to Scan’ option.
Now, press the ‘Start New Scan’ button. You can find the progress of the scan, including checks completed for spam, blocklist, file changes, malware, etc.
After this process completes, Wordfence provides the results. If there’s anything that’s identified as not secure, then you can:
Next, let’s check out how to set up Wordfence tools. Navigate to ‘Wordfence > Tools’ and you’ll find these settings.
Before checking the live traffic, pick which traffic to log and ignore. You can:
Save the changes once you’ve finished editing the settings.
Below that, you can check out the IPs that are categorized to be human, bot, warning, or blocked. As we chose the ‘Security Only’ mode, the list contains login and firewall activities.
Other than the human categorized IPs, the remaining ones can possibly be bots and suspicious people attacking your site. So, you can take action by clicking the ‘View’ icon on the request.
There, you can perform multiple actions. But if you’re sure enough to block those suspicious IPs, then click the ‘Block IP’ button. With that, there won’t be any further request or activity from that blocked IP.
Add the IP or domain of a suspicious agent on your site to the text box and click ‘Look Up IP Or Domain.’ This tool shows additional information related to your input. For example, entering the IP provides hostname, contact information, etc.
This tab lets you export your website’s Wordfence options by clicking the ‘Export Wordfence Options’ button. Now, you can import them to another website.
Similarly, you can also import Wordfence options from another website. Just add the token and click the ‘Import Wordfence Options’ button.
Here, you can check out several details about your website. This even involves identifying the Wordfence version installed to your WordPress site.
In fact, you can set up some of the settings, for example, the debugging options. Once you’re done, save the changes.
Move on to ‘Wordfence > Login Security > Settings.’ Here, you can set up many aspects of security for your login page and functionality. Let’s configure them.
Before enabling 2FA, you must perform these actions:
If you need a detailed guide, then check out how to enable 2FA on WordPress.
Next, move to the configuration options for WooCommerce. Here, you can:
After that, you can turn on invisible reCAPTCHA v3 to try stopping the bots without the use of annoying puzzles. Just get and add the free Site Key and Secret from Google. Then, put a score threshold for differentiating humans and bots.
With that, a simple but effective reCAPTCHA can fail the bots silently as real users can verify themselves through the email received. You can also use it in the test mode.
Here’s a tutorial on how to add CAPTCHA in WordPress forms for free.
In this section, you can add multiple allowlisted IPs to skip 2FA or reCAPTCHA. Plus, you can enable NTP Time Sync to keep 2FA codes accurate.
In addition, it lets you show last login time or user CAPTCHA scores. And even wipe all 2FA data after plugin removal. Lastly, press the ‘Save Changes’ button.
Apart from them, you’ll find some global options in the dashboard. Go to the ‘Wordfence > Dashboard’ menu and click the ‘Global Options’ setting.
These are the various global options to work with:
After you set up these options, click the ‘Save Changes’ button.
That’s how you install and setup Wordfence Security in WordPress. Congratulations on getting a more secure website.
Check out the complete guide on how to secure a website.
Check out these FAQs if you have questions on your mind.
That’s how you install and setup Wordfence Security in WordPress!
The free plugin is easy to install and configure on your site. If you want advanced capabilities with multisite support, then buy and configure its premium version.
Got stuck? Then, comment down your confusion. Let’s secure your site together.
In addition, check out our security guides on how to prevent DDoS attacks on WordPress, eCommerce security, and update WordPress to the latest version.
Lastly, follow us on Facebook and X to get updates on our latest content.