logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Authorisation and Sub Folders
Author
geffers



Joined: 27 Oct 2013
Posts: 11
Location: UK,London

PostPosted: Mon 28 Oct '13 10:48    Post subject: Authorisation and Sub Folders Reply with quote

Folks,

Apache 2.2.22

Very new to Apache but learning slowly.

I have a very small web page and have simple user and password log on protection. This is set up on the apache2.conf file and not the htaccess file.

If I give someone an actual file link from a sub directory for them to use with wget will they be asked for login details?

Geffers
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 28 Oct '13 11:29    Post subject: Reply with quote

There are some examples on http://httpd.apache.org/docs/2.2/howto/auth.html

If you still have a question ask again.
Back to top
geffers



Joined: 27 Oct 2013
Posts: 11
Location: UK,London

PostPosted: Tue 29 Oct '13 17:20    Post subject: Reply with quote

James Blond wrote:
There are some examples on http://httpd.apache.org/docs/2.2/howto/auth.html

If you still have a question ask again.


That link didn't actually answer my question but I tried a connection using wget and it does ask me.

Geffers
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Tue 29 Oct '13 20:49    Post subject: Reply with quote

Well, they should get asked or anyone could use wget to bypass login.

however, http://username:password@www.mysite.com/subfolder/resource.jpg for an example is how it can be done, and the user will not get asked for the login details.

The username:password could also be URL encoded (%xx codes) so as it is not easily human readable (although they can just decode it with a little work).
Back to top


Reply to topic   Topic: Authorisation and Sub Folders View previous topic :: View next topic
Post new topic   Forum Index -> Apache