Hello,
since last cPanel update, my hack to protect Wordpress sites is not working anymore. Worked for years.
Scenario: avoid robots to reach Wordpress/PHP (CPU/memory intensive, password brute-force to WP-Admin). So, I do a simple basic authentication before the real WP login screen. User must basic-authentication "wp"/"wp" before reach the real login screen.
How: Pre VirtualHost Include
Now, WP shows a "page not found" error: https://example.org/wp-login.php?redirect_to=https://example.org/wp-admin/&reauth=1
If I remove my hack, everything works. The file has correct permissions.
Any ideas or other way to achieve the same idea?
Thank you
since last cPanel update, my hack to protect Wordpress sites is not working anymore. Worked for years.
Scenario: avoid robots to reach Wordpress/PHP (CPU/memory intensive, password brute-force to WP-Admin). So, I do a simple basic authentication before the real WP login screen. User must basic-authentication "wp"/"wp" before reach the real login screen.
How: Pre VirtualHost Include
Code:
<FilesMatch "wp-login.php">
AuthUserFile /usr/local/apache/conf/wordpress.password
AuthName "TYPE USER wp AND PASSWORD wp"
AuthType Basic
require valid-user
</FilesMatch>
If I remove my hack, everything works. The file has correct permissions.
Any ideas or other way to achieve the same idea?
Thank you
Last edited by a moderator: