WordPress powers millions of sites worldwide, making it an obvious target for hackers.
In April 2013, WordPress installations around the world were subjected to a worldwide brute force attack.
These attacks were caused by botnets (networks of infected computers programmed to attack other computers with security vulnerabilities).
How To Protect Your WordPress Site From A Brute-Force Attack
About Brute-Force Attacks
A brute-force attack is a technique used to break an encryption or authentication system by trying all possibilities.
(Source: Chinese University Of Hong Kong)
There are many ways hackers try to break into WordPress sites. One of these is by trying to guess the site admin’s login username and password. This is achieved with scripts and software tools that can guess hundreds of possible logins in minutes.
If you’re using easy-to-guess login details, your website could be easily hacked by the software’s persistent attempts to guess your site’s login details.
This is called a “brute force” attack.
Botnets
A botnet is a number of Internet-connected computers communicating with other similar machines in an effort to complete repetitive tasks and objectives. This can be as mundane as keeping control of an Internet Relay Chat (IRC) channel, or it could be used to send spam email or participate in distributed denial-of-service attacks. The word botnet is a combination of the words robot and network.
(Source: Wikipedia.org)
”Botnets” are networks of private computers that have been infected with malicious code or scripts, which can then be controlled remotely as a group, often without the unsuspecting computer owners even being aware that this is happening.
Botnets are regularly used to send mass spam emails from the infected computers of compromised user accounts.
The screenshot below was taken from an internet security monitoring site showing the locations of the command centers of a botnet that has been actively infecting computer networks all around the world since 2009 called “Zeus” …

(ZeuS is a botnet that has been actively compromising computer networks all around the globe since 2009. Image source: SecureList.com)
These botnet attacks on WordPress sites are highly distributed and well organized. Over 90,000 IP addresses were identified by several hosting companies just in the initial attack, when millions of attempts to force their way into WordPress site administration areas occurred. The brute force attacks then continued, with over 30,000 WordPress blogs being hacked each day.
News of this brute-force botnet attack was widely reported in all the major webhosting companiesand leading technology publications, such as TechNews Daily, Forbes, PC Magazine, Tech Crunch, BBC News, and even on the official US Department of Homeland Security website …
(Powering millions of websites worldwide makes WordPress an obvious target for hacker attacks)
Does This Mean We Shouldn’t Use WordPress Anymore?
No. In fact, there are lots of very good reasons why you should choose WordPress if you are concerned about the security of your website.
To learn what makes WordPress a very secure web platform, read this article: Is WordPress Secure?
![]()
It’s important to understand that, in the case of the brute force attack described above, no specific WordPress vulnerability was being exploited (the same script was also targeting sites built using applications like Joomla).
Mike Little, the co-founder of WordPress with Matt Mullenweg, said this about the brute-force attacks:
It is a “simple” script that attempts to login using the admin login and a generated password. So if your password is too short or based on dictionary words it will be guessed and then the script can login legitimately and do whatever it wants including installing scripts (as plugins) or editing files. The attack tries to guess your password, if it succeeds, the most secure site in the world is wide open because they have your password.
How To Prevent Your WordPress Site From Brute Force Attacks – 10 Security Measures
Every web site with a security vulnerability provides some type of opportunity to hackers. A vulnerable blog offers malicious users with a valuable resource to launch DDoS attacks, spread malware and engage in information theft.
If a hacker can discover a vulnerability, your site can then be used as a “bot” to attack larger and more valuable web sites.
Additional undesirable impacts of having your site hacked include getting blacklisted by Google, having stealthy spam links promoting things like online meds, cheap offers on brand names, etc. inserted in your content, malicious redirects to phishing sites, drive-by downloads (adding malicious software on your visitors’ computers), and lots of other nasties.
The truth is that software-driven bots are very likely trying to hack into your blog while you are reading this. Whether they will break into your site successfully depends on how hard or easy you can make it for hackers to keep persisting until they discover how to get access, or give up and go look for a less secure target.
How Much Information About Your WordPress Site Are You Broadcasting To Hackers?
Does your website run on WordPress? If so visit Hackertarget.com and run your site through their WordPress security check …
(WP Security Check Screenshot image: https://hackertarget.com/wordpress-security-scan)
You will see that the check returns various results and information about your site …

(WordPress security scan results. Product image source: Hackertarget.com)
It should be obvious after using the tool shown above that if you can see all of this information, then so can hackers.
(Image source: BlogDefender site)
Being able to see which version of WordPress you are using, which plugins and themes you have installed on your site, and which files have been uploaded to certain directories on your server are all potentially useful information to hackers, as this can inform them about exploitable holes or weaknesses, especially where the owners haven’t updated their software versions.
If your website runs on WordPress and you’re not taking steps to bolster the security of your site, then it’s practically guaranteed that, at some time in the near future, your site will be hacked, or at least targeted by bots, because these attacks are systematically hitting WordPress sites worldwide!
Typically, whenever a website is hacked, webmasters can find themselves completely “locked out” of their own site, or notice that their files have been modified or even that their content has been completely wiped out. Often, most sites will be infected with malicious software or viruses without the owner even being aware that this has happened.
To avoid the heartache and frustration of having your web site being hacked into, we have listed below 10 essential and effective security measures that will help to prevent your WordPress site from being brute-force attacked.
![]()
Note: A few of the steps below need some technical skills to modify core WordPress or server files. If you are not technical, or don’t want to mess around with file code, then ask your web host or search for a WordPress technical provider in our WordPress Services Directory.
***
Security Measure #1 – Contact Your Hosting Service
Get in touch with your web host and ask them what security precautions have been put in place to protect your site from being attacked, and what they do to ensure that your files and data get backed up.
It is important to check that your host backs up your server files and that, if anything goes wrong, you can quickly and easily recover your files and data.
Security Measure #2 – Back Up Your WordPress Data And Files And Keep Your Site Frequently Updated
Never rely just on your hosting provider for site backups. Instead, learn how to maintain and manage your WordPress site or pay someone to get this service done for you and maintain a habit of performing a full site maintenance routine on a regular basis (e.g. weekly, fortnightly, etc …)
A proper WordPress maintenance routine ensures that:
- All unnecessary data and files are deleted,
- All WordPress data and files are free of errors, optimized and backed up,
- All themes, plugins and software components are up-to-date,
- etc …
A proper WordPress site maintenance routine looks like this …
(Maintaining your WP site frequently backed up and updated is vitally important for WordPress security. Image: WPTrainMe.com)
Again, we cannot stress enough how vitally important it is to maintain your WP web site completely backed up and up-to-date. WP site maintenance is not hard or time-consuming, but it must be done to ensure the security of your website or blog. If you do not want to learn how to do WordPress maintenance yourself, get someone else to do it but make sure it gets done. Backing up your site is the next most important thing you should do after making sure that you still have a pulse!
If you don’t want to back up your site manually, there are a number of WordPress plugins you can use. You can read about a WordPress backup plugin that can automate your backup process here: Backup, Clone & Keep Your WordPress Websites And Blogs Protected With Backup Creator WordPress Plugin
Security Measure #3 – Make Sure That Your Username Is Not “Admin”
The large scale brute force botnet attack on WordPress is mostly an attempt to compromise website administrator panels by exploiting installations using “admin” as the username.
For website security purposes, never install a WordPress site with the username “admin”. This is the first area of potential vulnerability hackers will test. If your site’s username is admin, then change this immediately.
For a simple tutorial for non-technical WordPress admin users that shows you how to change your login username, go here: How To Change Your WP User Name From Admin To Another User Name
Security Measure #4 – Use Strong Passwords
A “brute force” attack occurs when malicious software continually hits a login or password field with different strings of characters trying to guess the right login combination that will give the hacker access to your site.
Unless you put some measure in place to stop the brute force attack from happening (see further below for a couple of effective ways to do this), the “bot” will just keep attacking your site until it eventually breaks into your admin area.
Weak passwords, therefore, make very easy targets for bot attacks. Make sure that you change your password to a string containing at least 8 or 9 characters long, with upper and lowercase letters, combined with a few “special” characters (%^#$@&*).
![]()
If you have trouble coming up with strong passwords or are reluctant to set up different passwords for all of your online logins, then use a password management program like Roboform …
(You can use a password software tool like Roboform to help you generate hard-to-guess passwords)
We have created a detailed tutorial that shows you how to change your password here: What To Do If You Need To Change Passwords
Security Measure #5 – Deny Access To Your WP Config File
The wp-config.php file contains important information about your WP database and is used to define advanced WordPress options.

(wp-config.php)
If hackers break into your website, they will typically try to access your wp-config.php file, because this file contains important information about your site’s database, security keys, etc. Getting access to this information would allow someone to change anything in your database, create a user account, upload files and take control of your site.
In order to protect your WordPress site from attacks and even being used as part of a bot net, therefore, prevent people finding your wp-config.php file. This requires knowing how to edit database information, move files around in your server and changing access permissions.
Security Measure #6 – Rename Or Delete Unnecessary WordPress Installation Files
Rename or delete the install.php, upgrade.php and readme.html files from your server.
These files are not required after installation. If you don’t want to delete these files, then just rename them.
Security Measure #7 – Update Your WordPress Files, Plugins & Themes
Hackers are always on the lookout for vulnerabilities in older versions of WordPress that they can exploit, including out-of-date versions of WP plugins and themes.
Make sure to keep your WordPress software files, themes, plugins, etc. up-to-date.
Security Measure #8 – Disable The Theme Editor
WordPress comes with a built-in editor feature that allows site administrators to edit theme and plugin files from the dashboard area.
You can access the WordPress Theme Editor by selecting Appearance > Editor in your admin menu …

(The WordPress theme editor is accessible via the main menu)
This allows anyone accessing your blog to view and make changes to all of your files, or cause havoc on your site.
To prevent people from accessing your WordPress Theme editor, you will need to disable it. This can be done by adding code to your wp-config.php file.
Security Measure #9 – Protect Your Site’s Uploads Directory
The WordPress “uploads” directory stores all the media that gets uploaded to your WordPress site.
By default, this folder is visible to online users. All someone has to do to view the contents in your “uploads” directory is visit your directory using their browser …

(WordPress uploads folder)
If any files stored in his folder have weaknesses or vulnerabilities that can be exploited by hackers or malicious users, someone can upload unauthorized file types or compromise the security of your site.
Protecting your directories will prevent online users from accessing your ‘uploads’ folder and other important directories. This can be done using plugins, setting file permissions, adding a blank index.php file (this is literally an empty file named “index.php”) to your uploads directory, and so on. Again, it’s best to consult a professional if you are not sure about what to do.
Security Measure #10 – Security Plugins
Several security plugins for WordPress are available that specifically address common security issues WordPress site owners face, such as preventing unauthorized users from gaining access to vital information about your site, protecting your files from malicious exploits, preventing unauthorized file uploads, etc.
Many WordPress plugins address some but not all areas of WordPress security. One plugin that does a comprehensive job of scanning, fixing and preventing issues that could lead to hackers accessing your site files and causing damage to your site is SecureScanPro.
(SecureScanPro – security plugin for WordPress)
SecureScanPro is easy to install and easy to use, and does a great job of fixing most of the security areas that WordPress users need to address.
Another great plugin you may want to look at using is BlogDefender.
Blog Defender
Blog Defender is a package of WordPress security video tutorials, WordPress plugins and tools, plus a WordPress security PDF/DOC file.
BlogDefender shows you where potential security holes in your web site are …
And then shows you how to fix these quickly …
If you don’t want to buy a security plugin like SecureScanPro or BlogDefender, then use various free WP plugins, such as Limit Login Attempts …

WordPress is a very secure platform, but neglecting essential maintenance tasks like updating your WordPress software, WP plugins and themes, tightening file and data security and taking other necessary precautions can expose your website to malicious by hackers and bots.
Regardless of the type of business you run or plan to run online and how small you think your web presence is, web security is something you cannot afford to ignore.
As a final reminder of the importance of keeping your websites protected, below is the advice given by a security expert to all WordPress users after the mass brute-force attacks on WordPress in 2013 …
Owners of websites based on WordPress CMS must improve at least basic security settings and implement best practices such as the use of robust passwords and the accurate management of “admin” accounts.
Pierluigi Paganini, Chief Information Security Officer, Security Affairs
***
As you can see, website security is of the utmost importance if you run a WordPress site. Hopefully, this article has given you the initial guidelines and direction you need to keep your WordPress site protected from brute-force attacks. If you need any further help or assistance with WordPress security, please consult a professional WordPress security specialist, or search for a WordPress service provider in our WordPress Services Directory.
We also recommend subscribing to WPCompendium.org to receive notifications when we publish new information on WordPress security and tutorials about WordPress security plugins.
***
"These tutorials have so much information and are easy to understand. If you use WordPress or plan to in the future these will help you with everything you need to know." - Valisa (Mesa, Arizona)
***


