Being the world’s most popular content management system makes WordPress an obvious target for hacking.
In April 2013, WordPress installations around the world were subjected to a global-scale brute force attack.
These attacks were caused by infected computer networks programmed to attack other vulnerable sites (botnets).
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 tools that can work through hundreds of login combinations in minutes.
If you’re using easy-to-guess user names and passwords, your website can be easily hacked by a script’s repeated attempts to guess your site’s login details.
This is called a “brute-force” attack.
What Is A Botnet?
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)
A “Botnet” is a network of private computers that have been compromised and infected with malicious code or software, which are then controlled remotely as a group, typically without the unsuspecting computer owners even being aware that this is happening in their machine.
Botnets are often used to send out mass spam emails.
The screenshot below was taken from a site that monitors online security showing the locations of the command centers of ZeuS – a botnet that has been actively compromising computer networks all around the world since 2009 …

(The Zeus botnet has been actively infecting computer networks all around the world since 2009. Screenshot: SecureList.com)
The botnet attacks were well organized and highly distributed. Over 90,000 IP addresses were identified by a number of hosting companies just in the initial attack, when the web was flooded with millions of attempts to force their way into WordPress users administration areas. The large-scale attacks continued after this, with over 30,000 WordPress sites and blogs being hacked each day.
News of this brute force botnet attack was widely reported in all of the major webhosting companies, as well as the leading technology publications, such as Forbes, TechNews Daily, PC Magazine, Tech Crunch, BBC News, and even on the official US Department of Homeland Security website …
(WordPress powers millions of sites worldwide, making it a target for hackers)
Does This Mean We Shouldn’t Use WordPress Anymore?
No. In fact, there are lots of good reasons why you should use WordPress if you are concerned about the security of your web presence.
To learn what makes WordPress a very secure platform for websites, read this article: Can You Build A Secure Business Online Using WordPress?
![]()
It’s important to note that, in the case of April 2013 brute-force botnet attack described above, was no specific vulnerability in WordPress being exploited (the same script was also targeting sites built using other platforms like Joomla).
Mike Little, one of the co-founders 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.
Preventing Your WordPress Blog From Being Brute-Force Attacked – Ten Security Measures
You may think that your site has no value to hackers, but the reality is that to a hacker, all websites provide an opportunity to gain some benefit at your expense.
If someone can discover a way to remotely take control of your site, the web site can then be employed as part of a larger network of “bots” to target other valuable websites.
Additional undesirable impacts of having your website hacked include being blacklisted by search engines, having stealthy spam links promoting things like gambling, porn, etc. inserted into your content and meta data, malicious redirects to phishing sites and other websites, drive-by downloads (adding malware on your visitors’ computers), and lots of other nasties.
The truth is that malicious bots are most likely scouring for security weaknesses and trying to hack into your site as you are reading this at this very moment. Whether they will be successful depends on how challenging you can make things for them to keep trying until they can discover how to break in, or decide to look for an easier target.
How Much Information About Your Site Are You Broadcasting To Hackers?
If you visit Hackertarget.com and run your site through their WordPress security scan …
(Hackertarget – Website Security Scan Product image source: Hackertarget.com)
You will see that the test returns a number of results and information about your website …

