Must-Use WordPress Security Plugin – Wordfence

Wordfence LogoWordfence is my favorite single WordPress Security Plugin.  Wordfence acts as a Firewall, malware scanner, login security & more.  It is a freemium Plugin meaning that you can use it absolutely free, but if you’d like to add some of the additional features, you can upgrade to the Premium Version.

Do keep in mind that if you are a premium WordPress managed service like WPEngine, they don’t allow this particular Plugin as it conflicts with some of the security software that they already have running on their servers.  Most hosting accounts don’t have that problem however.

LET’S GET STARTED

WordPress Security Plugin Wordfence - set-up

After activating the Plugin, you’ll get a pop-up modal.  Add your email and join the security list.  Feel free to take a minute going through the tour.

Let’s Configure Our Options

In your WordPress Admin area, navigate to WORDFENCE > OPTIONS.

  1. Wordfence is one of the few plugins I actually prefer to have update on it’s own, so it’s a good idea to check that box.
  2. Next, ensure that your email where you would like to get notified is there.  You can add additional emails separated by commas if needed.

Wordfence Set-up - 02

Alerts

I typically will only leave “Alert on critical problems” checked so as not to get too many emails.  This notifies you when there are any updates that need to be managed or if it finds any files that don’t appear correct.  If you need to know when certain users login to the site, you can leave those on, however I find that in most cases, I’d rather let an alternate program handle who’s logging-in and doing what.  I like Activity Log for this.
The only other alert I generally leave is to be notified in the event that there is a large increase in site attacks so that I can see who’s attempting it and what they are attempting.
WordPress Security Plugin Wordfence Set-up 03

Configuring What Wordfence Scans

I tend to have everything checked here.  Doesn’t hurt to have it scan Themes & Plugins for version changes and even look for potential malicious files outside of the WordPress directories.   The only thing I’ll generally disable is “Enable HIGH SENSITIVITY scanning.”  Like it says, it may give false positives and it does a good enough job without I feel.

WordPress Security Plugin Wordfence Set-up 04

Rate Limiting Rules

These are standard settings for a lot of my set-ups depending on a particular site and server resources where I might choose to lower the numbers depending on server resources.  The one I really nail is “If 404s for known vulnerable URLs exceed”.  I feel that if something requesting a known vulnerable URL, then they are up to no good and I’m happy to block them right then and there.  Finally, I’ll have 1 month set for “How long is an IP address blocked when it breaks a rule” as it’s the longest setting available.

Wordfence Set-up 05

Login Security Options

There are a few user names that a lot of bots tend to try, so by default, I’ll add the following few.

  • admin
  • adm1n
  • administrator
  • root

In addition, many bots attempt the site name, so I’ll generally add that as well.  So for this website, I’ll add “wpdoityourself” as a user name to immediately block if someone attempts it.

Depending on how active your site is and if users are allowed to have accounts on your site will determine the number of login failures.  If it’s for a site that only I will be logging into, I’ll set the number all the way down to 1 since I use LastPass to manage my passwords and I also have my IP whitelisted, so even in the event I did get it wrong, Wordfence won’t count it against me at that IP.  For sites that have other users, I’ll be more lienient on how many failed attempts they can have.  Usually 8 failed attempts within 6 hours will get the person or bot blocked for 60 days.

WordPress Security Plugin Wordfence Set-up 08

Other Options

Under Other Options, I always add my IP to the Whitelisted IP fields.  Replace your actual IP with the 123.123.123.123 fields below.  If you don’t know your IP, you can Google simply “IP” and it will tell you the IP of the computer you made the request from or just click here.

Here’s where I tend to get really aggressive.  In the field labeled Immediately block IPs that access these URLs”, I have a whole bunch of paths that I’ve been watching hackers attempt to test over the years.  My personal one can be a little too aggressive for a standard list to share since I specifically block some Plugin and Theme URL’s that I know I never use.  However if you were to use any of those, you could inadvertently block out nearly everyone coming to your site.  A lesser version of my standard file will available below.

