/    Sign up×
Community /Pin to ProfileBookmark

How can I make a login page?

How can I make a private login page on my free account at tripod.lycos? Because I don’t know how to make one.

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@hastxApr 11.2007 — There are multiple ways ....but let's get this out of the way now, Server Side pages like PHP or ASP are the best way to do this for security, and there are a bunch of login scripts that you can download.

But if your stuck with javascript because your free server doesn't give you server side parsing, or you just don't care much about security and are trying to keep the honest people out, you'll have to use a variant of the old gatekeeper script.

This script works by combining the username

(which is actually the name of the folder the protected page is in), with the password (which is actually the title of the page you are protecting).

[code=php]
<html>
<head>
<title></title>
<script type="text/javascript">
function login() {
var secureFolder="foldername/";//change this to the folder of your protected file
var xArea = secureFolder+document.xLogin.elements[0].value+document.xLogin.elements[1].value+".shtml"
if (document.xLogin.elements[0].value == secureFolder && document.xLogin.elements[1].value.length == 8) {
window.open(xArea,"","height=500,width=775,location=0,status=0,scrollbars=1,menubar=1,resizable=1,toolbar=1");
} else {

document.location.href = "no_go.shtml";

}

}
</script>
</head>
<body>

<form name="xLogin" onSubmit="javascript:login();return(false);">
Admin:<input type="text" size="8" maxlength="8"> Password:<input type="password" size="10" maxlength="10"> <input type="submit" value="Login">
</form>

</body>
</html>
[/code]


This type of script will only do any good whatsoever if folder indexing is turned off on the folder you are trying to protect. The info that can be gathered from viewing the source is:
[LIST]
  • [*]the folder your protected page is in.

  • [*]the file extension of the secure page.

  • [*]and how many digits are in the name of the file you are trying to protect.

  • [/LIST]

    so you want to use something with a lot of characters for the file name.
    Copy linkTweet thisAlerts:
    @darwin212authorApr 11.2007 — So where am I suppose to put the document for the usernames and the passwords? Will a private folder on tripod.lycos work? Because I want it secured. So that people wont just look on the web source to hack, And I don't want that.
    Copy linkTweet thisAlerts:
    @darwin212authorApr 11.2007 — What am I suppose to do on the folder!?? Because I don't know what to put in it. And I want the website in their so that people wont just go right in the source code and find that url without loging in. Do I have to put that url in the folder?
    Copy linkTweet thisAlerts:
    @darwin212authorApr 11.2007 — And also, How can I have a register on it?
    Copy linkTweet thisAlerts:
    @hastxApr 12.2007 — Those are requirements you needed to state earlier.

    You'll have to use a server side language. Check Hotscripts for a user management system
    ×

    Success!

    Help @darwin212 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.29,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...