LATEST >>

Welcome Here And Thanks For Visiting. Like Us On Facebook...

EXEIdeas – Let's Your Mind Rock » WordPress / WordPress Security » How To Block Author Scans In WordPress For Hackers?

How To Block Author Scans In WordPress For Hackers?

How-To-Block-Author-Scans-In-WordPress-For-Hackers
As you know that WordPress security is so weak that its quite easy for every newbie to break it if you will not do some changes. There are many ways to hack a WordPress blog but most easy way is through login form by entering random password through any script.

But at login hackers have to guess UserName first then have to password. So its time to keep them stuck in UserName instead of forwarding for password guess. In WordPress the admin has default profile at 1st position that is automatically created while you will install WordPress. Now if you have many writers then hackers first have to fine main admin from those post writers.

For this purpose, Hackers run an author scan and find the admin that is at first position. Hackers write http://www.example.com/?author=1 in address bar and the resulting post of a writer confirm that this is the admin of WordPress blog then they start hacking him.

So its time to block these type URL on your WordPress blog and show “403 Permission Denied” if anyone try to open it that can be done via short codes that we shared below.

Table of Contents

How To Block Author Scans?

Step 1:) Open Appearance > Editor file in your WordPress dashboard.

Step 2:) Open your Theme Function (function.php) file from the list of your theme file.

Step 3:) Copy the below code and Paste it in the end of function.php file.

/* --------------------------------------------------------------------------------- *
 * Block Author Scans In Your WordPress Blog
/* --------------------------------------------------------------------------------- */
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (author=\d+) [NC]
RewriteRule .* - [F]

Step 4:) Update file.

Step 5:) There you will the below image when you will open the author scan link.

Block WordPress Author Scans

Last Words:

This is what we have and shared in easy steps for newbies so that they can easily know how it works. Stay with us because we are going to share a whole guide step by step about WordPress and make it easy for you. If you liked it then share it and be with us to get next tutorial. If you have any problem then feel free to ask us. We will help you with what we can or have.

You Like It, Please Share This Recipe With Your Friends Using...

Be the first to write a comment.

Leave a Reply

Your email address will not be published. Required fields are marked *