Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Client Side Scripting
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 09-20-2005, 11:28 AM
  #1
andybeeeeee
Novice (Level 1)
 
Join Date: Sep 2005
Posts: 5
iTrader: (0)
andybeeeeee is an unknown quantity at this point
Javascript Security

Hi there

i'm using a javascript for a password protected part of my site as its the easiest way of doing it imo. the only trouble i'm having is that people can view the source of my page and find the address for my javascript. they can then go into the script and get the username and password, thus negating the point of having a password protect part!

i've tried changing the chmod properties of the java script, but if i make it so that the world cant read it, it doesnt actually function at all. i've also tried putting it in the private part of my website, but that has the same affect as the above.

can anyone help me by telling me how i can make it so that people cant get into my javascript, but still have it so that it functions...

if thats not possible i need another way of password protecting pages on my site...

thanks, andy
andybeeeeee is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-20-2005, 01:29 PM
  #2
RysChwith
Super Guru
 
Join Date: Jun 2004
Posts: 4,117
iTrader: (0)
RysChwith will become famous soon enough
There is no way to securely protect a page with JavaScript. You need to either use a server-side script, such as PHP or ASP, or an .htaccess file. I'm pretty sure someone whipped up a tutorial on .htaccess, if you do a search of the forums.

Rys
RysChwith is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-20-2005, 06:47 PM
  #3
andybeeeeee
Novice (Level 1)
 
Join Date: Sep 2005
Posts: 5
iTrader: (0)
andybeeeeee is an unknown quantity at this point
i tried it using .htaccess, but it didnt seem to work. maybe i was doing it wrong so i'll try again
andybeeeeee is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-21-2005, 03:52 AM
  #4
maskd
Swordman (Level 9)
 
maskd's Avatar
 
Join Date: Sep 2005
Location: NSW, Australia
Posts: 88
iTrader: (0)
maskd is an unknown quantity at this point
There are scripts available however that "encrypt" your code, making it harder for novices who "think their leet" from finding out the password and conflicting as much damage as possible. Most of the people with the really good skills probably wouldn't be bothered.
maskd is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-21-2005, 10:43 AM
  #5
andybeeeeee
Novice (Level 1)
 
Join Date: Sep 2005
Posts: 5
iTrader: (0)
andybeeeeee is an unknown quantity at this point
can you point me in the direction of an encryption script? this could be what i need. the things i'm trying to protect arent that private, i just dont want it so easy for anyone to gain access
andybeeeeee is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 02:25 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.