After installing perl on the server, it seemed like a logical thing to actually do something about it, since the intended use (awstats) did not quite like the setup for some reason (it just runs for hours doing nothing).
So, I started creating the 404-redirect as I mentioned waaaaaay back. It’s a simple perl-script, that looks at REQUEST_URI, REDIRECT_URL and REDIRECT_STATUS. The last one will always be 404, since I only call the script when a 404 occurs.
The script actually does not redirect or do something yet, but it prints out the variables and the basic for the redirection-logic is in there. As for something with “cmd.exe” in it (which I see a lot when I look at the serverlogs) and it will state that you requested an URL with cmd.exe in it.
Now I need to define some nice redirects. To a random anti-virus site (McAfee, Sophos, Norton, etc), to the BSA (people searching for cracks and that kind of stuff), etc.
If you know a nice combination of a requested url (or keyword) and the appropriate redirection, please let me know.