+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Jul 2000
    Location
    Vancouver, BC, Canada
    Posts
    403

    May I know how can I set up a web site with password protection (at the entry / main

    Hi to all,

    If I am planning to add password protection feature to keep the public away from entering my trade union site. May I know how can I do so, if my web hosting package does not supoport any database or cgi stuff. (I am only using a very basic web hosting package, it only support Javascript,FrontPage 2000 extensions,Flash and Shockwave)

    Please advise.

  2. #2
    Member
    Join Date
    Jun 2000
    Posts
    46
    I think you can use javascript to put a logon on the main page. See http://hotwired.lycos.com/webmonkey/index.html they have a very good tutorial on JavaScript.
    HTH

  3. #3
    Junior Member
    Join Date
    Dec 2000
    Posts
    28
    There are plenty of java script password systems on the net. be warned though that any one who knows javascript could probably crack it. (since the pass word is located in the script) you my check www.cgiforme.com I think they had/have a remote cgi-password thing.

  4. #4
    Senior Member
    Join Date
    May 1999
    Location
    Denver, CO, USA
    Posts
    775
    i actually wrote a java applet that reads a txt file that you put on the server. you could hard code a password into the java applet however if you liked I suppose, but I wanted it to be dynamic.... the nice pard of it was that unless the directory is viewable by anyone, I could name the txt file whatever I wanted to, and the chances of someone guessing it were pretty **** slim.

    it is possible, and since you can't see the source for on applet (at least not easily), it might be your best solution

  5. #5
    Member
    Join Date
    May 2000
    Posts
    202
    The only thing i have to add is that a friend put a password protection thing on his site and the host took down his site for it! Said he breached his contract. But I think they just wanted tog et rid of him cos it was a free place that started charging for their space and wanted to get rid of all the ppl still not paying

  6. #6
    Banned qball's Avatar
    Join Date
    Oct 1999
    Location
    Rockaway, NJ 07866
    Posts
    1,730
    See if your web host (ISP) supports network validation (NT/Unix). Probably won't with a basic package as one (the ISP) needs to maintain the list of users. This can be done on the server at the folder level, so all files are protected. This is great for intranets.

    Then there is server side validation through scripts (ASP, JSP, CGI...) and maintaining session information.

    Lastly, the cheezy javascript/applet solution, but those are browser specific and client side and easily defeated.

    May seem a simple task, but security is non-trivial.


  7. #7
    Ultimate Member
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    1,415
    The most basic I've worked with is .htaccess. Seems easy enough to set up, too.

    - Brandon

  8. #8
    Senior Member
    Join Date
    May 1999
    Location
    Denver, CO, USA
    Posts
    775
    I never said it was a good solution qball. But if you can't use a server side database or any of that stuff, it may be all that you have. and anyway, no matter what type of security you have, someone can get into it even if they're not supposed to. it just depends if that many people are really going to care about what is there!

    -Z

  9. #9
    Ultimate Member
    Join Date
    Jan 1999
    Location
    So Ca, USA
    Posts
    1,021
    I'd use a javascript placed in a .js file referencing another file (for username and passwords) in a parent directory.

    goto www.javascripts.com I've seen some similar type scripts.

    izzy

  10. #10
    Member
    Join Date
    Jun 2001
    Location
    bedminster, nj, usa
    Posts
    44
    here are a few sites you can find password protection at

    <a href="www.javascriptsource.com">java script source.com</a>
    <a href="www.instanzscripts.com">instant scripts.com</a>

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







New Security Features Planned for Firefox 4
Another Laptop Theft Exposes 21K Patients' Data
Oracle Hits to Road to Pitch Data Center Plans
Microsoft Preps Array of Windows Patches
Microsoft Nears IE9 Beta With Final Preview
Simplified Analytics Improve CRM, BI Tools
Android Passes RIM as Top Mobile OS in 2Q
VMware Updates Hyperic System Management
File Monitoring Key to Enterprise Security
LinkedIn Snaps Up SaaS Player mSpoke