Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: WordPress – Discourage Brute Force  (Read 2042 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
WordPress – Discourage Brute Force
« on: December 28, 2013, 02:44:07 pm »
WordPress – Discourage Brute Force

A common technique used by hackers to gain unauthorized access to websites is called ‘Brute Force’. Using this technique, hackers use software designed to scan a website for vulnerabilities and gain access by exploiting any of them. I use IP blocking security on my websites because they actively block malicious requests. One common entry point that these brute force bots try to exploit is by running an author scans. In this article, we will show you how to discourage brute force by blocking author scans in WordPress.

First let’s understand what these brute force attempts are trying to do. At first they try to find a username on your blog or the author id. Often the username used to sign into WordPress and the author name are the same. Once they find a username, then this solves 50% of the puzzle. Now they brute force your site to crack the password by trying various different password combinations.

To block author scanning on your website, simply add this code in .htaccess file in WordPress root directory.

1  # BEGIN block author scans
2  RewriteEngine On
3  RewriteBase /
4  RewriteCond %{QUERY_STRING} (author=\d+) [NC]
5  RewriteRule .* - [F]
6  # END block author scans

This will block bots from running author scans on your website. Your website users can still access the author pages, but bots will not be able to do so.