WordPress often is targeted by hackers.
In April 2013 a global brute-force attack hit WordPress installations across virtually every WP hosting server in existence around the world.
These attacks were caused by botnets (computer networks infected with viruses and programmed to attack other vulnerable sites).
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)
One of the many ways hackers will attempt to break into a WordPress site is by trying to guess the site’s administration login username and password. To attempt this, hackers use scripts and tools that automatically tries to guess hundreds of possible login combinations in minutes.
If you’re using weak login details, your site could be an easy target for hackers.
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 compromised and infected with malicious code or scripts, which can then be controlled remotely as a group, often without the unsuspecting computer owners’ knowledge or awareness.
Botnets are typically used to send out mass spam emails from 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 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 source: SecureList.com)
These were highly distributed and well organized attacks. Over 90,000 IP addresses were identified by a number of hosting companies in the initial attack alone, when the web was flooded with millions of attempts to force their way into WordPress user admin areas. The mass attack then continued, with over 30,000 WordPress sites and blogs being hacked per day.
Coverage of this large-scale brute-force botnet attack was widely reported in all the major webhosting companiesand leading technology publications, such as Forbes, TechNews Daily, PC Magazine, BBC News, Tech Crunch, and even on the official US Department of Homeland Security website …
(WordPress is the world’s most popular CMS which makes it a frequent target for malicious attacks by hackers)
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 use WordPress if you are concerned about website security.
We explain why WordPress is a secure web platform in this article: How Secure Is WordPress?
![]()
It’s important to note that, in the case of April 2013 brute force botnet attack described above, there was no WordPress vulnerability being exploited (the same script was also attacking sites built using other CMS 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 Website From Brute-Force Attacks – Ten Security Measures
Every blog with a security vulnerability presents an opportunity to hackers. No blog is guaranteed immunity from being attacked by hackers. Large, medium and small web sites, personal blogs, government sites … even websites owned by web security and anti-hacking experts can and have been targeted.
If a hacker can exploit a vulnerability in your security, the web site can then be used as a “bot” in a planned cyber attack against other highly-valued websites.
Additional undesirable impacts of being hacked and your site security compromised include being blacklisted by search engines, having spammy links promoting things like online meds, discounted fashion, etc. inserted in your content, redirecting visitors to phishing sites and other websites, drive-by downloads (adding malicious software on your visitors’ computers), and lots of other nasty things.
The harsh reality is that hackers are trying to hack into your web site right now. Whether they will break into your site will depend on how difficult you will make it for them to keep trying until they either find a way to break in, or 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 Hackertarget.com and run your website through their WordPress security scan …
(WP Security Check Product image source: Hackertarget.com)
You will see that the scan will return a number of results and information about your website setup …

(WP security check results. Source: Hackertarget.com)
It should be obvious after using the tool shown above that if you can access all of this information, then hackers can too.
(Product image source: 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 in your site are all potentially valuable information to hackers, as these can inform them about any exploitable security weaknesses, especially where site owners haven’t updated their software versions.
If your site or blog is powered by WordPress and you are not taking appropriate steps to toughen up your site, then we can practically guarantee 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 website gets broken into, blog owners can discover much to their dismay that they have been “locked out” of their own site, or notice that their content has been modified or even entirely wiped out. Typically, most compromised sites will be infected with malicious scripts or viruses without the owner’s knowledge or awareness.
To avoid the heartache (and significant loss of valuable business data) of discovering that your web site has been hacked into, we have listed below ten simple, yet essential and effective security checks that will help to prevent your WordPress site from being brute force attacked.
![]()
Note: A few of the recommended measures shown below require some technical understanding of how to modify core WordPress and/or server files. If you are not technical, or don’t want to mess around with code on your site, then ask your web host or search for a professional WordPress service provider in our WordPress Services Directory.
***
Security Measure #1 – Contact Your Hosting Provider
Get in touch with your webhosting provider and ask them exactly what security systems have been put in place to protect your site from being attacked, and what is done to ensure that your files and data get regularly backed up.
It is important to make sure that your host regularly backs up your server files and that, if disaster strikes, you can quickly and easily get back your files.
Security Measure #2 – Perform Full WordPress Backups And Keep Your Website Regularly Up-To-Date
Never rely on your hosting provider for your site backups. Instead, learn how to maintain and manage your WordPress site or get this service done for you and maintain a habit of religiously performing a complete WordPress site maintenance routine on a frequent basis (e.g. weekly, monthly, etc …)
A full 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 WordPress software, plugins and themes are up-to-date,
- etc …
A complete WP site maintenance routine looks like this …
(Maintaining your WP website fully backed up and up-to-date is vitally important for WordPress security. Source: WPTrainMe.com)
Again, we cannot stress enough how important it is to maintain your WP website frequently backed up and updated. WordPress 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 someone to do it but make sure it gets done. Backing up your website is the next most important thing you must do after making sure that you still have a pulse!
If you don’t want to perform manual backups, there are a number of plugins you can use. Learn about a WordPress backup plugin that can automate your site backups here: Backup, Clone And Keep Your WP Sites Protected With Backup Creator WP Plugin
Security Measure #3 – Do Not Use “Admin” As The Admin Username
The large scale brute-force attack on WordPress is mostly attempting to compromise site admin panels and gain access to sites by exploiting sites with “admin” as their username.
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 blog’s username is “admin”, change it immediately.
For a simple tutorial for non-technical WordPress users that shows you how to change your admin username, go here: Changing Your WordPress Admin Username To A Different Username
Security Measure #4 – Change Your Password
A “brute force” attack occurs when malicious software continually tries to guess the right combination of characters in a password and username that will unlock your site.
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 persist in attacking your site until it eventually “cracks” the code.
Weak passwords, therefore, become very easy targets for bot attacks. Make sure that you change your password to a string that is at least 8 characters long, and that includes upper and lowercase letters, and add 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 management program like Roboform …
(You can use a password software tool like Roboform to help you generate difficult passwords)
We have created a simple tutorial for non-technical WordPress admin users on how to change your admin password here: What To Do If You Need To Change A Password In WordPress
Security Measure #5 – Prevent Your wp-config.php File From Being Easily Accessible
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 a hacker breaks into your WordPress website, they will normally try to access your wp-config.php file, because this file contains your database information, 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.
In order to protect your WordPress site from being attacked and even being used as part of a bot net, therefore, you must prevent your wp-config.php file from being accessed. 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
Rename or delete your install.php, upgrade.php and readme.html files.
These files are not required after installation. If you don’t want to delete these files, just rename them.
Security Measure #7 – Keep Your WordPress Software, Themes & Plugins Up-To-Date
Hackers are always on the lookout for vulnerabilities in earlier versions of WordPress that they can exploit, including out-of-date versions of WordPress themes and plugins.
Make sure to always keep your WordPress software files, plugins, themes, etc. up-to-date.
Security Measure #8 – Disable Your Theme Editor
WordPress comes with a built-in editor that lets the site administrator edit theme and plugin code inside the dashboard area.
In WordPress, you can access your WordPress Theme Editor by selecting Appearance > Editor in the main menu …

(Accessing the WordPress theme editor via the admin menu)
This means that anyone logging into your site can see and modify all of your WordPress files, and create havoc on your site.
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 Your Site’s Uploads Directory
The “uploads” folder contains all the media that gets uploaded to your blog.
Normally, this folder is visible to online users. All someone has to do to see the contents in your site’s “uploads” directory is visit the 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 or malicious users, this could become a serious threat to 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 named “index.php”) to your uploads directory, and so on. Again, it’s best to get professional help if you are unsure about what to do.
Security Measure #10 – WordPress Security Plugins
There are a number of WordPress security plugins available that specifically address many common security issues WordPress site owners face, such as preventing unauthorized users from gaining access to vital information about your site, protecting your website from malicious software, preventing injections of code into files, etc.
Most WordPress plugins address some but not all areas of WordPress security. One WordPress security plugin that does a comprehensive job of scanning, fixing and preventing potential issues that could lead to hackers accessing your site files and damaging your site is SecureScanPro.
(SecureScanPro – total security plugin for WordPress)
SecureScanPro is easy to install and easy to use, and addresses most of the security issues 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
(Blog Defender Security Suite For WordPress)
This product is a suite of WordPress security video tutorials, WordPress plugins and tools, plus a WordPress security PDF/DOC file.
BlogDefender scans you website for potential security weaknesses …
And then shows you how to quickly and easily fix these …
If you don’t want to buy a premium security plugin like SecureScanPro or BlogDefender, then use various free plugins, such as Limit Login Attempts …

WordPress is a secure web platform, but neglecting essential maintenance tasks like keeping your WP installation, plugins and WordPress themes updated to their latest versions, tightening file and data security and taking other necessary precautions can have disastrous consequences.
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 securing your web sites.
As a final reminder, below is the advice given by an expert on web security to all WordPress users following the mass brute-force attacks 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, this article has given you the initial guidelines and help you need to 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 professional WordPress service provider in our WordPress Services Directory.
Also, don’t forget to subscribe to WPCompendium.org to receive notifications whenever we publish new information on WordPress security and tutorials about new WordPress security plugins.
***
"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
***

