Forum Moderators: phranque
a 4XX status code response would be most appropriate.But which 4xx? For some types of requests, such as ones in /wp-blahblah, I like to return a manual 404--meaning the server doesn't have to waste time looking for a nonexistent file on the off chance the robot wasn't blocked on other grounds--because it gives no information. A 403 says “I’m onto you”; a 404 says “Er, dur, I have no idea what you’re talking about.”
Is that German?Funny, I tend to think of spammers as grammatically masculine. (Quick detour to Cassell's Dictionary assures me that beards* are too.) With the possible exception of the ones that hit Disqus threads with a made-up female name.
... I've never explored header based blocking. Is there a source/sample I can look at? Always ready to learn something new.
As my .htaccess grows I wonder if there are any IPs left to block