I downloaded and installed helicon ape. Within the httpd.conf file inside helicon, I have this:
RewriteLog “C:\Program Files (x86)\Helicon\Ape\rewrite.log”
RewriteLogLevel 9
And my .htaccess file says:
# Helicon Ape version 3.1.0.113
# Protect from spam bots
RewriteEngine On
RewriteLog “C:\Program Files (x86)\Helicon\Ape\rewrite.log”
RewriteLogLevel 2
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*mydomain.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
But still nothing showing up in the log as my “comments” continues to be spammed.
Understood. I’ve tried using the IIS URL rewrite module but it doesn’t work for the above script. Any other suggestions?