Results 1 to 6 of 6

Thread: Protect you website from anonymous

  1. #1
    Join Date
    Apr 2005
    Posts
    10

    Default Protect you website from anonymous

    <script language="javascript">
    <!--//
    /*This Script allows people to enter by using a form that asks for a
    UserID and Password*/
    function pasuser(form) {
    if (form.id.value=="JavaScript") {
    if (form.pass.value=="Kit") {
    location="page2.html"
    } else {
    alert("Invalid Password")
    }
    } else { alert("Invalid UserID")
    }
    }
    //-->
    </script>

    <center>
    <table bgcolor="white" cellpadding="12" border="1">
    <tr><td colspan="2"><center><h1>Login
    Area
    </h1></center></td></tr>
    <tr><td><h1>UserID:</h1></td><td><form name="login"><input
    name="id" type="text"></td></tr>
    <tr><td><h1>Password:</h1></td><td><input name="pass"
    type="password"></td></tr>
    <tr><td><center><input type="button" value="Login"
    onClick="pasuser(this.form)"></center></td><td><center>
    <input
    type="Reset"></form></td></tr></table></center>

  2. #2
    Join Date
    May 2005
    Location
    Thailand
    Posts
    98

    Default

    It does not secure enough.
    Anonymous can view sourcecode and can get your password easily.

  3. #3
    Join Date
    Mar 2005
    Posts
    29

    Default

    does anyone know how to make web secure??pliss tell me. THX

  4. #4
    Join Date
    Dec 2004
    Posts
    29

    Default Use PHP and MySql

    Just use it. It is easy to script if you know c or c++. very easy. I could help you if you want. Just let me know.

  5. #5
    Join Date
    Jun 2005
    Posts
    14

    Default it is easy to make a script ...

    it is easy to make a script ... if you are programer ...
    in what ever language ... it will be easy to understand this tutorial

    http://www.phpnoise.com/tutorials/26/1

    Secure Login Using Cookies
    it work for me
    P.S if you test it on your own server ... and if U are reciving some ... warning mesages ..
    do not forget to look at php.ini ...
    I made this mistake ...
    spend hours for changing the code ... and after that realise.. that ...
    I can stop nasty "notice" from php.ini ... It was just new installed .. Slack .. .
    and I did not make config fully ...
    but I am proud :P
    I fix the code .. so thta he was still working ... and not giving notices

  6. #6
    Join Date
    Jun 2005
    Posts
    3

    Default

    <script language="javascript">
    <!--//
    /*This Script allows people to enter by using a form that asks for a
    UserID and Password*/
    function pasuser(form) {
    if (form.id.value=="JavaScript") {
    if (form.pass.value=="Kit") {
    location="page2.html"
    } else {
    alert("Invalid Password")
    }
    } else { alert("Invalid UserID")
    }
    }
    //-->
    </script>

    Too easy to crack! Everyuser can view its source code! Just creat a link to this page, right mouse click , choose Save Target As... and do whatever they want!
    I think, may be spent 10s to know!

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
  •