.htpasswd

Discussion in 'QnA (read only)' started by guru, Oct 6, 2004.

Thread Status:
Not open for further replies.
  1. guru

    guru New Member

    Joined:
    Dec 7, 2003
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    0
    I am making a website , i need to allot a different directory to every user.
    I have heard that in apache , we can do something like .htpasswd authentication, well that can also save me from making tables and using mysql.
    I know ASP. Can anyone tell me more on this.
    and if possible can u show me the scrap code, which will help me to do this.

    Thanks :)

    p.s. i am using windows.
     
  2. firewall

    firewall New Member

    Joined:
    Mar 31, 2004
    Messages:
    299
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Kolkata - INDIA
  3. go4inet

    go4inet New Member

    Joined:
    Feb 18, 2004
    Messages:
    300
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Chennai
    you need to learn php programming, so that its simple for accesing .htapsswords

    BTW ASP is not supported in Linux, you need MS Webserver to run ASP !!
     
  4. Deep

    Deep Version 2.0

    Joined:
    Jan 23, 2004
    Messages:
    977
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Mumbai
    i dont think is has got anything to do with PHP dude..

    its completely difference concept..

    anyways getting back to the topic..


    i dont think .htaccess thing work with IIS..it works with Apache only..

    so to make directory protection in IIS u need to select security tab in IIS control panel under desired directory and change settings there...

    but for all these u need admin access and i doubt anyone will give u access in shared hosting (i am not sure whether control panels will have that option or not..check with your web host)

    regards
    Deep

    P.S. btw check this page http://www.htmlite.com/HTA006.php for htaccess code format and sample...or check the link provided by firewall
     
  5. OP
    OP
    guru

    guru New Member

    Joined:
    Dec 7, 2003
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    0
    oh thanks , i will ask more later :)
    Thanks for the link :)
     
  6. OP
    OP
    guru

    guru New Member

    Joined:
    Dec 7, 2003
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    0
    can anyone show me the scarp code. Which can help me in this.
     
  7. Deep

    Deep Version 2.0

    Joined:
    Jan 23, 2004
    Messages:
    977
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Mumbai
    did u check the url i gave u..everything is there..

    anyways here is the code for you..

    .htaccess
    Code:
    AuthType Basic
    
    AuthName "Protected Area"
    
    AuthUserFile "path of login and password file"
    
    require valid-user
    
    .htpasswd
    Code:
    username:password
    
    Deep
     
  8. OP
    OP
    guru

    guru New Member

    Joined:
    Dec 7, 2003
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    0
    Sorry , Deep I am so much confused and afraid, i don't know i would be able to delier it on time :(
    Thanks for the code.
    will get back to u , soon
     
Thread Status:
Not open for further replies.

Share This Page