htaccess

G

Guest

Is it possible to password protect a folder with htacces that would look at
the username and send it to a page that I specify?

I don't have the ability to use ASP, so I am looking at a solution to take
my users to their page where they can make football picks after they are
authenticated by htaccess.

If so is there a script that someone knows about out there that I can use
for this?

Thanks.
 
C

Chris Leeds, MVP-FrontPage

try www.hotscripts.com if you can't use .asp I'd assume you'd want to use
PHP.
I believe you can only password protect a folder with HTACCESS.

--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
 
M

MikeR

Do you not have the ability to use ASP, or does your host not support it? If it's
the former, take a look at your earlier post.
MikeR
 
D

David Baxter

Here are some little tools that will construct .htaccess code for you to
insert into your .htaccess file for various functions:

http://www.bitesizeinc.net/demo.htaccesser.html or
http://www.southeasttelephone.com/tools/htAccessor/htaccessor.php

To password protect a directory, you'll need to create an additional
file in the protected directory called .htpassword -- see
http://www.euronet.nl/~arnow/htpasswd/ or
http://www.tech-recipes.com/modules.php?name=Recipes&rx_id=171

See also http://httpd.apache.org/docs-2.0/howto/htaccess.html

One caution:

Assuming that your site is maintained by FrontPage, be aware that on a
Unix/Linus server FP installs an htaccess file in the root folder and
then hides it.

Use a third party FTP program that you can set to view hidden files.
Navigate to the root folder and copy the .htaccess file back to your
hard drive (rename it if necessary to something like copy.htaccess).

Now edit this copy by ADDING any new lines you need TO THE BOTTOM OF THE
FILE, leaving the lines created by the FP installation intact.

Then FTP the new file back to the website -- if necessary, delete the
original and then rename copy.htaccess back to .htaccess.
 
A

Andrew Murray

Read the resources on the web about .htaccess and .htpasswd.

They are Unix files that provide *basic* password protection.

In the .htpasswd you list your users and their passwords.

There are many resources for scripts that can do this for you - I use
www.locked-area.com -(note the hyphen in the address) provides a multitude
of features, including the ability for web-interface admin of user lists,
separate passwords for administrators etc. If you're using Unix, then a
server/host with perl/cgi enabled will be beneficial. I'm sure there's also
PHP scripts out there that can accomplish much the same thing.

An easier method (depending on your needs) is at www.bravenet.com - lots of
useful tools.

I use "directory pass" and "locked area lite".

Directory Pass is a web interface that actually sets up your htaccess and
htpasswd files for you and allows you to enter user & password info through
the web browser (uses CGI/Perl scripts).

Locked Area controls the logon sequence etc.

This is of course, very much dependent on what your host allows you to run
in terms of 3rd party scripts.Anyway, visit the site and see if it is
really what you require. They have working demos of their scripts.
 
C

Chris Leeds, MVP-FrontPage

I had a client recently who was using locked area. he liked it but had to
stop publishing with FrontPage because it was altering the .htaccess file,
which the locked-area tool was trying to control/ edit.

--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top