/    Sign up×
Community /Pin to ProfileBookmark

Cookies question

Is there any possibility to protect a page (.html) form download to cookies files ??
I have go a password on a web to user gallery

That a script to that pass if anyone need:
<script Language=”JavaScript”>
function password (pass) {
var password = ”
if (password != null){
location.href= pass + “.html”;
}
}
</script>

<FORM name=”login” target=”mainFrame”>
<div align=”center”>
<INPUT NAME=”pass”>
<br>
<br>
<INPUT TYPE=”button” VALUE=”Click” onClick=”password(form.pass.value)”>
<INPUT TYPE=”RESET” VALUE=”Reset”>
</div>
</form>

Is it possible to brake the password becouse a think any way is download whole page some program and then you will know what pass is (becouse you see the pass is a name of the html)
So is any possible to protect web from download (is any js block a download page to cookie??)

Thanks for any opinion and any help

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@CharlesApr 27.2003 — [font=georgia]I'm sorry. JavaScript is not suitable for use for password protection. You'll need to use some kind of server side method. Talk to your server people to find out what is available.[/font]
Copy linkTweet thisAlerts:
@JOHNYauthorApr 27.2003 — [i]Originally posted by Charles [/i]

[B][font=georgia]I'm sorry. JavaScript is not suitable for use for password protection. You'll need to use some kind of server side method. Talk to your server people to find out what is available.[/font] [/B][/QUOTE]


Heheh I don't think so in java is possible to protect that visit that page [URL=http://anica.prv.pl]click[/URL] And try to brake into ?
Copy linkTweet thisAlerts:
@JOHNYauthorApr 27.2003 — What that script do:

function gemius_parameters() {

var dt=new Date();

var url=new String();

var d=document;

url+='&tz='+dt.getTimezoneOffset();

if (d.URL) url+='&href='+escape(d.URL.substring(0,299));

var t=typeof Error;

if(t!='undefined') {

eval("try { if (top && top.document && top.document.referrer) { url+='&ref='+escape(top.document.referrer.substring(0,299))} else if(d.referrer) { url+='&ref='+escape(d.referrer.substring(0,299))} } catch(exception) { }")

} else if(d.referrer) {

url+='&ref='+escape(d.referrer.substring(0,299));

}

if (screen) {

var s=screen;

if (s.width) url+='&screen='+s.width+'x'+s.height;

if (s.colorDepth) url+='&col='+s.colorDepth;

}

return url;

}


var gemius_url=new String('http://adnet.hit.gemius.pl/_'+(new Date()).getTime()+'/dot.gif?id=Vb3QZmS8p8Jrzc0x0O3q3_N1Dw_L2HJ3a5n0PQfNV37.y7&l=7');

gemius_url+=gemius_parameters();

var gemius_image = new Image(1,1);

gemius_image.src = gemius_url;
×

Success!

Help @JOHNY spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...