(Hackertarget – website security scan results. Product image source: Hackertarget.com)
It should be obvious after using the above tool that if you are able to access all of this information, so can hackers.
(Product image source: BlogDefender.com)
Being able to see what version of WordPress you are using, which plugins and themes you have installed, and which files have been uploaded to certain directories can be valuable information to hackers, as these can inform them about exploitable security vulnerabilities, especially where the owners haven’t updated their sites.
If your site or blog is driven by WordPress and you’re not precautionary steps to bolster the security of your site, then it’s practically guaranteed that, at some point, your site will be hacked, or at least targeted by bots, because these brute-force attacks are systematically targeting WordPress sites worldwide!
When a site is compromised, webmasters can discover much to their dismay that they have been “locked out” of their own site, or notice that their files have been interfered with or even that their content has been entirely wiped out. Often, sites will become infected with malicious software or viruses without the owner’s knowledge or awareness.
To avoid the heartache and frustration of having your website being hacked into, below are 10 simple, yet essential and effective security measures that will help to prevent your WordPress site from being attacked by brute force botnets.
![]()
Note: A few of the steps listed below require some technical understanding of how to modify core WordPress and server files. If you have no technical skills, or don’t want to mess around with code on your site, then ask your web host or search for a WordPress service provider in our WordPress Services Directory.
***
Security Measure #1 – Contact Your Host
Contact your hosting service provider and ask them exactly what systems they have put into place to protect your site from being attacked, and what is done to ensure that your WordPress sites are being regularly backed up.
Make sure that your host regularly backs up your server files and that, if anything happens, you can quickly and easily recover your files and data.
Security Measure #2 – Back Up Your WordPress Data And Files And Keep Your Website Or Blog Frequently Updated
You should never rely just on your web host for site backups. Instead, learn how to maintain and manage your WordPress site or get this done for you and develop a habit of religiously performing a complete site maintenance routine on a frequent basis (e.g. weekly, monthly, etc …)
A proper WordPress maintenance routine ensures that:
- All unnecessary files and data are removed,
- All files and data are free of errors, optimized and backed up,
- All software, plugins and themes are up-to-date,
- etc …
A complete WordPress site maintenance routine looks like this …
(Maintaining your WordPress website or blog backed up and updated is vitally important for WordPress security. Screenshot source: WPTrainMe.com)
Again, we cannot stress enough how vitally important it is to maintain your WordPress website frequently backed up and updated. WordPress site maintenance is not hard or time-consuming, but it must be done to ensure the security of your website. If you do not want to learn how to do WordPress maintenance yourself, pay someone to do it but make sure this gets done. Backing up your site is the second most important thing you must do after making sure that you still have a pulse!
If you don’t want to back up your site manually, there are many WordPress plugins you can use. You can read about a WordPress backup plugin that can fully automate your backup process here: Backup, Duplicate & Protect Your WP Web Site With Backup Creator Plugin For WP
Security Measure #3 – Make Sure That Your Username Is Not “Admin”
The mass brute-force attack on WordPress is mostly an attempt to compromise site admin panels and gain access to the site by exploiting WordPress installations using “admin” as the user name.
For reasons of website security, don’t set up a WordPress site with the username admin. This is the first thing hackers will test. If your site’s username is “admin”, then make sure you change this immediately.
We have created a detailed tutorial for non-technical WordPress admin users on how to change your admin username here: How To Change Your WP Admin User Name To A Different User Name
Security Measure #4 – Choose Strong Passwords
A “brute force” attack occurs when malicious software continually hits a username and password field with different strings of characters in an attempt to guess the right login combination that will give them entry to your site.
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 suggestions for doing this), the “bot” will just keep attacking your site until it eventually “cracks” the code.
Passwords that are easy to guess, therefore, are really easy targets for brute force attacks. Make sure that you change your password combination to a string that contains at least 8 characters long, and that includes upper and lowercase letters, and add a few “special” characters (%^#$@&*).
![]()
You can use a password management program like Roboform to help you generate difficult passwords …
(Roboform is a password management tool you can use to generate very secure passwords)
We have created a detailed tutorial on how to change your admin password here: What To Do If You Need To Reset Your Password
Security Measure #5 – Deny Access To Your wp-config.php File
The wp-config.php file allows WordPress to communicate with the database to store and retrieve data and is used to define advanced options for WordPress.

(wp-config.php file)
If a hacker breaks into your WordPress site, they will search for the wp-config.php file, because this is the file that contains your WordPress database details, 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 being attacked and even being used as part of a bot net, therefore, you must prevent people accessing 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.
These files are completely unnecessary after installation and can be removed. If you don’t want to delete these files, then just rename them.
Security Measure #7 – Update Your WordPress CMS, Plugins & Themes
Hackers search for vulnerabilities in outdated versions of WordPress that they can exploit, including outdated versions of WP plugins and themes.
Make sure to keep your WordPress files, plugins, themes, etc. up-to-date.
Security Measure #8 – Disable The WordPress Theme Editor
WordPress installations come with a built-in editor feature that allows the site administrator to edit plugin and theme code inside the dashboard area.
You can access the WordPress Theme Editor by selecting Appearance > Editor from your main menu …

(Accessing the WordPress theme editor via the main menu)
This allows anyone accessing your blog’s admin to view and modify your files, or cause mayhem on your site.
If you want to prevent people from accessing the 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 – Prevent Access To The Site’s Uploads Folder
The WordPress “uploads” directory stores all the media files that get uploaded to your site.
Normally, this folder is visible to all users online. All someone has to do to see all of the contents stored in your “uploads” folder is navigate to your directory using their web browser …

(WordPress uploads folder)
If any directories in your website have weaknesses or vulnerabilities that can be exploited by hackers or malicious users, anyone could upload unauthorized file types to your site.
Protecting your directories will prevent unauthorized people 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 a blank file named “index.php”) to your uploads directory, and so on. Again, it’s best to ask for assistance from someone with experience if you are not sure about what to do.
Security Measure #10 – Install WordPress Security Plugins
There are several WordPress security plugins available that will address many common security issues WordPress website owners face, such as preventing unauthorized users from accessing your site, protecting your site from malicious exploits, preventing unauthorized file uploads, 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 issues that could lead to hackers accessing your site files and damaging your site is SecureScanPro.
(SecureScanPro – complete security software for WordPress)
SecureScanPro is easy to install and easy to use, and does a great job of addressing most of the security issues that WordPress users need to address.
Another security plugin you may want to consider using is BlogDefender.
Blog Defender Security Product Suite For WordPress Websites & Blogs
(Blog Defender Security Product Suite For WordPress Blogs)
This product is a package of WordPress security video tutorials, plugins and tools, plus WordPress security documentation in PDF and DOC formats.
BlogDefender scans you WordPress site for security holes …
And lets you quickly and easily fix these …
If you don’t want to purchase a security plugin like SecureScanPro or BlogDefender, you can use various free WP plugins, such as Limit Login Attempts …

WordPress is a very secure web platform, but neglecting basic maintenance tasks like keeping your WordPress core files, WordPress plugins and WordPress themes up-to-date, tightening file and data security 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, securing your web site is something you cannot afford to ignore.
As one last reminder, below is the advice given by an expert on web security 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, WordPress security is of the utmost importance if you run a WordPress site. Hopefully, the information in this article has given you the initial guidelines and direction you need to prevent brute-force attacks on your WordPress site. If you need any further help or assistance with WordPress security, please seek help from a WordPress security specialist, or search for a professional WordPress service provider in our WordPress Services Directory.
Also, remember subscribe to WPCompendium.org to be notified when we publish new articles on WordPress security and reviews of WordPress security plugins and solutions.
***
"I have used the tutorials to teach all of my clients and it has probably never been so easy for everyone to learn WordPress ... Now I don't need to buy all these very expensive video courses that often don't deliver what they promise." - Stefan Wendt, Internet Marketing Success Group
***

