.htpasswd

Status
Not open for further replies.

guru

Broken In
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.
 

go4inet

In the zone
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 !!
 

Deep

Version 2.0
go4inet said:
you need to learn php programming, so that its simple for accesing .htapsswords

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 *www.htmlite.com/HTA006.php for htaccess code format and sample...or check the link provided by firewall
 

Deep

Version 2.0
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
 
OP
G

guru

Broken In
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
 
Status
Not open for further replies.
Top Bottom