Hi, I have a Snitz forum that's getting hit hard by automated posters. I've looked at my logs and amazingly they are all using a unique user agent and I can eliminate 99.9% of this spam by blocking it or redirecting to a 404 or something. Is there any chance someone can post some suitable code for this? It doesn't have to completely accurate, I know a little asp, I just don't know where/how to start coding this. Green given for all answers... Cheers, Paz.
Are you sure about the ServerVariable syntax? It should be RefAGENT = Request.ServerVariables("HTTP_User_Agent") Code (markup): instead of RefAGENT = Request.ServerVariables("HTTP_User-Agent") Code (markup):
Yes, thanks for that, I thought it worked but I obviously didn't test it properly. I've been racking my brains trying to get it working, there was another problem with the other anti-spam code, so here's something tested with a custom user agent using a Firefox extension;