Go Back   CodingForums.com > :: Client side development > JavaScript programming > Post a JavaScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 14 votes, 3.79 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-25-2009, 05:49 PM   PM User | #106
jrp1
New Coder

 
Join Date: Jul 2008
Posts: 55
Thanks: 3
Thanked 4 Times in 4 Posts
jrp1 is an unknown quantity at this point
I cant believe nobodys thanked him for this yet. +rep
jrp1 is offline   Reply With Quote
Old 07-26-2010, 04:59 AM   PM User | #107
jenpen
New to the CF scene

 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
jenpen is an unknown quantity at this point
This is so cool and easy for a JS noobie like me BUT my JS menu has disappeared - there seems to have been a conflict of some type. If anyone can think of a fix, here's my page:
http://indigoedge.com.au/epublish/client/index.html

and you can log in with Client, Digipub.
Thanks, Jen
jenpen is offline   Reply With Quote
Old 07-26-2010, 06:29 AM   PM User | #108
jenpen
New to the CF scene

 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
jenpen is an unknown quantity at this point
Hey ignore that. I re-uploaded all files and now it's working fine. Must have missed something. Thanks anyway, it's a great little script for when it's not life-or-death security, just to make members feel special.
jenpen is offline   Reply With Quote
Old 03-04-2011, 09:24 PM   PM User | #109
nate.hernandez9
New to the CF scene

 
Join Date: Mar 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
nate.hernandez9 is an unknown quantity at this point
Thank you for this code, it really comes in handy.
unfortunately, i am not too savy using JS. and i was wondering what exactly i would write/change to have the users be put in there own folder within the current directory. For example, lets say i have everything in a folder named "site" and the users are scrambled within the folder along with the other pages. how do i put them in their own folder, called "users" for instance?
nate.hernandez9 is offline   Reply With Quote
Old 03-19-2011, 02:58 AM   PM User | #110
Shively-Mower
New to the CF scene

 
Join Date: Mar 2011
Location: Suburban Louisville, KY
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Shively-Mower is an unknown quantity at this point
Hey Borgtex

What I would really like is to validate users via a look-up in a database already on the server, which seems to me to be a more secure method.

What code modifications does this script need.
Let's go with a table named passwords - how's that for imagination?
Field names would be User and Pass.
Keeping it simple, let's pretend it's an Access table in the /database directory.

One final totally armature question - where should I put this script within the web to assure that it only impacts access to the database application?

Thanks a 1,000,000 ±
Chuck
Shively-Mower is offline   Reply With Quote
Old 10-21-2012, 07:31 AM   PM User | #111
samaneh1d1
New to the CF scene

 
Join Date: Oct 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
samaneh1d1 is an unknown quantity at this point
Question is it really secure?!?

I am not very familiar with js. Would someone explain me that how this login provides security?
thanks in advance.
samaneh1d1 is offline   Reply With Quote
Old 10-23-2012, 12:44 AM   PM User | #112
keyboard1333
New Coder

 
Join Date: Oct 2012
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
keyboard1333 is an unknown quantity at this point
Because you can't view all the files in a directory, the names (and therefor the correct username and password) are hidden.

The only way to login is to put in the correct username and password...

One easy way to crack this would be to just brute force the directory untill you find the files...
keyboard1333 is offline   Reply With Quote
Old 10-24-2012, 10:15 AM   PM User | #113
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,033
Thanks: 197
Thanked 2,410 Times in 2,388 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
Quote:
Originally Posted by keyboard1333 View Post
Because you can't view all the files in a directory, the names (and therefor the correct username and password) are hidden.

The only way to login is to put in the correct username and password...

One easy way to crack this would be to just brute force the directory untill you find the files...
Not easy! Not if the file is named CrazyStanierPurpleStarling781.js or whatever.
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Philip M is offline   Reply With Quote
Old 11-27-2012, 03:12 PM   PM User | #114
steveparkinson
New to the CF scene

 
Join Date: Nov 2012
Location: manchester, UK
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
steveparkinson is an unknown quantity at this point
Unhappy

Oooops posted in the wrong place and can't see where to delete it...

Sorry

Last edited by steveparkinson; 11-27-2012 at 03:17 PM.. Reason: In the wrong place
steveparkinson is offline   Reply With Quote
Old 11-27-2012, 03:15 PM   PM User | #115
steveparkinson
New to the CF scene

 
Join Date: Nov 2012
Location: manchester, UK
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
steveparkinson is an unknown quantity at this point
Quote:
Originally Posted by Ricky158 View Post
holy $*@&

i've been looking for a good password-gate-like thing for a loooooong time. this is awesome! i was about ready to post that i was having trouble, before i found out what to do. here's how i got it to work...

1) unzipped the files
2) uploaded ALL of them to my site
3) created a new "CoddingForums.js" page and renamed "CoddingForums"
4) in renamed "CoddingForums" page, paste all info from the text in the "CoddingForums.js" into the new, renamed page
5) thank borgtex for the awesome script

also, you've got to make sure the file name is "{Name}{Password}.js" no {}'s, no spaces, first letter of name and password is capitalized (or so i think. but i'm afraid to test). it works fine for me, doing the method above.

THANKS BORGTEX!!
I'm probably (no prabably about it!) really dumb, but I couldn't figure out how to get this thing working. Can anyone explain it better with examples?

I tried to put in

Username: john
password: smith

I modified the password field to hide the characters, which worked :-)

And I want it to point to a page called /johnsmith.html but when I do it it just comes back with "/auth.htm?johnsmith"

Imagine you are explaining this to a 5 year old lol...
steveparkinson is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:28 PM.


Advertisement
Log in to turn off these ads.