My site is "under attack" : bots from many different IPs are filling a form with spammy content.
IP addresses can't be filtered, they are always different, so I was thinking to filter by QUERY_STRING, to match an URI like this:
www.site.com/search?field1=spamword&field2=another_spamword
The rule :
rewritecond %{QUERY_STRING} ^(.*)spamword(.*)$
rewriterule .* - [F,L]
The regular expression looks right, but the rule is never executed. Any idea what's going on?
Thank you.
RewriteLog
?