RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
htpasswd only for upload section

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Free
View previous topic :: View next topic  
Author Message
alfiere



Joined: 25 Jan 2010
Posts: 3

PostPosted: Jan 25, 2010 2:41 pm    Post subject: htpasswd only for upload section Reply with quote

Dear all,

I have been trying to set up a password ONLY for the upload part, htpasswd and/or LDAP based.

What I achieve is a password request for the upload part AND the download link too...

Seems to be that index.cgi is called from the upload screen and the download link too Sad

Any tips?

Cheers,
Alf
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2109
Location: UFO Lab

PostPosted: Jan 26, 2010 10:24 am    Post subject: Reply with quote

You need to set up password authorization for dl.cgi only.
Back to top
View user's profile Send private message Visit poster's website
alfiere



Joined: 25 Jan 2010
Posts: 3

PostPosted: Jan 27, 2010 9:29 am    Post subject: Reply with quote

Hi PilgrimX182,
thanks for the answer, but I'm encountering some strange behaviors.


If I set a password on upload_status.cgi
<LocationMatch "/cgi-bin/upload_status.cgi">
when the password is asked, if you click on 'Cancel' the file will be upload.

If I set a password upload.cgi
<LocationMatch "/cgi-bin/upload.cgi">
For the first time/session, I don't have back the script progress bar. The password request has delayed a lot and I receive directly the 'download URL'.

Still need an help Smile

Thanks,
Alf
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2109
Location: UFO Lab

PostPosted: Jan 29, 2010 9:07 am    Post subject: Reply with quote

That is all correct Smile
Apache won't return anything to browser till full upload stream finished pushing to server. That's why delay happens.
Seems you need to secure upload form page.
Back to top
View user's profile Send private message Visit poster's website
alfiere



Joined: 25 Jan 2010
Posts: 3

PostPosted: Feb 01, 2010 6:46 pm    Post subject: Reply with quote

No way, if I protect upload_form.html nothing happens.

But If I directly call the url: http://site.com/cgi-bin/Templates/upload_form.html I'm asked for the passwd.


Sad


Alf
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Free All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group