Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Jul 2004
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    securing html pages

    Dear friends

    i have got some html pages and i want to secure that pages without using any server side scripting language.

    plz help me.

    thanks in advance.

  • #2
    Regular Coder
    Join Date
    Jul 2004
    Location
    engoku no anime
    Posts
    354
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Impossible.

  • #3
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    What do you mean by securing?

  • #4
    New Coder
    Join Date
    Jul 2004
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I mean to say that only authorized users can view those pages.
    bye.

  • #5
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Here's a Javascript login script... Of course it's not as secure as a server side one though...

    Secure Login with javascript

  • #6
    New Coder
    Join Date
    May 2003
    Location
    in a small damp cupboard
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if you're hosting on an apache equipped server, the .htaccess method is easy.

    Code:
    AuthName "Name for your protected area"
    AuthUserFile /absolute/path/to/passwords/file/.htpasswd
    AuthType Basic
    require valid-user
    stick that in an htaccess file

    then visit http://www.euronet.nl/~arnow/htpasswd/ to generate username/passwords pairs, which you should then put in an .htpasswd file, one pair per line. It'll look something like this:

    Code:
    username:66yGQHg8KA7jw
    administrator:saiuygfa76gw
    replace the AuthUserFile with the path to the htpasswd file you just created.

    Using this method will protect a whole directory, but I'm sure someone will come along and help you adapt the code to protect individual files/

  • #7
    Regular Coder
    Join Date
    May 2004
    Location
    San Jose, CA
    Posts
    388
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Check out this thread:
    Simple form question
    That's a pretty nice and quick way to do this. And it's better (more secure) than a JS method. I keep that in the back of my mind as I'm thinking of creating space for my students to log on to my site and store papers. That quick PHP is easy to manage and easy to create.
    -ts
    -Challenge The Status Quo
    -www.toddseal.com/rodin

  • #8
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    He said he didn't have any server-side language...

  • #9
    Regular Coder
    Join Date
    May 2004
    Location
    San Jose, CA
    Posts
    388
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <shamed and embarrassed>
    Oops. Well, then... Uh... yeah.
    -ts
    -Challenge The Status Quo
    -www.toddseal.com/rodin


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •