I would like to know if there is anyway to block bots requesting a page using spammy query string.
For the past few days, there have been lot of comment spam bots requesting pages on my wordpress blog using the string ?replytocom=
For instance,
Actual Page: www.examplesite.com/filename/
Reqested URL: www.examplesite.com/filename/?replytocom=774
Is there any way to block such requests in htaccess?
I tried using:
RewriteCond %{QUERY_STRING} ^replytocom*
RewriteRule .* - [L,F]
But it's not working.