Help to protect all your WordPress sites on your cPanel server quickly and easily from WordPress botnet brute force attacks.
user@server [~]# sudo -i
root@server [~]# vi /usr/local/apache/conf/includes/post_virtualhost_2.conf
root@server [~]# cat /home/.wpadmin # Verify correct username.
root@server [~]# chmod 755 /home/.wpadmin
root@server [~]# service httpd restart
Follow more discussion here at WordPress › Support » HOWTO: Protect all your WordPress sites on your cPanel server quickly and easily
user@server [~]# sudo -i
root@server [~]# vi /usr/local/apache/conf/includes/post_virtualhost_2.conf
Code:
# Paste the following lines.
ErrorDocument 401 "Unauthorized Access"
ErrorDocument 403 "Forbidden"
<FilesMatch "wp-login.php">
AuthName "Authorized Only"
AuthType Basic
AuthUserFile /home/.wpadmin
require valid-user
</FilesMatch>
root@server [~]# htpasswd -c /home/.wpadmin pressuser
root@server [~]# chmod 755 /home/.wpadmin
root@server [~]# service httpd restart
Follow more discussion here at WordPress › Support » HOWTO: Protect all your WordPress sites on your cPanel server quickly and easily