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
order deny,allow
deny from all
# whitelist Seemab's IP address
allow from
# whitelist Work IP address
allow from

 Remember to replace with your own IP addresses.