I have a CGI application that takes action as soon as it's loaded. Unfortunately, google's bots found it and they are ignoring the norobots, so the actions are being triggered at random times. So I want to password protect the CGI code. I don't want the
cgi-bin script to handle the passwording - I want Apache to do it before the script runs.
I can't see how to do this? Apache finds
cgi-bin via a
ScriptAlias. There's no
Directory tag to set an
AuthType on. Creating a directory for the script and handling it with
<Directory> doesn't run it as a script.
Is there a trick to this?