Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2007-04-04, 01:46 PM   #1
spazlabz
You can now put whatever you want in this space :)
 
spazlabz's Avatar
 
Join Date: Apr 2003
Location: Bluegrass State
Posts: 963
Send a message via ICQ to spazlabz Send a message via AIM to spazlabz Send a message via Yahoo to spazlabz
I need help with htaccess

Hi scripting gurus... I am a complete scripting novice even though I have been around for years heh heh

I have a directory on one of my domains that I want to password protect. It isn't a members area or anything like that, just a place where I keep something I would prefer not everyone see.

so here is what I need to be able to do... protect that one directory while the rest of them remain open and where I can add or delete a username password without having to encrypt anything. Does anyone know how I can do that simply?


thanks for any help

spaz
__________________
spazlabz is offline   Reply With Quote
Old 2007-04-04, 02:11 PM   #2
Fonz
Former pr0n slinger.
 
Fonz's Avatar
 
Join Date: Aug 2003
Location: Antwerp, Belgium
Posts: 7,932
Just create a .htaccess that looks like this:

AuthUserFile /full/path/to/.htpasswd
AuthName "Please Log In"
AuthType Basic

and upload it to the folder you want to secure.

Then create a .htpasswd file. in that file you need to define your username and encrypted password. It should look something like:

username:Encryptedpassword

You can create this encrypted password on this page: http://www.xcite.net/resources/index.html (FTP based .htpasswd Line Generator)

then upload the .htpasswd file to the location you specified in your .htaccess file mentioned earlier.

I hope this makes a little sense?
__________________
See how I abuse little trees on my Shumi no Bonsai Blog
Fonz is offline   Reply With Quote
Old 2007-04-04, 02:49 PM   #3
spazlabz
You can now put whatever you want in this space :)
 
spazlabz's Avatar
 
Join Date: Apr 2003
Location: Bluegrass State
Posts: 963
Send a message via ICQ to spazlabz Send a message via AIM to spazlabz Send a message via Yahoo to spazlabz
Quote:
Originally Posted by Fonz View Post
Just create a .htaccess that looks like this:

AuthUserFile /full/path/to/.htpasswd
AuthName "Please Log In"
AuthType Basic

and upload it to the folder you want to secure.

Then create a .htpasswd file. in that file you need to define your username and encrypted password. It should look something like:

username:Encryptedpassword

You can create this encrypted password on this page: http://www.xcite.net/resources/index.html (FTP based .htpasswd Line Generator)

then upload the .htpasswd file to the location you specified in your .htaccess file mentioned earlier.

I hope this makes a little sense?
Yes it does thanks Fonz
I'll have the wife get started on that right away.... shes the brains of the house any way


spaz
__________________
spazlabz is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:55 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc