PHP

Formmail and php

Having access to a customised 404 page means I’ve been able to set up notification when someone goes to a missing page on my site and I can then correct the links. Its a practise thats worked well and I now get very few error messages coming in. However I am getting several links for various incarnations of formmail.cgi, formmail.php, and formmail.pl all in different locations such as /cgi-bin, / etc. All of them have had the referral page forged so it looks like its my site that has led them to this page (presumably because thats one of the first restrictions someone will use to lock down their mailing routine). I now have to do some more php work with those regex expressions learnt yesterday to not email me if someone requests a formmail page of whatever description. Ideally I’d want to put them in my .htaccess file programatically too so they wouldnt be able to get any more pages (or make them refer to a tarpit of some kind)