38 users online (0 members and 38 guests)  


  Results 1 to 8 of 8

Related

  1. password protection    Forum: Javascript Forum
    Replies: 2
  2. Replies: 0
  3. Password Code    Forum: HTML Forum
    Replies: 6
  4. Ignore code and link greeting note code    Forum: HTML Forum
    Replies: 3
  5. Replies: 1
  1. #1
    pegboy's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Aug 2001
    Location
    Knoxville, TN
    Posts
    76

    .login.

    maybe this should of been posted on another board, but oh well.

    what's the simplest way to set up a login & password to enter an admin site? there are only two users right now, but i want them to be able to log on from the public site. i've never set up anything like this before so any help would be appreciated.
    robert koons

  2. #2
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    The simplest way (and only secure way really) is to set up some kind of serverside language with a database. I myself would use PHP and MySQL.

  3. #3
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    mysql or any database is not essential.
    Any server side language will do the job on its own. The reason it has to be server-side is that any client-side language (like javascript) will transmit the info to the browser. That includes, of course, the required password.

    php, asp, perl, anything can be used as long as you make the 'password' file outside the public access.

    However, all these scripts 'fake' authentification using http headers. The only, real way, to make something secure is to use .htaccess.

    Find a tutorial on .htaccess here -

    http://hotwired.lycos.com/webmonkey/html/97/08/index2a.html?tw=backend
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  4. #4
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    In PHP isn't that using the crypt() function and HTTP-authentification? Even doing that we did some kind of mysql check. Unless using cookies, which can be easily manipulated, how could he do it?

  5. #5
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    If you have got mysql, then it is easier to use it. However, if you havent, you can use text files and stuff to actually store the data.

    You would track the user using sessions, if you needed to.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  6. #6
    pegboy's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Aug 2001
    Location
    Knoxville, TN
    Posts
    76
    well, i went to webmonkey and read that tut. maybe i'm trying to make this harder then it really is. everything made sence, but they were a bit vague on what you do with the .htaccess and how that relates to the html files. do the html files go in the same directory as the .htaccess files?
    robert koons

  7. #7
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    1 word...Yes
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  8. #8
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    lol text file duh... but then again I'm forgetting he said "the simplest way" so a text file would probably be it.



Tags for this Thread