Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 13th, 2000, 06:28 PM
ryanh ryanh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 1999
Posts: 119 ryanh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 41 sec
Reputation Power: 10
I have a script running in a subdirectory to my main cgi-bin directory. I would like to password protect it using standard methods (HTPassword, etc).

However, when I password protect it, the script is not able to post (at least multipart) forms to the program...

Does anyone have any idea why?

Thanks,

Ryan

Reply With Quote
  #2  
Old October 14th, 2000, 11:11 AM
mohammed mohammed is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: London, UK
Posts: 5 mohammed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by ryanh:
I have a script running in a subdirectory to my main cgi-bin directory. I would like to password protect it using standard methods (HTPassword, etc).

However, when I password protect it, the script is not able to post (at least multipart) forms to the program...

Does anyone have any idea why?

Thanks,

Ryan
[/quote]


It is not a good practice to put your CGI script in the Doc Root for security reasons. You should move your script above the Doc Root level where it cannot be accessed from the browser.
If you insist on having your CGI on the Doc Root, you should use the "Directory" or the "location" directive in apache.conf file to stop your script being viewed.
If you password protect the directory with htpasswd (.htaccess) the client will have to provide a password to post to any script in that directory.

Moh'd


Reply With Quote
  #3  
Old October 15th, 2000, 03:21 PM
ryanh ryanh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 1999
Posts: 119 ryanh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 41 sec
Reputation Power: 10
I think you missed my point. that's okay. thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > password protecting cgi directories


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT