wp_admin brute force hacks

Asked by:
HubFans / n/a Points
Time:
2015-09-07 7:31 pm EST
Category:
Htaccess
Hits:
92
Yesterday I could not login to my wp dashboard. I was informed my site had a hack attempt or was hacked. I was directed to a page with options for protecting it. This is what I chose.

ErrorDocument 401 "Denied"
ErrorDocument 403 "Denied"

<FilesMatch "wp-login.php">
AuthType Basic
AuthName "Secure Area"
AuthUserFile "/home/example/.htpasswds/public_html/wp-admin/passwd"
require valid-user
</FilesMatch>
This morning I could not get into my site again. Error Code 500. I called in to get help and the tech needed my user name and password for my wp_admin. I did not have one nor do I remember creating one. He had my normal wp login info, but it did not work for him either. He took the password off the directory and we were both able to log into wp dashboard ok.
I looked back into my htaccess folder to check to see if everything was ok, and found part of the code missing:
ErrorDocument 401 "Denied"
ErrorDocument 403 "Denied"

<FilesMatch "wp-login.php">
AuthUserFile "/home/example/.htpasswds/public_html/wp-admin/passwd"
</FilesMatch>

So,can anyone tell me what happened?, Do I need to replace the code again or what?

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

johnpaulb-whh2
Staff
12,339 Points
2015-09-08 11:21 pm EST
Hello,

Thank you for contacting us about issues logging into your WordPress dashboard. Our WordPress article on Brute force attacks contains several options. It looks like you password protected your directory, which blocked you out. Then, when you removed it, you were able to regain access.

If you want the admin section secured, I recommend password protecting the directory via cPanel, which allow you to create a username/password.

There are also many security plugins available for WordPress, that can help secure your site.

Let us know if you have any further questions.

Thank you,
John-Paul

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}