wordpress - htaccess - block traffic WITH specific get request -



wordpress - htaccess - block traffic WITH specific get request -

i'm beingness nail request 20 times second. wordpress site, here 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 htaccess, 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 68.171.211.157 allow rewriteengine on rewritecond %{query_string} /?edd_action=check_license&license=506e284d78dyd7dyd5d4d3f07d&item_name=file+name [nc] rewriterule .* - [f]`

tweak 2nd block rule's regex this:

rewritecond %{query_string} edd_action=check_license&license=506e284d78dyd7dyd5d4d3f07d&item_name=file [nc] rewriterule ^ - [f]

wordpress apache .htaccess mod-rewrite

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -