Administrator
- Apr
- 92
- 5
Staff member
Offline
Paste the following code at the end of .htaccess file . all the login will be hidden by the following code !
Code:
# Block IPs for login Apache 2.2
<files /wp-login.php>
order deny,allow
allow from MYIP
allow from MYIP2
deny from all
</files>
# Block IPS for login Apache 2.4
<Files "wp-login.php">
Require all denied
</Files>
<files wp-config.php>
order allow,deny
deny from all
</files>
# Block WordPress xmlrpc.php requests
<Files xmlrpc.php>
order deny,allow
deny from all
allow from 000.00.000.000
</Files>