Hi,
I've tried setting up authentication to limit attacks to wp-login.php for WordPress sites.
When I do, there is no prompt and the pages/directories keep loading infinitely.
These are the directives I put in /home/.htaccess:
I've also tried using the Directory Privacy tool with the same result.
I've tried setting up authentication to limit attacks to wp-login.php for WordPress sites.
When I do, there is no prompt and the pages/directories keep loading infinitely.
These are the directives I put in /home/.htaccess:
Code:
ErrorDocument 401 "Unauthorized Access"
ErrorDocument 403 "Forbidden"
<FilesMatch "^(wp-login|xmlrpc)\.php$">
AuthName "Restricted"
AuthType Basic
AuthBasicProvider file
AuthUserFile /home/.htpasswd
require valid-user
</FilesMatch>