![]() |
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* |
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 |
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 |
php is much saver then JS i should use that if I were you ...
|
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.