Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

wp-admin folder, brute force, and password protection

Protecting only wp-admin won’t help a lot, at least it won’t protect your from brute-force attacks.

A brute force attack is a trial-and-error method used to obtain
information such as a user password or personal identification number
(PIN). In a brute force attack, automated software is used to generate
a large number of consecutive guesses as to the value of the desired
data.

So in other words – attacker tries to guess the password by trying to log in with different credentials.

Why protecting wp-admin won’t protect you? Because brute-force attacks are not directed at wp-admin. There are two methods used to perform brute-force attacks on WordPress:

  1. Send credentials to wp-login.php and check the response.
  2. Send some authenticated request to xmlrpc.php and check if authentication error occured.

So if you want to protect yourself from brute-force attacks, you should protect these 2 files. This way attacker won’t be able to guess the credentials.

Of course protecting wp-admin is also a good idea – this way even if someone breaks the password, he still won’t get to wp-admin area.

Although you have to remember that second layer (Basic Auth?) is just one of methods you can use to protect yourself from brute-force. You can also implement login throttling or temporary lockout.

Related Posts:

  1. Is there any way to rename or hide wp-login.php?
  2. Increase of failed login attempts, brute force attacks? [closed]
  3. How to fake a WordPress login?
  4. Brute force attack?
  5. Receiving “This content cannot be displayed in a frame” error on login page
  6. Websites defaced by uploading script using theme editor
  7. Make wordpress admin failed login attempt return 401
  8. WordPress login urls
  9. Store brute-force IP addresses
  10. How to create a private login page for admin.?
  11. WordPress Security – How to block alternative WordPress access
  12. Protecting WordPress login page
  13. Sniffing wordpress user’s credentials
  14. disable site_url redirect in wp-login.php
  15. Does WordPress (or a plugin) reveal login credentials to admin?
  16. Is wp_login_form secure on a non secure page?
  17. WordPress login security
  18. Why isn’t the login page rate limited by default?
  19. How can I password protect a WordPress site without requiring users to log in?
  20. Input sanitation
  21. How to Prevent Brute Force Attack on WordPress
  22. Advice on redirect to lock site from unauthorized users
  23. Where is the php file, that does the checks for login information?
  24. Error on WordPress Login
  25. Access log “POST /wp-login.php HTTP/1.0” 400
  26. force login loophole
  27. I need to find which is the file that checks the DB for correct login (username, password)
  28. How to create separate login for authors/moderators/subscribers?
  29. How to invalidate `password reset key` after being used
  30. Site is not loading after relogin attempts on SSL
  31. Some crawlers/bots attempting to login with very good guesses. How?
  32. Hide wp-login.php but not the widget
  33. How login is possible, if I deny login page via nginx?
  34. WordPress EC2 Security Practices
  35. In Django, how do I know the currently logged-in user?
  36. Can I programmatically login a user without a password?
  37. Can’t log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
  38. What’s the easiest way to stop WP from ever logging me out
  39. How to login with email only no username?
  40. How can I redirect user after entering wrong password?
  41. Login page ERROR: Cookies are blocked due to unexpected output
  42. Separate registration and login for different roles
  43. SSO / authentication integration with external ‘directory service’
  44. Preventing session timeout
  45. How reduce wordpress login session timeout time?
  46. How to prefill WordPress registration with social details
  47. Check for correct username on custom login form
  48. Disallow user from editing their own profile information
  49. I can’t access my site via wp-admin
  50. ‘Password field is empty’ error when using autofill in Chrome
  51. Removing username from the ‘wordpress_logged_in’ cookie
  52. How to show ‘login error’ and ‘lost password’ on my template page?
  53. What is $interim_login?
  54. Custom login form
  55. How to prefill the username/password fields on the login page
  56. wp_signon returns user, but the user is not logged in
  57. Adding extra authentication field in login page
  58. Prevent wp_login_form() from redirecting to wp-admin when there are errors
  59. Redirect user using the ‘wp_login_failed’ action hook if the error is ’empty_username’ or ’empty_password’
  60. wp_signon() does not authenticate user guidance needed
  61. What exactly is ReAuth?
  62. What are the differences between wp_users and wp_usermeta tables?
  63. Can someone explain what wp_session_tokens are, and what are they used for?
  64. Login members using web services
  65. Make my wordpress blog remember my login “forever”
  66. How to check in timber if user is loggedin?
  67. How do I change the language of only the login page?
  68. Disable WordPress 3.6 idle logout / login modal window / session expiration
  69. Stop WordPress from logging me out (need to keep me logged in)
  70. Woocommerce registration page [closed]
  71. How to disable autocomplete on the wp-login.php page
  72. Share login data/cookies between multiple installations
  73. Synchronize WordPress user accounts across multiple domains and installations without using WordPress MU
  74. How to pass users back and forth using session data?
  75. How do I change the logo on the login page?
  76. Why does WordPress hide the reset password key from the URL?
  77. Is it possible to sign in with user_email in WordPress?
  78. How to use current_user_can()?
  79. Avoid to load default WP styles in login screen
  80. WordPress registration message
  81. how to display the wordpress login and register forms on a page?
  82. Limiting sessions to one IP at a time
  83. Does wp_logout_url() destroy a session? (Logging out question)
  84. How can I send a welcome email to a user AFTER they login for the first time?
  85. Can not login with correct username and password
  86. Website Visible only to Registered users
  87. How can i increase the login expiration length?
  88. How do I use add_action from a class method?
  89. How to remove the WordPress logo from login and register page?
  90. How can I add a custom script to footer of login page?
  91. Customize wp_new_user_notification_email()
  92. Need to execute a cron job
  93. Masking logout URL
  94. Login email after registration never sent or received
  95. How can I create a separate blog that is private?
  96. How to keep always logged in development environment
  97. Add Confirm Password field in wp-login.php Password Reset page
  98. Integrate recaptcha and wp_signon – what is needed?
  99. Log in from one wordpress website to another wordpress website
  100. Stop users from logging in from multiple locations
Categories login Tags login, security
Check on which page specific result exist
Stop WordPress Visual Editor converting backticks into code blocks

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress