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

Blocking access to wp-login via htaccess not working

As long as a plugin is blocking excess login attempts, then I am not sure that additional protection is needed. The plugin should be protecting against the attempts at credential guessing.

There will always be login attempts on sites, even if they aren’t WP sites. You could look at your access logs (filtering by a 40x result code) and see tons of attempts to access things that aren’t available on your site. Part of the way things are.

As long as you are blocking excess logins, and have strong passwords for your accounts, I don’t see the advantage of an additional layer of security (via htaccess passwords).

Those login attempts will always be happening. Your defense against them is the plugin that limits login attempts, and strong passwords.

Related Posts:

  1. Attach to wp-login.php and xmlrpc.php
  2. Basic Auth .htaccess on wp-login, but allow logout from woocommerce
  3. Improve wordpress security by hiding non public resources
  4. Does this .htaccess security setting really work?
  5. Change Login URL Without Plugin
  6. File and directory permissions
  7. adding rewrite rules in .htaccess
  8. Using “wordpress_logged_in” to restrict direct access to uploads folder in 2021
  9. WordPress URL/Folder ReWrite using Htaccess
  10. Which WordPress scripts need to be executable for a fresh installation?
  11. XMLRPC filtering through htaccess not working
  12. Restricting user login by IP address
  13. WordPress: Adding Security
  14. How do I test to ensure that my wp-config file is protected?
  15. WordPress not seeing .htaccess rules
  16. Rules in .htaccess only if the requested URL is /wp-admin
  17. Disable directory browsing of uploads folder
  18. Strange behaviour of is_user_logged_in() and get_current_user_id()
  19. Selectively Disabling PHP via .htaccess in Root Directory
  20. Should I prevent access to .htaccess and wp-config.php files?
  21. Blocking wp-login in HTACCESS has also blocked password protected pages
  22. Using htaccess to prevent spam through wp-comments-post.php
  23. How can I create a private site that is inaccessible from the outside?
  24. Restrict Content for only Contributors via .htaccess
  25. Allowing access to certain WordPress created pages or posts with htaccess / htpasswd
  26. Security headers disappear on WordPress pages
  27. Why is this line of code Wrong in every WordPress .Htaccess security article?
  28. How to redirect all HTTP requests to HTTPS
  29. Best collection of code for your .htaccess file [closed]
  30. Default .htaccess file for WordPress?
  31. Which one does WordPress prioritize when it comes to php.ini, wp-config and .htaccess?
  32. Security and .htaccess
  33. WordPress site hacked. Has .htaccess been hacked?
  34. htaccess problem after saving Settings
  35. Protecting direct access to PDF and ZIP unless user logged in (without plugin)
  36. Stop WordPress and Plugins from Overwriting .htaccess
  37. How to fake a WordPress login?
  38. htaccess disable WordPress rewrite rules for folder and its contents
  39. htaccess rewrite conflict with wordpress rules and ssl
  40. htaccess https redirect from www to non-www
  41. What does a security risk in a plugin look like?
  42. Htaccess for Wordpess set on single subdomain
  43. Securing wp-admin folder – Purpose? Importance?
  44. .htaccess and 500 error, extra character added
  45. Name-based virtual host configuration in Apache seems to cause a “500 Internal Server Error”
  46. Place static HTML files in path below WordPress page
  47. Static raw HTML page
  48. WordPress + Magento .htaccess ReWriteRule Issue (www vs. non-www)
  49. Plugin to edit htaccess file
  50. htaccess rewrite for author query string when WP is in subfolder
  51. Why “Settings->Permalinks” creates .htaccess file on nginx server?
  52. .htaccess for wordpress inside another wordpress install
  53. .htaccess file redirecting to parent directory
  54. Blog.php or how to display recent posts?
  55. Options for restricting access to wp-admin
  56. Rewrite /?rest_route=/ link to /wp-json/ without changing default permalink structure in apache
  57. Globally force SSL on all pages
  58. Serve apache 404 for missing assets rather then wp 404 template WP_Rewrites
  59. Isolating WordPress to a subfolder
  60. Remove year and month in URL using .htaccess
  61. index.php not loading in main folder of wordpress
  62. Admin-Ajax.php, SSL, Non-SSL
  63. How to Block Access to Standard Login Flow and Comment Flow
  64. How disable SSL redirect for specific URL?
  65. WordPress site displaying 404 for any page apart from index
  66. Which ways can be used to log in to WordPress?
  67. Why does the header set X-Robots-Tag apply to all pages?
  68. Permalinks not working on second wordpress installed in a subdirect
  69. How to avoid wordpress permalink rules to inherit in a sub-folder
  70. How to change “wp-admin” to something else without search-replacing the core?
  71. Error:406 not acceptable
  72. Unable to access WP admin
  73. .htaccess Rewrite URL WordPress
  74. Move wordpress to folder without changing urls
  75. Rewrite rule not working
  76. A plugin changes my .htaccess file and I can’t access httpd.conf as that’s a shared server
  77. Cant block wordpress readme files
  78. Change wp-content without changing the name of the folder
  79. 404/500 error on /wp-json
  80. WordPress keeps deleting .htaccess file
  81. Correct htaccess to display page while also passing in GET parameters
  82. What is the role of .htaccess file in WordPress?
  83. Using WordPress only for the backend, and using AngularJS as a frontend
  84. Temporary .htaccess blocking is disabling WP Crons from running?
  85. Block access to wp-admin
  86. How to restrict access to wp-content, wp-includes and all sub-folders
  87. Two domains on one WordPress Installation
  88. .htaccess redirects disappeared after re-saving permalinks
  89. Protect Upload Folder Files With Ampersand Problem
  90. How have I misconfigured basic auth for my wordpress site?
  91. Remove File Extension for Page Outside of WordPress
  92. Is it possible to dynamically redirect URL using htaccess?
  93. How can I code my plugin to safely modify .htaccess?
  94. Prevent users from browsing through the media galleries
  95. .htaccess for wordpress in separate folder
  96. How to modify the .htaccess to force ssl on login and admin pages
  97. WordPress trims off the forward slash when import
  98. WordPress mod_rewrite is canceling/overwriting my other mod_rewrite rule
  99. .htaccess and WordPress Admin Bar
  100. WordPress best solution shared theme for consumers and businesses (two url’s one instaltion)
Categories htaccess Tags .htaccess, security, wp-login-form
Disable wordpress image sizes generation
Error “Call to a member function switch_to_locale() on null” during insert_with_markers

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