BetaONE will rise again!


Reply
  #1  
Old 21st Oct 02, 11:13 AM
*MO*'s Avatar
*MO* *MO* is offline
Senior Member
 
Join Date: Aug 2002
Location: Cape Town
Posts: 311
*MO* is an unknown quantity at this point
Send a message via MSN to *MO*
hi

i got a website, and i want to protect one page. the problem is, i can't use .htaccess due to some curcumstances (excuse the spelling).

now i use javascript on one page. the problem is, that if you view source on a page (ie: right click on the page, and select view source), you can see the password. is there a way i can hide that text, so that when they view source, that does not show. can that be done? or if there is another password method i should use. any lanuage would do good. thanx

*MO*
Reply With Quote
  #2  
Old 21st Oct 02, 04:50 PM
Tomboy Tomboy is offline
BetaONE Supporter
 
Join Date: Jan 2002
Posts: 108
Tomboy is an unknown quantity at this point
Hi,

Create an encrypt function in javascript to process your input and compare the result to an encrypted version of your password. It doesn't have to be too complex to confuse most casual viewers of your code. That should be good enough to keep out 95% of people, the remaining 5% you probably can't keep out without some really serious programming.

Tomboy
Reply With Quote
  #3  
Old 22nd Oct 02, 09:08 AM
*MO*'s Avatar
*MO* *MO* is offline
Senior Member
 
Join Date: Aug 2002
Location: Cape Town
Posts: 311
*MO* is an unknown quantity at this point
Send a message via MSN to *MO*
hmmmm

that works fine. thanx a mil.
but that chance of the password getting out is still there...
will it be better just to use php lanuage to call another file, thats not displayed?

and checks the password from previous page, then forwards it to the protected page if its correct. that should be ok.

i think i'll do it that way then....

thanx a mil
if anyone can give a shorter way, i would appreciate it. thanx
Reply With Quote
  #4  
Old 22nd Oct 02, 04:52 PM
SePP's Avatar
SePP SePP is offline
New Member
 
Join Date: Oct 2002
Location: Laakdal
Posts: 2
SePP
Send a message via ICQ to SePP Send a message via MSN to SePP
php is much saver then JS i should use that if I were you ...
Reply With Quote
  #5  
Old 23rd Oct 02, 11:38 AM
*MO*'s Avatar
*MO* *MO* is offline
Senior Member
 
Join Date: Aug 2002
Location: Cape Town
Posts: 311
*MO* is an unknown quantity at this point
Send a message via MSN to *MO*
i've used the php method before. the only problem is, is that it takes forever to make it.

i was on the javascript website and found some scripts, but they too display the answer in view source. that help much....
duh

later
Reply With Quote
Reply


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

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
Forum Jump


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


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.