Hi. I have a cgi written in perl, that is accessing (opening/ writing to etc) a file in a directory called 'data'. That directory is protected by htaccess. I have noticed that that I get the password prompt when I try to access that directory via http, but when a cgi that is outside the 'data' directory accesses a file in 'data' I get no password prompt, and it retrieves the file.
Is this a problem inherent to .htaccess? Or is there someway that I can protect the files in the 'data' directory from being accesses from a cgi that resides outside of it.
I realize I can just move the cgi into the 'data' dir, but I would like to avoid doing that.