Skip to content
Wordpress, WooCommerce, Php, Html, CSS
  • Home
  • Tutorials
  • WordPress Courses
  • Plugins
  • Showcase
  • News
  • Contact

How to Discourage Brute Force by Blocking Author Scans in WordPress

January 8, 2021 by admin

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. We use Sucuri for security of our 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.

Note: If you are using Limit Login Attempt and Google Authenticator, then you are pretty well-protected against brute-force attacks.

First lets 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 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.

# BEGIN block author scans

RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (author=d+) [NC]
RewriteRule .* - [F]

# 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.

We hope that you found this tip useful. We want to emphasize that this does not prevent brute force attacks. This is just a cautionary step that you can take to discourage the hacker. When someone desperately wants to attack your site, then they will find a way to do so. We strongly recommend that you use Sucuri and keep regular WordPress backups. P.S. here are 5 reasons why we use Sucuri.

This tip was sent by: Ian Armstrong

Categories Tutorials Tags brute force, google authenticator, limit login attempts, security, sucuri
Post navigation
44 Best Responsive WordPress Themes
How to Generate and Add QR Codes in WordPress

Product Highlight

This first widget will style itself automatically to highlight your favorite product.

Learn more

Recent Posts

  • Something's not Right HereHow to Fix and Cleanup the TimThumb Hack in WordPress
  • Prevent Email Spam with WordPress AntiSpamBot Function
  • Amazon Reloaded SetupHow to Easily Insert Amazon Affiliate Products in WordPress Posts
  • How To Limit Search Results For Specific Post Types in WordPress
  • Pin IconsPin Posts in WordPress With Post Admin Shortcuts Plugin

Follow Me

  • Facebook
  • Twitter
  • Instagram
  • Privacy Policy
  • Terms
  • Contact
© 2021 Wordpress, WooCommerce, Php, Html, CSS • Built with GeneratePress