Please take a look at Essential CGI Security Practices.
In reply to Re: UberSecure v1.5.2 by cjf in thread html/file security cgi [revisited] by UberDragon13