Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • hello Guest, if you cant find the thread you need, post your comment at Request Resource

how to secure WordPress website from hackers and spammers ?

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>
 
Top