Client Access Area
- Started
- Last post
- 13 Responses
- Buckyball2
Yo,
We want to set up a section of our website where the client can view PDFs of work in progress. Why we haven't done this before, I have no idea.
Anyway. Before you can get to that page, I want to have your classic, simple client login screen (username/password).
What is the easiest route to take in accomplishing this task. Is it a script?
Just to show how behind the times I am when it comes to coding and such, I am working in Adobe GoLive 5. If that helps with the setup.
Thanks and let me know,
bB
- unformatted0
you can use javascript, but it's not safe obviously.
using serverside scripting is what you need with a database holding the usernames/passwords.
- Bio0
proabbly the easiest way is to use .htaccess
very simple to use.
http://httpd.apache.org/docs/how…it is what i use.
- unknown0
your host sometimes let's you have this ability.
I host with these guys and they have set it up soi you can control access to whatever directory you want.
so maybe check with your host first and then I'd say the next easiest way would be some type of quick little cgi script or something, but that probably isn't totally secure, who know.
tons of good stuff here.
:P
- Bio0
ht access requires 2 files, the .htaccess and the .htpassword
the access file goes in the directory you want protected and the password file can go anywhere, but you would usuallyput it above the root folder.
- unknown0
yeah I think my host does it how Bio mentioned.
:P
- Buckyball20
cool. much appreciated. I will give it a try.
bB
- Buckyball20
For the "codeily" challenged, how do I implement the htaccess thing. I read through the apache site and felt more confused than before. Sorry.
bB
- Buckyball20
What if I had these items from the GoLive object menu in place. How would I "hook" them up so they would work properly and be safe?
thanks,
bB
- Bio0
no problem.
i didnt check, but i think that the site should have a sample of the code. if not, then i will send you one of mine when i get home.
anyway, you just copy and paste the short bit of code into a notepad document (or whatever). you will see a line in the code that is shows the location of the password file. it looks like "home/main/something/whatever" you alter that line to reflect wherever you put your password file. THEN you save this file without an extension (ie. in notepad, when you have the option to Save As, choose "all files" and this will take care of it). save the file in the directory you want protected.
the password file contains the encrypted password info. it is only one short line of code, so not a whole lot to sort thru.
i will find the site that converts your password and gives the encrypted info. i forget the URL i used, but it shouldnt be hard to find.
and believe me, i am making this sound a lot harder than it actually is. i am not a coder, but this stuff is really quite simple.
- Bio0
if you havent figured it out by the time i get home, then i will sign on MSN and you can have my files. they are simple and it wont put me out any.
my MSN info is
ill be home in about 1.5 hours.
- Buckyball20
thanks Bio.
Me a designer. Coding like make fire. Very hard. :-)
bB
