Forum Moderators: phranque
I'd not only like to 403 these IP addresses but also keep Apache from accepting the referer (so as to not record it to the access logs and thus make it's way to the statistics script).
I can ban the IPs but the referers still make it through.
- John
*EDIT*
I think this does that but I'm not sure if the referers are still logged? Blocking referers with stings of "123", "456", and "789" in this example...
# Block spam referers trying to get listed in public logs.
<Files /error/error-403.php>
order deny,allow
deny from all
</Files>
RewriteCond %{HTTP_REFERER} (123¦456¦789) [NC]
- John
I believe ther are some older threads around here on the subject -- search for "mod_log_config" or "CustomLog".
Jim