WordPress is often the target of attacks by hackers, due to its popularity.
In early 2013 a large-scale brute force attack began hitting WordPress installations on almost every WP host server in existence.
These attacks were caused by infected computer networks programmed to attack other computers (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)
One of the many ways hackers will attempt to break into WordPress sites is by trying to guess the site’s administration login username and password. This is done using scripts and tools that automatically tries to guess hundreds of login combinations in minutes.
If you’re using weak usernames and passwords, your site can be easily hacked by a malicious script’s persistent attempts to work out your site’s login details.
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)
”Botnets” are networks of 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 or awareness.
Botnets are regularly used to send out mass spam emails.
The screenshot below was taken from an online security monitoring site showing the locations of the command centers of ZeuS – a botnet that has been actively compromising computer networks all around the globe since 2009 …

(The Zeus botnet has been actively compromising computer networks all around the world since 2009. Image source: SecureList.com)
These were well organized and highly distributed attacks. 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 site admin areas occurred. The large-scale attacks continued after this, with over 30,000 WordPress sites and blogs being hacked per day.
News of this worldwide brute force attack was widely reported in all of the major webhosting companiesand leading technology media publications, such as TechNews Daily, Forbes, Tech Crunch, BBC News, PC Magazine, and even on the official website of the US Department of Homeland Security …
(WordPress is the world’s most used CMS which makes it an obvious target for hackers)
Does This Mean WordPress Is Not Secure And We Should Stop Using It?
No. In fact, there are many good reasons why you should use WordPress if you are concerned about the security of your online business.
We explain why WordPress is a secure platform for websites in this article: Why WordPress Is A Secure Platform For Websites –
![]()
It’s important to note that, in the case of the mass brute force attack described above, was no specific vulnerability in WordPress being exploited (the same script was also attacking sites built using applications like Joomla).
Mike Little, one of the co-founders of WordPress, 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 Points
You may think that the information in your site provides no value to hackers, but the reality is that all websites are valuable to a malicious user.
If a malicious user can find a security flaw, that blog can then be employed to target more highly-valued sites.
Additional undesirable results of being hacked include getting blacklisted by search engines, having spammy links advertising things like gambling, porn, etc. inserted into your content, malicious redirects to phishing sites, drive-by downloads (adding malicious programs on your visitors’ computers), and many other nasty things.
The truth is that software-driven bots are looking for weaknesses and trying to hack into your blog right now. Whether they can achieve this or not, depends on how difficult you will make things for them to keep persisting until they can either find how to get access, or give up and decide to look for a more vulnerable target.
How Much Information About Your Site Are You Broadcasting To Hackers?
If you visit a site like Hackertarget.com and run your website through their WordPress security check …
(WordPress Security Scan Image source: Hackertarget.com)
You will see that the check returns a number of results and details about your WordPress site …

(website security scan results. Image source: Hackertarget.com)
It should be obvious after using the above tool that if you are able to freely access all of this information about your website, then hackers can too.
(Product image source: BlogDefender website)
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 on your server can be potentially valuable information to hackers, as these can inform them about potentially exploitable vulnerabilities, especially in older versions.
If your website is powered by WordPress and you’re not precautionary steps to bolster the security of your site, then it’s practically guaranteed that, at some time in the near future, someone will attempt to hack your installation, because these attacks are systematically hitting WordPress installations worldwide!
Typically, whenever a site gets compromised, site owners will find themselves completely “locked out” of their own site, or notice that their files have been vandalized or even that their content has been entirely wiped out. Typically, compromised sites will become infected with malicious scripts without the owner’s knowledge or awareness.
To avoid the heartache that comes with discovering that your website or blog has been hacked into, below are 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 steps shown below require some technical understanding of how to modify core WordPress or server files. If you lack these 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 – Contact Your Host
Get in touch with your hosting provider and ask them exactly what precautions have been put into place to help prevent your site from brute force attacks, and what is done to ensure that your server files get backed up.
It’s important to check that your webhosting service regularly backs up your server files and that, if anything goes wrong, you can quickly and easily get back your files and data.
Security Measure #2 – Perform Regular WordPress Backups And Keep Your Website Or Blog Regularly Maintained
You should never rely on your webhosting provider for your site backups. Instead, learn how to maintain and manage your WordPress site or pay someone to get this done for you and maintain a habit of religiously performing a complete 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 WP files and data are free of errors, optimized and backed up,
- All WordPress software, plugins and themes are up-to-date,
- etc …
A proper WP maintenance routine looks like this …
(Maintaining your WP website or blog backed up and updated is vitally important for WordPress security. Image: WPTrainMe.com)
Again, we cannot stress enough how vitally important it is to maintain your WordPress installation completely backed up and updated. WordPress maintenance is not hard to do 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, get someone else to do it but make sure it 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 site manually, there are a number of plugins you can use. Learn about a WordPress backup plugin that can automate your backup process here: Backup, Clone And Keep Your WP Web Site Protected With Backup Creator WP Plugin
Security Measure #3 – Make Sure That Your Username Is Not “Admin”
The brute-force botnet attack on WordPress sites was mostly attempting to compromise site admin panels and gain access to the site by exploiting WP installations that used “admin” as the user name.
For reasons of website security, avoid setting up sites with the username “admin”. This is the first area hackers will test. If your site’s user name is “admin”, change this immediately.
For a step-by-step tutorial for non-technical WP admin users on how to change your WordPress admin username, go here: Changing Your WP Username From Admin To Another Username
Security Measure #4 – Use A Strong Password
A “brute force” attack occurs when a malicious script continually and persistently hits a login or password field with different strings of characters in an attempt to guess the right combination that will unlock your site.
Unless some measure is put into place to prevent the brute force attack (see further below for a couple of effective ways to do this), the “bot” will just continue to attack your site until it eventually breaks into your admin area.
Passwords that are easy to guess, therefore, make really easy targets for hackers. Make sure that you change your password to something containing at least 8 characters long, with both upper and lowercase letters, combined with a few “special” characters (%^#$@&*).
![]()
If you have trouble coming up with strong passwords or you 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 passwords)
For a step-by-step tutorial that shows you how to change your password, go here: What To Do If You Need To Change Passwords In WordPress
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 options for WordPress.

