Setting up a login screen

J

John Wright

Hi,

I'm about to go and do some travel around the world. I would like to
be able to upload images and documents that, if needed, i could
download and print out abroad. I would like these documents to be in
a hidden section of my webspace and to have a login page.

Has anyone got any suggestions? Any help is greatly appreciated.

Thanks in advance
 
W

William Tasso

John said:
Hi,

I'm about to go and do some travel around the world. I would like to
be able to upload images and documents that, if needed, i could
download and print out abroad. I would like these documents to be in
a hidden section of my webspace and to have a login page.

Has anyone got any suggestions? Any help is greatly appreciated.

Do you have a mail account with a web interface? mail the documents to
yourself - seems like that may be a whole load less hassle.
 
C

chris

Maybe you could protect a folder with a .htaccess file. That depends on your
webspace
 
S

Steve R.

John Wright wrote in message ...
I would like to be able to upload images and documents that,
if needed, i could download and print out abroad.

If you already have some webspace you can just ftp them through with
odd-named filenames, which nobody is ever likely to guess.

If you don't already have space, you could take up a 'Yahoo' or similar
account and upload your files or images, without an ftp program. Those
accounts can be made private if you wish.
 
P

PeterMcC

John said:
Hi,

I'm about to go and do some travel around the world. I would like to
be able to upload images and documents that, if needed, i could
download and print out abroad. I would like these documents to be in
a hidden section of my webspace and to have a login page.

Has anyone got any suggestions? Any help is greatly appreciated.

Thanks in advance

..htaccess

http://www.freewebmasterhelp.com/tutorials/htaccess/3
 
G

Gypsy

John Wright said:
Hi,

I'm about to go and do some travel around the world. I would like to
be able to upload images and documents that, if needed, i could
download and print out abroad. I would like these documents to be in
a hidden section of my webspace and to have a login page.

Has anyone got any suggestions? Any help is greatly appreciated.

Thanks in advance


Not really an HTML question, but what the hey.

You need to set a password protected directory.

As I don't know if you are on a win, 'nix box I can't tell you exactly how
as they are bit different.
Contact you hosts tech support to see what they allow, most offer this as a
part of the package

Or if you can run scripts there are quite a few free applications for
setting up an online upload page with passwords.
Lots of different choices, google for webpage content manager or similar.

Have a good trip.


Gypsy
 
J

John Wright

Thanks for all your repomses. They were all very helpful.

I am going down the .htaccess route. I've created a new directory in
my webspace called hidden (full path is htdocs/hidden). In here I
have placed the .htaccess and .htpasswd files They look like this:

AuthName "hidden"
AuthType Basic
AuthUserFile /htdocs/hidden/.htpasswd
Require valid-user

And:

johncwright:**encrypted**

I have also uploaded the files that I would like to keep protected.
But when I try to access the files, I get a 403 forbidden message. I
don't get prompted for a username/password.

What am I doing wrong?

Thanks again for all the help.
 
P

PeterMcC

Thanks for all your repomses. They were all very helpful.

I am going down the .htaccess route. I've created a new directory in
my webspace called hidden (full path is htdocs/hidden). In here I
have placed the .htaccess and .htpasswd files They look like this:

AuthName "hidden"
AuthType Basic
AuthUserFile /htdocs/hidden/.htpasswd
Require valid-user

And:

johncwright:**encrypted**

I have also uploaded the files that I would like to keep protected.
But when I try to access the files, I get a 403 forbidden message. I
don't get prompted for a username/password.

My use of .htaccess is limited to password protection and adding mime types
so I'm no expert. Having said that, your file looks much like mine and so it
intrigued me that it doesn't work.

Please excuse the insult to your intelligence but is your server set up for
..htaccess?
I use the full path to the UserFile, as in
/shared/something_else/www/myusername/htdocs/hidden/.htpasswd - have you
tried that?
Did you upload to the server in ASCII and _not_ binary?
Is that enough of the dumb questions?
 
T

Toby A Inkster

John said:
AuthName "hidden"
AuthType Basic
AuthUserFile /htdocs/hidden/.htpasswd
Require valid-user

And:

johncwright:**encrypted**

I have also uploaded the files that I would like to keep protected.
But when I try to access the files, I get a 403 forbidden message.

That looks alright to me. Make sure the path in AuthUserFile is the *full*
path to the password file. I tend to put AuthType before AuthName, but I
doubt that makes any difference. It's probably a problem with the path.
 
J

John Wright

Hi,

The webspace is through my ISP. I have checked their help pages and
this is what they say about .htaccess

# Password protect directory /secret
<Directory /secret>
AuthName "my secret space"
AuthType Basic
AuthUserFile .passwd
require valid-user
</Directory>

I've tried placing the files in /htdocs (as suggested) but still no
luck. Here's a link to the site I am trying to use to get this to
work:

http://help.blueyonder.co.uk/html/web/htaccess.shtml

Any ideas?

Thanks again for all the help. I'm more of a hardware guy!
 
T

Toby A Inkster

John said:
# Password protect directory /secret
<Directory /secret>
AuthName "my secret space"
AuthType Basic
AuthUserFile .passwd
require valid-user
</Directory>

That example looks broken to me. Have you tried using <Location> instead
of <Directory>?

But the best way is to not use either and to just put something like:

AuthName "my secret space"
AuthType Basic
AuthUserFile .passwd
require valid-user

In an .htaccess file for the directory you actually want to protect.
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top