In order to use verifycgi, it should be specified as the interpreter for your script. By making this change, you ensure that this script will not run from the command line. By using verifycgi, you should be able to safely use setuid scripts to perform privileged operations and know that they are only performed by users that come through the HTTP server - authenticating, if required. Script security still requires attention to detail, but this simple tools provides a vital first defense. This information is maintained by Kyler Laird.
Constructive feedback is welcome.