Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Brute force and Four-oh-four Attacks

@modx

Participant

I am trying to add this

RewriteCond %{REMOTE_ADDR} ^212.100.254.105$
RewriteCond %{HTTP_USER_AGENT} Yandex
RewriteCond %{HTTP_USER_AGENT} ^Baiduspider [NC,OR”
RewriteCond %{HTTP_USER_AGENT} ^Sogou
RewriteRule ^.*$ – [F”

on htaccess but not sure where as I get inter error when I do it like this:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{REMOTE_ADDR} ^212.100.254.105$
RewriteCond %{HTTP_USER_AGENT} Yandex
RewriteCond %{HTTP_USER_AGENT} ^Baiduspider [NC,OR”
RewriteCond %{HTTP_USER_AGENT} ^Sogou
RewriteRule ^.*$ – [F”
</IfModule>

# END WordPress

Skip to toolbar