inherit
133493
0
Jul 7, 2010 15:48:57 GMT -8
++ Misery Bless
245
November 2008
meowmeowkat
|
Post by ++ Misery Bless on Sept 10, 2009 19:50:29 GMT -8
Could someone post a code here that will require a user to enter a password and username to view a certain page?
(I want to protect a page on my website (not proboards), and I want to make the password "user" and the password "protected" and once they enter the information into the prompt box, the viewer will be able to see the page).
Thanks ^O^!
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Sept 10, 2009 20:51:18 GMT -8
You don't want to do this with Javascript because all they have to do is disable Javascript or modify the source and remove the code.
|
|
inherit
133493
0
Jul 7, 2010 15:48:57 GMT -8
++ Misery Bless
245
November 2008
meowmeowkat
|
Post by ++ Misery Bless on Sept 11, 2009 3:34:15 GMT -8
I've actually fixed the javascript disablng problem (Try disabling Javascript on: hamarua.proboards.com/ . I was planning to copy the same thing on that website, and put it on my other one incase people tried to disable javascript. What is the other problem though?) I've never heard of source editing. (edit: Please bare mind, I am the only person who has access the code . Thanks Jordan ^^! Edit: Oh... I see. "View Source" would show them the password. Hmm.. have any suggestions for me then ^^?
|
|
inherit
17569
0
Aug 14, 2023 13:11:03 GMT -8
frufru
11,774
December 2003
frufru
|
Post by frufru on Sept 11, 2009 4:48:12 GMT -8
I've actually fixed the javascript disablng problem (Try disabling Javascript on: hamarua.proboards.com/ . I was planning to copy the same thing on that website, and put it on my other one incase people tried to disable javascript. What is the other problem though?) I've never heard of source editing. (edit: Please bare mind, I am the only person who has access the code . Thanks Jordan ^^! Edit: Oh... I see. "View Source" would show them the password. Hmm.. have any suggestions for me then ^^? Do you have support for active content on your site? (i.e. PHP or ASP?) Because that would be the best approach. If not you can give some of these a try: javascript.internet.com/passwords/ (Some of them are actually quite good for Javascript password protection)
|
|
poorman3
inherit
-3691403
0
Dec 4, 2024 8:47:59 GMT -8
poorman3
0
January 1970
GUEST
|
Post by poorman3 on Sept 11, 2009 5:30:07 GMT -8
And it looks to be affecting the ads at the bottom of the site as well. You may want to look into getting that fixed.
|
|
Matt
New Member
Posts: 42
inherit
143021
0
Dec 28, 2010 6:34:21 GMT -8
Matt
42
July 2009
habbo112
|
Post by Matt on Sept 23, 2009 0:04:39 GMT -8
PM Me if you still want a code cause i got one.
Matt
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Sept 23, 2009 15:20:53 GMT -8
There is no safe JavaScript protection against content. You'll need PHP, or else the data can be viewed by a user.
However, it just popped into my head of using encryption/decryption to store the data, using the username/password to encrypt/decrypt. I just don't know of what encryption function to use for that, and it would be a pain in the arse to encrypt the data on every update.
|
|
Matt
New Member
Posts: 42
inherit
143021
0
Dec 28, 2010 6:34:21 GMT -8
Matt
42
July 2009
habbo112
|
Post by Matt on Sept 23, 2009 21:18:09 GMT -8
yes i know its not fool proof, but ive made one and what to know if he wants it.
|
|
inherit
96206
0
Apr 8, 2024 11:48:08 GMT -8
S|P|L|A|T
1,324
January 2007
splatcatballa99
|
Post by S|P|L|A|T on Sept 24, 2009 10:43:43 GMT -8
I can view any content on your site even if i disable javascript all i have to do is view the source
|
|
jadw2k9
inherit
-3744147
0
Dec 4, 2024 8:47:59 GMT -8
jadw2k9
0
January 1970
GUEST
|
Post by jadw2k9 on Oct 12, 2009 15:12:24 GMT -8
on any proboards site you can disable the javascript by typing &NOHEADERS on the end of the URL. you should really use php.
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Oct 13, 2009 12:42:12 GMT -8
on any proboards site you can disable the javascript by typing &NOHEADERS on the end of the URL. you should really use php. Oh wow. That's true. Not even CSS hides (wrapping the content in a hidden div) would stop NOHEADERS. Unless the hidden content was in the headers/footers, but NOHEADERS would certainly prevent anyone from hiding the forums themselves. I never realized that.
|
|
jadw2k9
inherit
-3745793
0
Dec 4, 2024 8:47:59 GMT -8
jadw2k9
0
January 1970
GUEST
|
Post by jadw2k9 on Oct 13, 2009 16:38:28 GMT -8
the only workaround you could do on a proboards forum is by creating a password protected board or a board for only certain types of members. you can give access to members depending on either their rank (post count) or class (admin, mod, gmod, etc).
|
|