I am looking for an easy way to add some sort of authentication to my program. I think that .htaccess and the $ENV{"REMOTE_USER"} variable is an easy way. My request is an example using this variable requiring valid login or fails to work. My main question is actually how .htaccess and this $ENV{"REMOTE_USER"} work together. Do i put and .htaccess file in my cgi-bin directory that the program is in? I have it semi-working, except it won't pop up with a login window when its in my cgi-bin. And the script still runs only i get no value for the variable i set equal to $ENV{"REMOTE_USER"}.