Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess & cgi-bin 1

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
Not sure if this is the right place, but here goes...

If I set up a .htaccess password protected area on my standard web space which will have a html file that is basically a menu to a number of admin PERL scripts.

As I understand it .htaccess only applies to the folder it is in and then sub folders.

What mechanism can i use on the cgi-bin folder to only allow those who logged in via the .htaccess file to run certain PERL scripts?

is this even possible? , does the server store who is logged in via .htaccess for me to be able to check this within the PERL scripts?

thanks 1DMF

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
(What mechanism can i use on the cgi-bin folder to only allow those who logged in via the .htaccess file to run certain PERL scripts?)
You have to apply the same .htaccess file into the appropriate cgi-bin directory, the user would not be prompted for a password again using cached the credentials but the authentication still occurs.
If you need to log the logins you will need additional scripts, .htaccess alone does not do that; the error log, however, would show you all the failed login attempts though.
 
spot on thanks for the info, I was also wondering about logins data, and you answered that as well :)

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
I've just been told by my webhost that IIS doesn't support .htaccess , is this correct?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top