I want to put a CGI program in place of index.html so as to Not respond to referer spammers, and thus not in-turn spam the spoofed IP address they supply. My sites get spammed by referer spammers (eg rankings-analytics) and I'm aware that my Apache will respond with the index.html. But of course where it sends it is to some poor unsuspecting IP address supplied by the spammer that also doesn't want to be spammed, and will think it's my site doing it (which is even worse).
But how do I do that please?