How To Block Access to wp-login.php

The easiest way to block wp-login.php page is through .htaccess

First of all make backupĀ of the .htaccess file.

Go to the end of the file. and paste below lines:

<Files wp-login.php>
order deny,allow
deny from all
allow from <YOUR IP>
</Files>

 

 Wordpress    
 
Fully optimised SSD hosting

Optimised for WordPress & other applications