Powering millions of sites worldwide makes WordPress an easy target for hacking attempts.
In 2013 a large-scale brute-force attack began hitting WordPress installations across virtually every WP host server in existence around the world.
These attacks were caused by computers infected with viruses and programmed to attack other installations, also commonly known as “botnets”.
How To Protect Your WordPress Site From A Brute-Force Attack
What Is A Brute-Force Attack?
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 methods hackers use to try and break into WordPress sites. One of these is by trying to guess the site’s administration login username and password. To attempt this, hackers use scripts and software that can work through hundreds of login permutations in minutes.
If you’re not using strong usernames or unguessable passwords, your website could be an easy target for hackers.
This is called a “brute force” login 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/botnet)
”Botnets” are networks of computers that have been compromised and infected with malicious code, which are then controlled remotely as a group, typically without the unsuspecting computer owners’ knowledge or awareness.
Botnets are normally used used to send out mass spam emails from the infected computers of compromised user accounts.
The screenshot below was taken from a site that monitors online security 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. Screenshot image: SecureList.com)
These were highly distributed and well organized attacks on WordPress. Over 90,000 IP addresses were identified by several webhosting companies just in the initial attack, when millions of attempts to force their way into WordPress users administration areas took place. The worldwide attack then continued, with over 30,000 WordPress blogs being hacked each day.
Coverage of this brute-force botnet attack was reported by all of the major webhosting companiesand leading technology media publications, such as Forbes, TechNews Daily, PC Magazine, BBC News, Tech Crunch, and even on the official website of the US Department of Homeland Security …
(Being the world’s most popular content management system makes WordPress an obvious target for hacking)
Does This Mean WordPress Is Not Secure And We Should Stop Using It?
No. In fact, there are lots of great reasons why you should choose WordPress if you are concerned at all about the security of your online business.
We explain why WordPress is a secure web platform in this article: Why WordPress Is A Secure Platform For Websites –
![]()
It’s important to note that, in the case of April 2013 large-scale brute-force botnet attack described above, was no specific vulnerability in WordPress being exploited (the same script was also attacking sites built using other platforms like Joomla).
Mike Little, the co-founder of WordPress with Matt Mullenweg, said this 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.
Protecting Your WordPress Site From Being Brute Force Attacked – Ten Security Measures
Every website or blog with a security vulnerability offers some value to hackers. No matter what kind of business you run or plan to run online and how small you think your web presence is, you simply cannot afford to ignore the importance of web security. Large, medium and small websites, personal blogs, government sites … even sites owned by online security and anti-hacking experts can and have been targeted.
If someone can find a software security flaw, that website can then be used as part of a larger network of “bots” to target more valuable websites.
Additional undesirable impacts of having your site hacked and your site security compromised include being blacklisted by search engines, having spammy links advertising things like casinos, porn, etc. inserted into your content and page title and descriptions, malicious redirects to phishing sites, data exfiltration (stealing information or Personal Identifiable Information from your web applications), and many other nasties.
The harsh reality is that software-driven bots are probably looking for security exploits and trying to break into your website right now. Whether they will successfully break in or not, will depend on how challenging you can make it for hackers to continue trying until they can find how to get in, or are forced to decide to look for a more vulnerable target.
How Much Information Are You Broadcasting To Hackers About Your WordPress Site?
If you visit Hackertarget.com and run your site through their WordPress security scan …
(Hackertarget – Website Security Check Product image source: https://hackertarget.com/wordpress-security-scan)
You will see that the scan will display a number of results and details about your site …

(WordPress security check results. Screenshot source: Hackertarget.com)
It should be obvious after using this tool that if you are able to freely access all of this information about your site, then so can hackers.
(Screenshot image: BlogDefender.com)
The ability to see which version of WordPress you are using, which plugins and themes you have installed, and which files have been uploaded to certain directories can be useful information to hackers, as this can inform them about any potential vulnerabilities, especially in older versions.
If your website is driven by WordPress and you’re not taking steps to harden your site, 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 installations around the world!
When a website or blog gets hacked, site owners can discover much to their dismay that they have been “locked out” of their own site, or notice that their content has been interfered with or that everything has been entirely wiped out. Typically, compromised sites will be infected with malicious software without the owner’s knowledge or awareness.
To help avoid the heartache that comes with discovering that your site has been hacked into, we have listed below 10 simple, yet essential and effective security measures that will help to prevent your WordPress site from being brute-force attacked.
![]()
Note: Some of the recommended steps shown below require some technical skills to modify core WordPress and server files. If you have no technical skills, or don’t want to mess around with file code, then ask your web host or search for a WordPress service provider in our WordPress Services Directory.
***
Security Measure #1 – Contact Your Webhosting Service Provider
Get in touch with your hosting service provider and ask them exactly what security precautions have been put into place to help prevent your site from being attacked, and what is done to make sure that your server files and data get backed up.
It is important to check that your hosting provider regularly backs up your server files and that, if disaster strikes, you can easily get back your files and data.
Security Measure #2 – Back Up Your WordPress Data And Files And Keep Your Website Frequently Maintained
Never rely on your host for your site backups. Instead, learn how to manage your WordPress site or pay someone to get this done for you and develop a habit of performing a full site maintenance routine on a regular basis (e.g. weekly, fortnightly, etc …)
A full WordPress maintenance routine ensures that:
- All unnecessary files and data are removed,
- All WordPress files and data are free of errors, optimized and backed up,
- All software, plugins and themes are up-to-date,
- etc …
A complete WordPress maintenance routine looks like this …
(Maintaining your WP installation frequently backed up and up-to-date is vitally important for WordPress security. Screenshot: WPTrainMe.com)
Again, we cannot stress enough how important maintaining your WordPress website or blog frequently 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 or blog. If you do not want to learn how to do WP site maintenance yourself, pay someone to do it but make sure this gets done. Backing up your website is the next most important thing you should do after making sure that you are still breathing!
If you don’t want to perform manual backups, there are a number of WordPress plugins you can use. Learn about a WordPress backup plugin that can automate your site backups here: Backup, Duplicate & Keep Your WordPress Sites Protected With Backup Creator WordPress Plugin
Security Measure #3 – Do Not Use “Admin” As A Username
The mass brute-force attack on WordPress is mostly attempting to compromise site admin panels and gain access to sites by exploiting sites with “admin” as the account name.
For security purposes, avoid installing a WordPress site with the username “admin”. This is the first area hackers will test. If your site’s username is “admin”, you will should change this immediately.
For a step-by-step tutorial for admin users that shows you how to change your login username, go here: How To Change Your WP Admin User Name
Security Measure #4 – Your Password
A “brute force” attack occurs when a malicious script persistently tries to guess the right combination of characters in a username and password that will give the hacker access to your site.
Unless some measure is put into place to block the brute-force attack from happening (see further below for a couple of effective suggestions for doing this), the “bot” will just persist in attacking your site until it eventually gets access.
Passwords that are easy to guess, therefore, are very easy targets for brute-force attacks. Make sure that you change your password to a string that contains at least 8 or 9 characters long, with upper and lowercase letters, combined with “special” characters (e.g. %, $, *, etc).
![]()
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 software tool like Roboform …
(You can use a password management program like Roboform to help you generate difficult passwords)
For a simple tutorial that shows you how to change your password, go here: How To Reset Your WordPress Password
Security Measure #5 – Secure Your WP Config File
The wp-config.php file contains information about your WordPress site’s database and is used to define advanced WordPress options.

(wp-config.php file)
If hackers break into your website, they will typically try to access the wp-config.php file, because this is the file that contains important information about your site’s database, security keys, etc. Getting access to this information would allow a hacker 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, prevent your wp-config.php file from being accessible. 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 WordPress Installation Files
Delete or rename the install.php, upgrade.php and readme.html files from your server.
You can remove these files after installation, as they are unnecessary. If you don’t want to delete these files, then just rename them.
Security Measure #7 – Keep Your WordPress Files, Themes & Plugins Up-To-Date
Hackers look for vulnerabilities they can exploit in older WordPress versions, including out-of-date versions of WordPress plugins and themes.
Make sure to always keep your WordPress software files, plugins, themes, etc. 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 files from the dashboard area.
In WordPress, you can access your WordPress Theme Editor by selecting Appearance > Editor in your main menu …

(The WordPress theme editor is accessible via the main menu)
This allows anyone accessing your site to see and modify your WordPress theme templates, or create mayhem on your site.
If you want to prevent unauthorized people from being able to access your WordPress Theme editor, you will need to disable it. This can be done by editing your wp-config.php file.
Security Measure #9 – Prevent Access To The WordPress Uploads Folder
The WordPress “uploads” directory stores all the media that gets uploaded to your website.
By default, this folder is visible to online users. All a person needs to do to view the contents stored in your site’s “uploads” folder is visit the directory using their browser …

(WordPress uploads directory)
If any files stored in his folder have 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, adding a blank index.php file (this is literally a file with nothing in it called “index.php”) to your uploads directory, and so on. Again, it’s best to seek professional help if you are not sure about what to do.
Security Measure #10 – Security Plugins
Some great security plugins for WordPress 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 brute-force attacks, preventing unauthorized file uploads, etc.
Many WordPress plugins address some but not all areas of WordPress security. One plugin that seems to do a comprehensive job of scanning, fixing and preventing issues that could lead to hackers accessing your files and causing damage to your site is SecureScanPro.
(SecureScanPro – WP total security software solution)
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 security plugin you may want to look at using is BlogDefender.
Blog Defender Security Suite For WordPress
This product is a package of WordPress security video tutorials, WordPress plugins and tools, plus a WordPress security PDF/DOC file.
BlogDefender scans you website for potential security vulnerabilities …
And then shows you how to quickly fix these …
If you don’t want to invest in a premium 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 simple maintenance tasks like updating your WordPress installation, WP plugins and themes, tightening file and data security and taking other necessary precautions can have disastrous consequences.
Regardless of the kind of business you run or plan to run online and how small you think your web presence is, you cannot afford to ignore the importance of securing your websites.
As one last reminder of the importance of keeping your websites protected, below is the advice given by an expert on web security to all WordPress users following the mass 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 prevent brute force attacks on your WordPress site. If you need any further help or assistance with WordPress security, please seek help from a professional WordPress security specialist, or search for a WordPress technical provider in our WordPress Services Directory.
We also recommend subscribing to WPCompendium.org to receive notifications when we publish new tutorials on WordPress security and reviews of new WordPress security plugins and solutions.
***
"This is AMAZING! I had learnt about how to use WordPress previously, but this covers absolutely everything and more!! Incredible value! Thank you!" - Monique, Warrior Forum
***


