Results 1 to 7 of 7
  1. #1
    Senior Member
    Join Date
    Jan 2006
    Location
    Utah
    Posts
    60

    Password help on a link?

    I am trying to figure out how to put a password on a link. What I want to do is to have a link on a main page, but when someone clicks on that link, I want them to have to put in a certain name and password that I assign. Is there a tutorial on this, or what would be the best way of doing this. Thanks for your input.

    P.S. I'm sure this is one of those loaded questions people don't like to answer, but any help would be great!!!

  2. #2
    Administrator Dave's Avatar
    Join Date
    Sep 2004
    Location
    Te Awamutu, New Zealand
    Posts
    3,959
    Blog Entries
    79

    Re: Password help on a link?

    There are a couple of ways you can do this but the best way will depend on a few things.

    How many usernames and passwords will you need?
    Will you need to change them often, add/remove users, etc?
    Which operating system does your server use?
    Are you prepared to install a CGI script to do the job?
    Dave Owen
    MediaCollege.com

  3. #3
    Senior Member
    Join Date
    Jan 2006
    Location
    Utah
    Posts
    60

    Re: Password help on a link?

    To answer your questions,

    I will only need 1 username and password

    I will not need to change it very often if at all.

    Windows OS

    I know my hosting allows CGI, but I have never writen one.

    THANKS!!!

  4. #4
    Administrator Dave's Avatar
    Join Date
    Sep 2004
    Location
    Te Awamutu, New Zealand
    Posts
    3,959
    Blog Entries
    79

    Re: Password help on a link?

    The good news is that a single username/password is much easier to deal with. You certainly shouldn't need a CGI script.

    The bad news is that you're using a Windows server so I can't help you. I haven't used a Windows server in years and, God willing, I'll never use one again.

    What happens on a Linux server is that you use a file called .htaccess which can do all sorts of things (like restrict access) very simply and easily. Windows isn't good with .htaccess files and I'm afraid I don't know what what equivalent there is, if any.

    Anyway, my advice would be to contact your server administrator or host helpdesk. It's a pretty simple enquiry which they should be able to answer.

    Unless someone else can provide the answer first....
    Dave Owen
    MediaCollege.com

  5. #5
    Senior Member
    Join Date
    Jan 2006
    Location
    Utah
    Posts
    60

    Re: Password help on a link?

    I'm sorry. I just did some research and found out that I have Linux server. Can you help me now?

  6. #6
    Administrator Dave's Avatar
    Join Date
    Sep 2004
    Location
    Te Awamutu, New Zealand
    Posts
    3,959
    Blog Entries
    79

    Re: Password help on a link?

    Sure can. I'm going to write some proper instructions because I think this topic is worth it's own web page - I'll let you know when it's done.

    In the meantime, here's another idea: Does your hosting account have any sort of web management system where you can login and perform management tasks? It's very common for hosting packages to do this so you should expect it. If you do have this feature available, there's a good chance that it includes a way to password-protect directories.

    Good news that you're using Linux - much better
    Dave Owen
    MediaCollege.com

  7. #7
    Administrator Dave's Avatar
    Join Date
    Sep 2004
    Location
    Te Awamutu, New Zealand
    Posts
    3,959
    Blog Entries
    79

    Re: Password help on a link?

    Okay, I've made the tutorial page. Let me know how you go:
    How to add password-protection
    Dave Owen
    MediaCollege.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Subscribe to us on YouTube