I’m being hit with a get request up to 20 times a second. This is a wordpress site, here is an attached apache log
108.162.216.170 - - [24/Jun/2014:16:42:26 -0700] "GET /?edd_action=check_license&license=506e284d78dyd7dyd5d4d3f07d&item_name=FILE+Name HTTP/1.1" 200 526 "-" "WordPress/3.9.1; http://soomaalidamaanta.net"
Here is my htaccess, but I’m not having luck blocking it.
RewriteEngine on
Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} soomaalidamaanta.com [NC,OR]
RewriteCond %{HTTP_REFERER} soomaalidamaanta.net
RewriteRule .* - [F]
order allow,deny
deny from 68.171.211.157
allow from all
RewriteEngine On
RewriteCond %{QUERY_STRING} /?edd_action=check_license&license=506e284d78dyd7dyd5d4d3f07d&item_name=FILE+Name [NC]
RewriteRule .* - [F]`
Tweak your 2nd block rule’s regex like this:
I’d change the first rule to:
and drop the second rule.
soomaalidamaanta
is in the request, it looks to me like you don’t need the second rule..net
or.com
, the one conditions finds it either way^
is enough, no need for the.*
I ended up finding out how to block by user agent, and since this user agent specified the site in question, I blocked it and it’s working now.