Quantcast
Channel: help – WordPress.org Forums
Viewing all articles
Browse latest Browse all 13924

IT Expert on "wp-admin locked down through htaccess, but still getting TONS of login attempts"

$
0
0

@Daisy101

You need to log into your cPanel account and edit the .htaccess file and erase the code you entered.

After that, add the following lines:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .(wp-comments-post|wp-login|wp-admin)\.php*
RewriteCond %{HTTP_REFERER} !.*YOUR-DOMAIN.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
</IfModule>

This will help you.

Good luck!


Viewing all articles
Browse latest Browse all 13924

Trending Articles