When you are the most popular content management system in the world and the online publishing platform of choice for millions of websites and loved by thousands of website developers and website designers, it’s inevitable that at some point in time, WordPress will come under attack from hackers.
In 2013, WordPress installations around the world were subjected to mass brute force attacks.
These attacks were caused by botnets (computer networks infected with viruses and programmed to attack other sites with security vulnerabilities).
How To Protect Your WordPress Site From A Brute-Force Attack
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)
One of the many ways hackers use to try and break into WordPress sites is by trying to guess the site admin’s login username and password. To do this, hackers use software tools that can work through hundreds of possible login combinations in minutes.
If you’re using obvious user names and weak passwords that are easy to guess, your website could be an easy target for hacking attempts.
This is called a “brute-force” attack.
Botnets – What Are They?
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)
”Botnets” are networks of computers that have been infected with malicious code, which can then be controlled remotely as a group, typically without the unsuspecting computer owners even being aware of this.
Botnets are typically used to blast mass spam emails from computers of compromised user accounts.
Below is a screenshot taken from a site that monitors online security showing the locations of the command centers of a botnet that has been actively compromising computer networks all around the globe since 2009 called “Zeus” …

(The Zeus botnet has been actively infecting computer networks all around the globe since 2009. Image: SecureList.com)
These were highly distributed and well organized botnet attacks on WordPress. Over 90,000 IP addresses were identified by several hosting companies in the initial attack, when the web was flooded with millions of attempts to force their way into WordPress user administration areas. The worldwide brute force attacks then continued, with over 30,000 WordPress sites being hacked per day.
News of this brute force botnet attack was reported by all the major webhosting companies, as well as the leading technology media publications, such as Forbes, TechNews Daily, PC Magazine, Tech Crunch, BBC News, and even on the official website of the US Department of Homeland Security …
(WordPress often is targeted by hackers)
Does This Mean We Should Stop Using WordPress?
No. In fact, there are lots of good reasons why you should use WordPress if you are concerned at all about the security of your online presence.
We explain why WordPress is a secure web platform in this article: Is WordPress Secure?
![]()
It’s important to note that, in the case of April 2013 mass brute-force botnet attack described above, there was actually no WordPress vulnerability being exploited (the same script was also targeting sites built using other CMS platforms like Joomla).
Mike Little, one of the co-founders of WordPress with Matt Mullenweg, made this comment about the botnet 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.
Preventing Your WordPress Site From Brute-Force Attacks – Ten Security Checks
Every web site with a vulnerability can be an opportunity to hackers. No site Business websites, personal blogs, government websites … even websites owned by online security and anti-hacking experts can and have been targeted.
If hackers can exploit a way to gain access and control of your site, your blog can then be used as a “bot” to attack larger and more valued sites.
Additional undesirable results of having your website hacked and your site security compromised include getting blacklisted by Google, having spammy links promoting things like casinos, porn, etc. in your content, redirecting visitors to phishing sites and other websites, data exfiltration (stealing customer details or Personal Identifiable Information from your web applications), and many other nasty things.
The truth is that malicious bots are very likely trying to hack into your site as you are reading this page. Whether they can get in or not, will depend on how hard or easy you will make it for hackers or bots to keep persisting until they work out a way to get access, or give up and decide to look for a more vulnerable target.
How Much Information Are You Broadcasting To Hackers About Your WordPress Site?
Does your website run on WordPress? If so visit Hackertarget.com and run your website through their WordPress security check …
(WordPress Security Scan Product image: https://hackertarget.com/wordpress-security-scan)
You will see that the check will yield a number of results and information about your WordPress installation …

(Hackertarget – WordPress security check results. Screenshot image: Hackertarget.com)
It should be obvious after using this tool that if you are able to access all of this information, then hackers can too.
(Image source: BlogDefender site)
The ability to see what 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 in your site can all be useful information to hackers, as this informs them about potential holes or weaknesses, especially where site owners haven’t updated their files.
If your website is driven by WordPress and you’re not taking steps to toughen up your site, we can practically guarantee that, at some point, your site will be hacked, or at least targeted by bots, because these attacks are systematically targeting WordPress installations worldwide!
When a website is compromised, site owners will find themselves “locked out” of their own site, or notice that their files have been modified or that everything has been entirely wiped out. Typically, sites will be infected with malicious scripts or viruses without the owner’s knowledge or awareness.
To avoid the heartache and aggravation (and potential financial loss) of having your website or blog being hacked into, below are 10 simple, yet essential and effective security checks that will help to protect your WordPress site from being attacked by brute force botnet hacking attempts.
![]()
Note: A few of the measures shown below need some technical skills to modify core WordPress and server files. If you have no web coding skills, or don’t want to mess around with file code, then ask your web host or a professional WordPress service provider for help.
***
Security Measure #1 – Get In Touch With Your Host
Contact your host and ask them what measures they offer to protect your site from brute force attacks, and what they are doing to ensure that your server files and data get regularly backed up.
Make sure that your hosting service provider regularly backs up your sites and that, if disaster strikes, you can easily get your files and data back.
Security Measure #2 – Perform Full WordPress Backups And Keep Your Website Or Blog Frequently Up-To-Date
You should never rely on your webhosting service for site backups. Instead, learn how to maintain and manage your WordPress site or get this service done for you and develop a habit of performing a complete site maintenance routine on a regular basis (e.g. daily, weekly, fortnightly, etc …)
A proper WordPress maintenance routine ensures that:
- All unnecessary data and files are deleted,
- All files and data are free of errors, optimized and backed up,
- All WordPress software, themes and plugins are up-to-date,
- etc …
A complete WordPress site maintenance routine looks like this …
(Maintaining your WordPress site frequently backed up and up-to-date is vitally important for WordPress security. Screenshot source: WPTrainMe.com)
Again, we cannot stress enough how important maintaining your WP site backed up and up-to-date is. WordPress site maintenance is not hard or time-consuming, but it must be done to ensure the security of your website. If you don’t want to learn how to do WP maintenance yourself, pay someone to do it but make sure this gets done. Backing up your website is the second most important thing you must do after making sure that your heart is still beating!
If you don’t want to back up your data manually, there are many plugins you can use. You can read about a WordPress backup plugin that can fully automate your site backups here: Back Up, Copy And Protect Your WordPress Site With Backup Creator Plugin For WordPress
Security Measure #3 – Do Not Use “Admin” As Your Username
The mass brute force botnet attack on WordPress sites was mostly an attempt to compromise website admin panels by exploiting sites that used “admin” as the user name.
For website security reasons, never set up sites with the username admin. This is the first area hackers will test. If your blog’s username is “admin”, you need to change it immediately.
For a simple step-by-step tutorial for non-technical admin users on how to change your username, go here: How To Change Your WP Admin User Name
Security Measure #4 – Avoid Weak Passwords
A “brute force” attack occurs when malicious software continually tries to guess the right password and username character string that will unlock your website.
Unless you put some measure in place to prevent the brute-force attack from happening (see further below for a couple of simple and effective ways to do this), the “bot” will just persist in attacking your site until it eventually gets access.
Weak passwords, therefore, make really easy targets for bot attacks. Make sure that you change your password to a string that is at least 8 or 9 characters long, and that includes 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 your online logins, then use a password tool like Roboform …
(Roboform is a password program you can use to generate different secure passwords)
We have created a simple step-by-step tutorial that shows you how to change your password here: How To Change Passwords
Security Measure #5 – Secure Your WP Config File
The wp-config.php file contains important information about your website’s database and is used to define advanced options for WordPress.

(wp-config.php file)
If a hacker breaks into your site, they will typically search for the wp-config.php file, because this is the file that contains your database details, security keys, etc. Getting access to this information would allow them to change anything in your database, create a user account, upload files and take control of your site.
To protect your WordPress site from being attacked and even being used as part of a bot net, therefore, you must prevent people viewing 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 – Delete Or Rename Unnecessary Installation Files
Delete or rename the install.php, upgrade.php and readme.html files from your server.
You can remove these files after installation. If you don’t want to remove these files, just rename them.
Security Measure #7 – Keep Your WordPress Site, Themes & Plugins Up-To-Date
Hackers look for vulnerabilities in earlier versions of WordPress that they can exploit, including out-of-date versions of WP plugins and themes.
Ensure that all of your WordPress files, themes, plugins, etc. are always up to date.
Security Measure #8 – Disable The WordPress Theme Editor
WordPress installations come with a built-in editor that allows you to edit plugin and theme code inside the dashboard.
You can access the WordPress Theme Editor by selecting Appearance > Editor from the dashboard menu …

(Accessing the WordPress theme editor using the main menu)
This allows anyone accessing your blog’s admin area to view and change your WP theme template files, or create havoc on your site.
If you want to prevent people from being able to access the WordPress Theme editor, you will need to disable it. This can be done by editing your wp-config.php file.
Security Measure #9 – Protect Your WordPress Uploads Directory
The WordPress “uploads” folder contains all the media that gets uploaded to your WordPress site.
Normally, this folder is visible to all users online. All a person needs to do to see all of the contents in your “uploads” folder is navigate to your directory using their web browser …

(WordPress has an uploads folder where media content is stored)
If any directories in your website have weaknesses or vulnerabilities that can be exploited by hackers, anyone could 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, uploading a blank index.php file (this is literally an empty file called “index.php”) to your uploads directory, and so on. Again, it’s best to use a professional if you are not sure about what to do.
Security Measure #10 – Security Plugins
Several WordPress security plugins are available that will address most security issues faced by WordPress site owners, such as preventing unauthorized users from gaining access to vital information about your site, protecting your website from botnets, preventing injections of code into files, etc.
Many WordPress plugins address some but not all areas of WordPress security. One security plugin that does a comprehensive job of scanning, fixing and preventing potential issues that could lead to hackers accessing your files and causing damage to your site is SecureScanPro.
(SecureScanPro – complete security software solution for WordPress)
SecureScanPro is easy to install and easy to use, and takes care of most of the security issues that WordPress users need to address.
Another great plugin you may want to look at using is BlogDefender.
Blog Defender WordPress Security Product Suite
(Blog Defender Security Solution For WordPress Sites)
This product is a suite of WordPress security video tutorials, plugins and tools, plus a WordPress security PDF/DOC file.
BlogDefender scans you WordPress installation for potential security weaknesses …
And lets you quickly and easily fix these …
If you don’t want to buy a security plugin like SecureScanPro or BlogDefender, then use various free WordPress plugins, such as Limit Login Attempts …

WordPress is a very secure web platform, but neglecting basic maintenance tasks like keeping your WordPress software, plugins and WordPress themes updated to their latest versions, tightening file and data protection and taking other necessary precautions can have disastrous consequences.
No matter what kind of business you run or plan to run online and how small you think your web presence is, you cannot ignore the importance of web security.
As a final reminder, below is the advice given by a web security expert to all WordPress users after the large-scale brute force attacks by botnets on WordPress in April 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 very important if you run a WordPress site. Hopefully, the information in this article has shown you what to do to keep your WordPress site protected from brute force attacks. If you need any further help or assistance with WordPress security, please consult a WordPress security specialist, or search for a WordPress technical provider in our WordPress Services Directory.
Also, please remember to subscribe to WPCompendium.org to be notified via email when we publish new tips on WordPress security and reviews of new 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)
***