(wp-config.php file)
If hackers break into your WordPress site, they will normally search for your 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 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 attacks and even being used as part of a bot net, therefore, 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 Blog Installation Files
Delete or rename the install.php, upgrade.php and readme.html files from your server.
These files are not required after installation and can be deleted. If you don’t want to remove these files, then just rename them.
Security Measure #7 – Keep Your WordPress Files, Themes & Plugins Up-To-Date
Hackers search for vulnerabilities in previous versions of WordPress that can be exploited, including outdated versions of WordPress themes and plugins.
Ensure that all of your WordPress installation files, plugins, themes, etc. are always up to date.
Security Measure #8 – Disable Your Theme Editor
WordPress installations come with a built-in editor that allows the site administrator to edit theme and plugin files from the dashboard area.
You can access your WordPress Theme Editor by selecting Appearance > Editor in the dashboard menu …

(Accessing the WordPress theme editor using the dashboard menu)
The WordPress theme editor lets anyone accessing your site’s admin view and modify your theme templates, and cause mayhem on your site.
If you want to prevent people from accessing your WordPress Theme editor, you will need to disable it. This can be done by editing your wp-config.php file.
Security Measure #9 – Remove Access To The WordPress Uploads Folder
The “uploads” folder contains all the media files that get uploaded to your blog.
By default, this folder is visible to anyone online. All a person needs to do to view the contents in the “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 malicious users, this could threaten the security of your site.
Protecting your directories will prevent unauthorized people from viewing 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 ask help from someone with experience if you are not sure about what to do.
Security Measure #10 – Security Plugins
There are some great security plugins for WordPress available that will address common security issues faced by WordPress website owners, such as preventing unauthorized users from gaining access to vital information about your site, protecting your site from malicious scripts, preventing injections of code into files, 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 potential issues that could lead to hackers accessing your website files and causing irreparable damage to your site is SecureScanPro.
(SecureScanPro – WordPress complete security software)
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 security plugin you may want to look at using is BlogDefender.
Blog Defender WordPress Security Plugin
(Blog Defender WordPress Security Plugin)
This product is a package of WordPress security video tutorials, plugins and tools, plus a WordPress security PDF/DOC file.
BlogDefender shows you where the security holes in your website are …
And then shows you how to fix these quickly …
If you don’t want to invest in a security plugin like SecureScanPro or BlogDefender, you can use various free plugins, such as Limit Login Attempts …

WordPress is a secure platform, but neglecting basic maintenance tasks like ensuring that your WordPress software, WP plugins and WordPress themes are kept updated to their latest versions, 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 website or blog is something you simply cannot afford to ignore.
As a final reminder of the importance of website security, below is the advice given by a website security expert to all WordPress users following the worldwide 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 of the utmost importance if you run a WordPress site. Hopefully, this article will help prevent brute force attacks on your WordPress site. If you need any further help or assistance with WordPress security, please consult a professional WordPress security specialist, or search for a professional WordPress service provider in our WordPress Services Directory.
We also recommend subscribing to WPCompendium.org to be notified whenever we publish new information on WordPress security and reviews of new security plugins.
***
"I am beyond impressed with what you have put together. I can tell that you put a ton of hard work into building what you have. You have the absolute best content on WordPress I have ever seen!" - Robert T. Jillie
***

