Results 1 to 6 of 6

Thread: Htaccess

  1. #1
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default Htaccess

    How can I use htaccess to require a password to access a specific directory, that isn't user specific? I've never used htaccess before so if someone could send me a good link on it as well I'd appreciate it. Thanks.

    This is the directory structure if that is needed for how I'd set this up...

    /public_html/secure_directory
    Corrections to my coding/thoughts welcome.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I think this answers your question:
    http://tools.dynamicdrive.com/password/
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Jun 2007
    Posts
    64
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    from what i know u cant use htaccess to just set up a password without requiering a specific valid username... so either you do a normal htaccess with a htpasswd (which contains a list of user/pass combos) or you use another method then htaccess...

    or what do you mean with "not user specific" ?!

  4. #4
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Can I do that without a user though? I don't want to have to assign multiple users. I just want to give a certain number of people the address and password and they can give it to anyone they want as well.
    Corrections to my coding/thoughts welcome.

  5. #5
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    just make the username "anyone", or whatever. everyone doesn't have to have a different username. you can probably (I think so, but I'm not sure) even just leave the username blank.

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I think the username/password pair setup is common for browsers so omitting one may not be possible. I'm not sure though.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •