BetaONE will rise again!

BetaONE will rise again! (http:\\b1.hcanet.com\forum/index.php)
-   Software Support (http:\\b1.hcanet.com\forum/forumdisplay.php?f=45)
-   -   HTML / PHP / ASP / JAVASCRIPT (http:\\b1.hcanet.com\forum/showthread.php?t=3505)

*MO* 21st Oct 02 10:13 AM

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*

Tomboy 21st Oct 02 03:50 PM

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

*MO* 22nd Oct 02 08:08 AM

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

SePP 22nd Oct 02 03:52 PM

php is much saver then JS i should use that if I were you ...

*MO* 23rd Oct 02 10:38 AM

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.... :blink:
duh

later


All times are GMT +1. The time now is 06:49 PM.

Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.