Wordfence Set-up 07

Other Options – Continued

Only a few things get changed here.   Make sure the following get checked.

  1. Hide WordPress version
  2. Block IPs who send POST requests with blank User-Agent and Referer
  3. Disable Code Execution for Uploads directory

WordPress Security Plugin Wordfence Set-up 06

Immediately block IPs that access these URLs:

Here’s the condensed version of what I use. I removed all of the Theme and Plugin specific ones to make it more site-friendly. Do use at your own risk, however it should be safe for most sites.


/*cash-advance*/,/*CHANGELOG.txt,/*/*omment.asp,/*uest*ook/*uest_*rite.asp,/*/setup-config.php,/*ogin.asp*,/*fckeditor/*,/*FCKeditor/*,/Admin/Admin_Login.asp,/admin/admin_login.asp,/admin/AdminChkLogin.asp,/admin/adminlogin.asp,/admin/editor/Upload.asp,/admin/ewebeditor/Upload.asp,/admin/forgetPassword.aspx,/admin/Southidceditor/Upload.asp,/bbs/login.aspx,/ChkLogin.asp,/cgi/common.cgi,/contact.asp*,/custom_rapista/upload.php,/default.aspx,/edit/Upload.asp,/ewebeditor/Upload.asp,/execution.aspx,/forum/login.aspx,/img/upload.asp,/main.*sp*,/main.php,/manage/*editor/Upload.asp,/manage/Southidceditor/Upload.asp,/member/index.aspx,/member/login.asp,/newadd.asp,/reply.asp,/shoppingcart.aspx,/stssys.htm,/system/editor/Upload.asp,/system/ewebeditor/Upload.asp,/system/forgetPassword.aspx,/system/Southidceditor/Upload.asp,/U/xyurlcom_login.asp,/ulogin.asp,/upload.asp,/UserLogin.asp,/user/default.asp,/user/userlogin.asp,/vosnet/*.aspx,/backup.rar,/backup.7z,/admin.php,/administrator.php,/admin/config.php,/administrator/administrator.php,/blog/wp-login.php,/blogs.php,/cache.php,/code.php,/configuration.php*,/configbak.php,/.cpanel_config.php,/css.php,/db.php,/defines.php,/diff.php,/dirs.php,/dump.php,/elements.php,/error.php,/error_log.php,/files.php,/forum.php,/global.php,/html5uploader/upload.php,/js/tiny_mce/plugins/ajaxfilemanager/inc/interface.php,/license.php,/lib.php,/logging.php,/login.php,/manager/add_entry.php,/media-parse-new.php,/member.php,/member/*login.php,/member/manage_blog.php,/modules/modules/modules.php,/myadmin/scripts/setup.php,/php_mediagallery/admin/upload.php,/php_ygallery/*.php,/phpMyAdmin,/phpMyAdmin/scripts/setup.php,/plugin.php,/plugin-change.php,/pma/scripts/setup.php,/portal.php,/privacy.php,/setup.php,/shell.php,/shell1.php,/sql.php,/sql_dump.php,/stats.php,/system.php,/testproxy.php,/tiny_mce/plugins/tinybrowser/upload.php,/tmp/setup.php,/tmp/sfx.php,/user.php,/users/login.php,/wp-admin/wp-manage.php,/wp-adminlogin.php,/wp-checking.php,/wp-logs.php,/wp-robots.php,/wp-config.php.*,/wp-config.php~,/wp-content/force-download.php?file=../wp-config.php,/wp-content/plugins/*wp-config.php*,/wp-content/themes/*/download*?*/wp-config.php,/wp-update.php,/xml1-wp2.php,/xmlrpc.php,/a2billing/,/account/login,/account/submit/add-blog/,/admin/handle/login.ashx,/administrator/manifests/libraries/joomla.xml,/assets/global/plugins/jquery-file-upload/server/php/,/bbs/newtopic.htm,/blogs/my_page/add/,/cheapest-viagra-price/,/cialis-drug-prescription/,/CFIDE/administrator/,/cfjx/,/component/users/?view=registration,/consultants/login/,/contaeect/,/downloader,/downloader/,/fcgi-php/php,/.git/HEAD,/generic-cialis-soft-comparison/,/gsbook/,/htaccess.txt,/hydl.jsp,/index.php/account/checkNamePwd,/index.php//login,/invoker/JMXInvokerServlet,/jenkins/script,/jmx-console,/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss.system:type=ServerInfo,/login.do,/login.jhtml,/login_check,/login/handle/login_handler.jsp,/login/sign_in.jsp,/login/submit.jhtml,/logining.do,/manager/html,/member/login.jsp,/merchhandler.do,/mLogin.do,/muieblackcat,/my_blogs,/mysql,/mysql/scripts/setup.php,/mysql*umper,/MySQLDumper,/nocache/login/,/outp/login.jsp,/passport-login.html,/php/php,/php/php*cgi,/php/php*,/phppath/cgi_wrapper,/phppath/php*,/readme.html,/rx-viagra-*/,/shopping/index.jhtml,/sql,/square/integralsquare.shtml,/user/ajaxForm,/user/login.do,/userLogin,/vip/login.html,/web-console/ServerInfo.jsp,/www.tar*,/www.zip,/xampp/cgi.cgi,/zxly.jsp,/cgi.cgi,/cgi-bin/php*,/cgi-bin/rss.cgi,/cgi-bin/test.cgi,/cgi-bin/test-cgi,/cgi-bin/up.cgi,/cgi-bin/wrapper,/administrator*,/blog/wp-admin/,/old/wp-admin/,/shop/admin,/store/admin*,/store/administrator,/test/wp-admin/,/wordpress/,/wordpress/wp-admin/,/wordpress/wp-login.php,/wp/,/wp/wp-admin/,/wp/wp-login.php,/?author=1,/adodb.class.php,/wp-admin/*/adodb.class.php,/wp-content/languages/adodb.class.php,/wp-content/plugins/adodb.class.php,/wp-content/uploads/adodb.class.php,/wp-includes/*adodb.class.php,/wp-content/b374k-2.8.php,,/wp-content/uploads/2015/*/new_up.php,/wp-content/uploads/2016/*/new_up.php,/wp-content/uploads/wpallimport/uploads/,/wp-content/uploads/wysija/themes/sketchys/sket.php,/wp-content/wso2.php,/wp-includes/upgrade/theme-compat/popup-pomo.php,/wp-options.php
, , ,
Previous Post
WordPress Child Theme Basics – Why They Should Always Be Used
Next Post
Customize Your WordPress Admin Area

Related Posts

2 Comments. Leave new

  • The plugin will secure WordPress for sure but will it block bots from attacking the Login System? I have heard of a Plugin which changes the login url to Blog’s backend and only the owner of blog knows about the url and able to access it. Also suggested is to install a plugin to control Blog Comment spam as when website becomes popular it get spam bot also which needs to be managed from Day 1.

    • Hi wqpasekw. Unfortunately, that’s one thing it doesn’t do. There are different ways to handle this depending on your site’s specific needs however. If only yourself or a small number of people should ever access the login page, you can block all IP’s to the login page and only allow the specific ones you want to allow through. This method isn’t very scalable though, so if you do want to allow visitors access to your login page, but just want to keep it from being an easy attack page, you can change the URL to the login page. You can use a Plugin like Custom Login URL, however it hasn’t been updated in a year. That doesn’t mean it won’t work, but there’s no telling if it’s going to continue being developed or not.

      Another nice feature-rich security Plugin called iThemes Security allows for changing your Login URL. The thing to keep in mind is that if you allow your users the oportunity to login, they will be able to see the changed login URL and can then attack it the same as they would the normal login page. It will help reduce a lot of the bots that are only looking for the standard login address though.

You must be logged in to post a comment.
Menu