Powering millions of websites and blogs around the world makes WordPress a natural target for malicious attacks by hackers.
In 2013 a worldwide brute force attack struck WordPress installations across virtually every web host in existence.
These attacks were caused by botnets (computer networks infected with viruses and programmed to attack other installations 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)
There are many ways hackers try to break into a WordPress site. One of these is by trying to guess the site’s administration login username and password. To attempt this, hackers use software programs and scripts that can guess hundreds of possible logins in minutes.
If you’re using easy-to-guess usernames and passwords, your website could be easily hacked by the malicious script’s repeated attempts to work out your site’s login details.
This is called a “brute-force” attack.
What Are 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/botnet)
A “Botnet” is a network of private computers that have been infected with malicious scripts or software code, which can then be controlled remotely as a group, often without the unsuspecting computer owners’ knowledge.
Botnets are regularly used to send out mass spam emails from computers of compromised user accounts.
Below is a screenshot taken from an online security monitoring site showing the locations of the command centers of a botnet that has been actively compromising 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 source: SecureList.com)
These were highly distributed and well organized botnet attacks. Over 90,000 IP addresses were identified by several webhosting companies just in the initial attack, when the web was flooded with millions of attempts to force their way into WordPress site admin areas. The worldwide attack continued after this, with over 30,000 WordPress blogs being hacked each day.
Coverage of the April 2013 brute force botnet attack was widely reported in all of the major webhosting companiesand leading technology 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 …
(WordPress is the world’s most used CMS making it a natural target for hackers)
Does This Mean We Should Stop Using WordPress?
No. In fact, there are many very good reasons why you should choose WordPress if you are concerned about the security of your website.
We explain what makes WordPress a very secure web platform in this article: Why WordPress Is A Secure Platform For Websites –
![]()
It’s important to understand that, in the case of April 2013 brute-force attack described above, was no specific vulnerability in WordPress being exploited (the same script was also targeting sites built using platforms like Joomla).
Mike Little, one of the co-founders of WordPress, made the following comment 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 Protect Your WordPress Blog From Brute-Force Attacks – Ten Security Checks
Every blog with a vulnerability has potential value to hackers. A vulnerable site provides malicious users with a platform for distributed denial of service (DDoS) attacks, spreading malware and to engage in information theft.
If hackers can discover a security opening in your system and gain remote access of your web site, that blog can then be employed as a “bot” to attack more valued sites.
Additional undesirable consequences of having your site hacked and your site security compromised include being blacklisted by search engines, having spammy links advertising things like online meds, porn, etc. in your content and page title and descriptions, redirecting visitors to phishing sites and other websites, 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 scouring for exploits and trying to break into your web site at this very moment. Whether they can be successful will depend on how difficult or easy you can make it for them to continue persisting until they can discover how to get access, or give up and decide to look for a less secure target.
How Much Information Are You Broadcasting To Hackers About Your WordPress Site?
Does your website run on WordPress? If so visit a site like Hackertarget.com and run your site through their WordPress security scan …
(WP Security Check Screenshot: https://hackertarget.com/wordpress-security-scan)
You will see that the scan returns a number of results and details about your site …

(WP security check results. Product image source: Hackertarget.com)
It should be obvious after using the above tool that if you can access all of this information, so can hackers.
(Screenshot image: BlogDefender website)
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 potentially valuable information to hackers, as this informs them about exploitable holes or weaknesses, especially in older versions.
If your site or blog runs on WordPress and you are not taking appropriate steps to toughen up your site, we can practically guarantee that, at some time in the near future, your site will be hacked, or at least targeted by bots, because these brute-force attacks are systematically hitting WordPress sites worldwide!
Typically, whenever a website or blog is hacked, webmasters will find themselves “locked out” of their own site, or notice that their files have been modified or even entirely wiped out. Typically, most compromised sites will become infected with malicious scripts or viruses without the owner even being aware that this has taken place.
To help avoid the heartache of discovering that your web site has been hacked into, below are 10 simple, yet essential and effective security measures that will help to protect your WordPress site from being brute-force attacked.
![]()
Note: Some of the measures 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 file code, then ask your web host or a professional WordPress technical provider for help.
***
Security Measure #1 – Get In Touch With Your Webhosting Service Provider
Get in touch with your webhosting service and ask them what security systems are in place to protect your site from being attacked, and what they do to make sure that your server files and data are being backed up.
Make sure that your webhosting service provider is regularly backing 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 Or Blog Frequently Up-To-Date
You should never rely just on your webhosting provider for your site backups. Instead, learn how to manage your WordPress site or get this service done for you and develop a habit of religiously performing a full WordPress site maintenance routine on a regular basis (e.g. daily, weekly, fortnightly, etc …)
A proper WordPress maintenance routine ensures that:
- All unnecessary files and data are deleted,
- All data and files are free of errors, optimized and backed up,
- All WP plugins, themes and software components are up-to-date,
- etc …
A complete WP maintenance routine looks like this …
(Maintaining your WP web site frequently backed up and up-to-date is vitally important for WordPress security. Image source: WPTrainMe.com)
Again, we cannot stress enough how vitally important it is to maintain your WordPress website frequently backed up and up-to-date. 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 WordPress maintenance yourself, pay a professional to do it but make sure this gets done. Backing up your site 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 many plugins you can use. Learn about a WordPress backup plugin that can fully automate your site backups here: Back Up, Duplicate And Protect Your WP Web Site With Backup Creator WordPress Plugin
Security Measure #3 – Do Not Use “Admin” As Your Admin Username
The mass brute force botnet attack on WordPress is mostly an attempt to compromise site admin panels by exploiting installations that used “admin” as the account name.
For reasons of website security, don’t install 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 it immediately.
We have created a detailed step-by-step tutorial for non-technical WP admin users that shows you how to change your admin username here: Changing Your Admin User Name In WordPress
Security Measure #4 – Avoid Weak Passwords
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 unlock your website.
Unless some measure is put into place to block the brute force attack (see further below for a couple of effective suggestions for doing this), the “bot” will just continue attacking your site until it eventually breaks into your admin area.
Weak passwords, therefore, are really easy targets for attacks. Make sure that you change your password combination to something containing at least eight or nine characters long, with upper and lowercase letters, and add a few “special” characters (%^#$@&*).
![]()
You can use a password management tool like Roboform to create secure login passwords …
(Roboform is a password program that lets you easily generate different passwords)
We have created a tutorial on how to change your WordPress password here: What To Do If You Need To Change Your Password
Security Measure #5 – Prevent 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 WordPress options.

(wp-config.php file)
If hackers break into your website, they will normally look for 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 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, you must prevent your wp-config.php file from being easily 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 Website 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 deleted. If you don’t want to remove these files, then just rename them.
Security Measure #7 – Upgrade Your WordPress Files, Plugins And Themes
Hackers search for vulnerabilities in outdated versions of WordPress that they can exploit, including out-of-date versions of plugins and themes.
Make sure to keep your WordPress files, themes, plugins, etc. up-to-date.
Security Measure #8 – Disable Your Theme Editor
WordPress installations come with a built-in editor that lets administrators edit plugin and theme files from the dashboard area.
You can access your WordPress Theme Editor by selecting Appearance > Editor from your dashboard menu …

(Accessing the WordPress theme editor using the WordPress dashboard menu)
The WordPress theme editor feature allows anyone accessing your site to view and change your theme template files, and create havoc on your site.
To prevent unauthorized people from being able to access 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 – Secure The WordPress Uploads Folder
The “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 view the contents in your “uploads” folder is visit the directory using their web browser …

(WordPress uploads directory)
If any files stored in his folder have weaknesses or vulnerabilities that can be exploited by hackers or malicious users, anyone could upload unauthorized file types or compromise the security of your site.
Protecting your directories will prevent online users from viewing 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 specifically address most security issues WordPress website owners face, such as preventing hackers from accessing vital areas of your site, protecting your files from botnets, preventing unauthorized file uploads, etc.
Most 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 files and causing damage to your site is SecureScanPro.
(SecureScanPro – total security software solution for WordPress)
SecureScanPro is easy to install and easy to use, and does a great job of fixing most of the security issues that WordPress users need to address.
Another security plugin you may want to consider using is BlogDefender.
Blog Defender WordPress Security Product Suite
Blog Defender is a suite of WordPress security video tutorials, plugins and tools, plus a WordPress security PDF/DOC file.
BlogDefender shows you where potential security weaknesses in your WordPress site are …
And then shows you how to fix these quickly …
If you don’t want to buy a premium 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 making sure that your WP software, WordPress plugins and themes are kept up-to-date, tightening file and data security and taking other necessary precautions can expose your site to malicious by hackers and bots.
No matter what type 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.
As a final reminder, below is the advice given by an expert on web security to all WordPress users following 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 will help keep your WordPress site protected from brute-force attacks. 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 service provider in our WordPress Services Directory.
We also recommend subscribing to WPCompendium.org to be notified when we publish new tutorials on WordPress security and reviews of new 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
***


