How to Protect Your WordPress Admin Area

The .htaccess file is a highly effective configuration file that allows you to enhance your site’s security and efficiency. In this article, we will show you how we can use .htaccess to secure your WordPress admin area by restricting the access to chosen IP’s.
For that purpose Simply use the following code into your .htaccess file:

AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName "WordPress Admin Access Control"
AuthType Basic
<LIMIT GET>
order deny,allow
deny from all
# whitelist Seemab's IP address
allow from xx.xx.xx.xxx
# whitelist Work IP address
allow from xx.xx.xx.xxx
</LIMIT>

 Remember to replace xx.xx.xx.xxx with your own IP addresses.