I want to make a page on a [URL] site (meaning no SS scripting) that is password protected. The problem is I have no idea how to make it to where someone can't see the password. The best I could think of would be:
if (password=="p455burrito") {
window.open(/*blabla*/);
}
But then someone could easily check the source code (even if I put the variable in another file or anything, it could still be seen). So someone redirected me to the Bravenet password protection, but I don't know how to make it redirect to a page that is protected by the password. If I put the password code on the page and log in, it redirects me where it's supposed to go, but I can still just go to the page myself and it's not protected.
How would I do this with just what [URL] allows?
I was checking out the more advanced Javascript tutorials and was thinking that cookies would be appropriate for this situation.
Also, I did search and I found things like this: [URL]
Which are easy to get through if you know how to look through the source code.
1. place name in heading tag provided2. locate script tag and create a cookie named password and assign to its value the user's entry into the pWord text box.3. test the file by opening the file and entering the password "hello" and see if you are able to enter the password protected page. test using the password "goodbye" and you should not be able to enter the page.Someone please help asap, I am including an attachment with a zip file with the page I am working on and the follow up page.
I am trying to hide my JavaScript source. The method I chose was to keep all the important source in a password protected folder, and then use a SRC="folder/script.js" to include it in my code. This way, the script will run, but the user will be unable to view the included code. Or so I think :).
I have tried this method, and it seems to work. However, I would like to know if you can see any problems with this. For instance, can you think of a way to bypass this and get at script.js? Can you foresee any problems that would arise as a result of keeping scripts behind password protected folders? Any other security concerns?
I've just started my venture into HTML5 localStorage. I now have a javascript my server sends to those who visit my ip address. I store all their data using localStorage. I have a few security questions regarding the HTML5 localStorage situation:
1. Can a script that did not create the local storage retrieve/modify the localStorage of another script just by guessing the key maliciously or unintentionally?
2. Can another script use the clear() method to remove my scripts data? Edit: I just tried this myself. And, yes, I deleted my data, all of it with clear() using a different script. Is there any way to prevent this? Is it only my end that will be able to do it or could I load a script from a site has a hidden clear() method and destory all other javascript apps data?
3. If item (2) is true, any ideas on how to protect my scripts data for the user from the clear method?
4. if item (2) is false, cool, my first idea is to create a uniqnue string random string and ask the user to creat a password to encrpt that string and just use that string with enumeration added to it for the keys.
5. Does anyone know where localData is stored? Is it encrypted already, in plain text, in well-known or hidden location?
I'm having trouble getting two password boxes to work on the same page, which I created using the JavaScript Kit Encrypted Password Generator [URL].
I've used the code that this generator produces, with some modifications as given by cheesebagpipe [URL]. These changes enable the user to press the keyboard's enter key to submit the password (as an alternative to clicking the submit button), and will also refocus the text box and select the text in it if the user enters the wrong password.
The code works fine on pages with just one box (e.g. [URL]), but what changes are needed to make two work on the same page? (I'm new to web design and clueless when it comes to JavaScript, which I know isn't the most secure method of password protection, but will do for now).
At the moment, on pages with two boxes (e.g. [URL]), neither of the boxes work; this appears in the address bar instead: [URL] ('help!'=whatever has been entered in the text box).
I am new to javascript but I can usually get examples of simple scripts I need to work, but can't figure this one out. I am trying to link to this page (link1.html) from another page and I want to password protect it. If the password is correct, I want to automatically link to another page (link2.html).
The reason I am trying to do it this way is if I don't I get a message saying IE is preventing scripts or ActiveX from running. If I don't click to allow it to run then it will automatically display the content of the page (link1.html) I am trying to protect. I will make link1 blank and put my data in link2.
And I realize this is a very low level of security.
i have created one simple login form with 5 fields namely username,email id,password,retype password and phone no.i have created alert message for each function,so that when there is an error it displays alert message..now i have to replace all alert messages with inline validation(displays errors beside textbox).
below is the code for simple login form having fields username,email id,password,retype password and phone no. i have done inline validation forcheckName() .i am not getting for the other fields can u tell me how to do it..
function jsFileManager(mode) { this.mode = mode; }
If there a way to make jsFileManager.mode property as final protected. Other words, it can be set only once diring the objects initialization and it is accessible only to the inner methods of jsFileManager conctructor?
This is a secure solution for password protection with JavaScript. It works by encrypting the password and the content. Nothing is revealed in the source code, and it cannot be beaten by disabling JavaScript.
The download contains three files:
Protect Content.html lets you generate your own protected content.
Demo.html is a protected document, and as long as it remains unbroken, it's your proof that this software works. You can also use it as a template for your own protected pages.
Demo, with hint.html is another protected document that tells you the password. This is meant to show that the first demo is not a trick or a fake.
I wanted to know is it possible to password protect some files in web page?For example, If someone wants to download file, browsers requests password(one for all visitors), idea is that some files and/or sections of web site is accessible to those who know the password..
I want to be able to automatically filter certain characters a user is typing in either an input field or a textara and automatically convert them to it's equivalent html entity. I've looked at .keypress, which will give me the character they typed, but I have no idea where in the box they have typed it.
I've recently been following the object-oriented techiques discussed here and have been testing them for use in a web application. There is problem that I'd like to discuss with you experts.
I would like to produce Javascript classes that can be "subclassed" with certain behaviors defined at subclass time. There are plenty of ways to do this through prototyping and other techniques, but these behaviors need to be static and protected. By protected this means that they can be overridden (or reassigned) in subclasses, and privileged subclass methods can access them, but callers external to the class cannot.
I've been attempting to define a factory function that transfers its parameters to an anonymous object while defining the constructor in a -with- block. (This is what I'm loosely referring to as "subclassing" - it's really object composition.) This works, but not for externally-defined functions. They can't see the protected static members....
Let me start out by saying that this is for a small-time page with absolutely zero valuable information. PHP or server-side is way beyond the scope of my goals for the project.
Basically, I have a form on a page which I want to use to submit a password. However, I have realized that using the form submit always makes the browser return to the page with the form.
Well, that's not good when I want to redirect using javascript!
My javascript is:
Code:
My form HTML is:
Code:
How can I get this to stop going back to the page with the form after I submit it?
Iam using jquery.validate.js I have a forgot password page it has 2 input fields. 1. User name and 2. Email ID The user has to type any one of the field. How to validate this?
I need a javascript that will accept the username "frederic" and the password "ozanam" on my page "member,html" that will allow those who input this data to access my page "member2.html".
I had a script that did this but when I updated the page on which it resided I did not keep a copy of the javascript. Code:
I have a friend who wants to colect email addresses from visitors to his website. He really isn't looking for 'security', but is more interested in collecting emails and simple contact information.
Is there an easy way to have a short form (name, email address, phone number) which collects that info, then sends a password which they can use to log in?
Such as, I enter 'John Doe', 'jdoe@yahoo.com' and 骃-1212', then I get an email (at jdoe@yahoo.com) with a password. The collected info should be either emailed to an admin, or better yet appended to a text file.
I am creating a website where I have to check the password that will be either in Upper Case or Lower Case or Numeric. Can you please tell me anyone that how I will do it by javascript.
I have a URL that I intend to load into startup via a shortcut. I need to have input of email address and password for it not to become a pest at every startup.
When that is input manually I get a HTML which contains my DNS. Incidentally that would be nice to have that displayed on the screen.
Both email and password come as <td><img SRC="/homeparts/login_email.gif" WIDTH="67" HEIGHT="11" BORDER="0" ALT="Email"></td>
The following line is the one that accepts the input as <td><input TYPE="text" NAME="username" VALUE="" CLASS="login_box" SIZE="25">
The question is: Can it be done. The problem is for an elderly chap accustomed to C and C++ to be able to understand how. So some help which will make C , Java or Javascript make it do that and possibly pick off the DNS from the next screen.....