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.
Page 7 of 8 FirstFirst ... 5678 LastLast
Results 91 to 105 of 115
  1. #91
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    1. That script requires that the "protected" page have a name that is related to the password that is entered.

    2. Anyone who knows the destination page can get there without having to login first.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  2. #92
    Regular Coder thesmart1's Avatar
    Join Date
    Dec 2005
    Posts
    369
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Love the script. Seems preety secure against most users; I don't plan on using it to secure anything important. I've been looking casually for a password gate with several user names and of all the oones I've seen, this is by far the easiest. Good job!

  3. #93
    New to the CF scene
    Join Date
    May 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes, this is quite useful. problem is, i have no idea how to install it on freewebs. anyone know?

  4. #94
    New Coder
    Join Date
    Mar 2006
    Location
    São Paulo, Brazil
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nice script. I´ve run it in a php-linux host, it goes well.

    It can be incremented with some security issues, like prevent the user from reach the target page without passing through login page.

    I think the most skilled crackers would check if the login and password isn´t the name of one of the pages in the server hehehe

    The idea of hiding information that is passing trough fields with JScript and VBScript is quite nice, but i´ll never use it on a project, no matter how simple it is.
    ----
    As coisas mais simples são as mais importantes.
    ---------
    Thompson M1A1: D-Day
    ----------------

  5. #95
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Hi,

    I'm new to javascript & this forum, I want to use this script but am having a problem. I'm also not a html pro, but maybe you can offer advice. When I am making a custom index page with my login area, I add the code for the body into the body section of my html, but when I load the page the code for the login overrides everything else I coded before it and places the login in the upper left corner where my other code should be. Maybe this is a simple html thing, but i need help adding this script into my page. Could anyone please look at the way I have my login page set-up and tell me where to fit the body part of the script so it will work where I would like it to? Here is the address: www.starlight-myst.com/DD, you can send me an e-mail if you'd like.. to whystarasilvrain@aol.com otherwise I'll just look back in here.

    Thank You!
    ~Whystara

  6. #96
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok nevermind I figured it out LOL thanks anyway!

  7. #97
    Regular Coder thesmart1's Avatar
    Join Date
    Dec 2005
    Posts
    369
    Thanks
    7
    Thanked 3 Times in 3 Posts
    W3Schools has great tutorials.

  8. #98
    New Coder
    Join Date
    Aug 2006
    Location
    North West, England, UK
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy can't get it to work properly!!

    I have placed the code within my logon site nut i cant seem to get it to work properly. It just passes me on to the blind.htm page in my site.

    here is my code
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Admin Login</title>
    <script type="text/javascript">
    <!--
    function authPass(u,p) {
    	if (u && p) self.location = "blind.htm?" + u + p;
    	return false;
    }
    // -->
    </script>
    Code:
    <div id="Form">
    <script type="text/javascript">
    <!--
    if (location.search.indexOf("auth=failed") != -1) {
    	document.write("<span style=\"color:#ff0000\">Authorization Failed!</span>");
    }
    // -->
    </script>
      <table width="273" border="0">
        <tr>
          <td width="267"><form id="login" action="javascript://" onSubmit="return authPass(this.user.value,this.pass.value)">
            <div align="right"><span class="TxtHead">User Name:</span>
                <input type="text" name="user">
            </div>
            <div align="right"><span class="TxtHead">Password:</span>
                <input type="password" name="pass">
            </div>
            <div align="right">
                <input type="Submit" value="Login">
            </div>
          </form></td>
        </tr>
      </table>
    </div>
    If any one can see what is wrong with my JScript then i would be very grateful. I have the .js file and it doesn't seem to check it help me please

  9. #99
    Regular Coder GSimpson's Avatar
    Join Date
    Aug 2006
    Location
    New Zealand
    Posts
    268
    Thanks
    9
    Thanked 0 Times in 0 Posts
    The vbs file created a new js file,
    can you do that with js forms? thanks.
    The internet is my Sandbox, and notepad is my Spade n' Bucket.

  10. #100
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is there anyway to lock the page.htm? Because if I just enter, example: www.codingforums.com/page.htm it allows me to see the page even though I not entered a username and password. Thanks for any help.

    - Brian

  11. #101
    New to the CF scene
    Join Date
    Jan 2008
    Location
    Barrow-in-Furness
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks borgtex. I couoldn't use php because i don't have it on my pc. This is brilliant. Everone says you can't get a secre login with javascript. but i just new you could.


    THANKS BORGTEX

  12. #102
    New to the CF scene
    Join Date
    Jan 2008
    Location
    Barrow-in-Furness
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think you havn't put the source of the .js file in
    try doing this
    <script language="text/Javascript" src="[location of the .js file"]
    I hope that helps!

  13. #103
    New to the CF scene
    Join Date
    Jan 2008
    Location
    Barrow-in-Furness
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How do you make the Password Helper.vbs file let you have spaces and punctuation (e.g!,,). Because it dosn't!

  14. #104
    Regular Coder kosstr12's Avatar
    Join Date
    Apr 2007
    Location
    Woodstock, Georgia
    Posts
    428
    Thanks
    7
    Thanked 5 Times in 5 Posts
    Thats a great script=] one of the best on the web

  15. #105
    New to the CF scene
    Join Date
    Dec 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How do i change Auth.html:

    var authstring = "<script type=\"text/javascript\" src=\"" + location.search.substring(1) + ".js\"><\/script>";

    So that it looks for the file in a sub directory, or even a directory on another disk.??


 
Page 7 of 8 FirstFirst ... 5678 LastLast

LinkBacks (?)

  1. 02-22-2014, 07:13 AM

Posting Permissions

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