i m not using any acript to save my web pages. i want to know how to do that with using some scripts or some techniques. pls navigate the web site http://www.himalayahealthcare.com, please try to save the web page using IE and will get the error message "this web page could not be saved". the same thing i need to my website. so pls try to findout how to do it
timjpriebe posted this at 12:56 — 23rd March 2005.
I was able to save the page, no problem. They do have commas in their in their header, which both IE and Firefox try to use as the filename. Of course, commas aren't allowed in file names, so I had to change the filename to temp.html. I then had no problem.
As far as I know, there's no absolute way to stop people from saving pages. To even view the page, it is temporarily saved on your computer.
It's not possible to prevent the html from being saved, because in order for the page to be viewed in a web browser it is automatically downloaded to your computer anyway. That's how web browsers work. The moment the user enters your page name into their browser, the browser retrieves the content and stores it locally for reading.
Andy
bja888 (not verified) posted this at 00:39 — 24th March 2005.
you cant hide .js files eather! I have downloaded them number of times from peoples websites. All u need Is a download client. View source then copy the url
You don't even need a download client. All you have to do is create a standard html page with a link with the href set to the full URL of the javascript file. Then open it in a web browser, right click and select "save target as...". I use that technique for "borrowing" flash and movie content all the time!
Andy
bja888 (not verified) posted this at 01:02 — 24th March 2005.
Went to this site to see, as many of these you can easily "decrypt". Well the site comes up and says "Not Available", so that really doesn't protect you much
Face it, if it's online people can get it, the browser has to get it to display it. Like renegade said, to 100% protect it don't put it on the net.
I once knew someone a few years ago that was doing web work, who let his "clients" (small time work) view his sample of the site he was making them online. One time someone took his "preview" and went live with it on their servers. He was so confused how they got his code and bypassed paying him. (I think later they did pay him).
It works for me. At least it prevents script kiddies from stealing your code so easily for their own use. I agree that anything really important needs to be kept off the web but I think if you are selling scripts or something then this is a decent way to protect your code.
-dk
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.
Busy posted this at 10:16 — 23rd March 2005.
He has: 6,151 posts
Joined: May 2001
all web pages are abled to be saved (file/save page as) or similar (depending on the browser), are you using a script to save the pages?
hasanfaiz posted this at 10:29 — 23rd March 2005.
They have: 2 posts
Joined: Mar 2005
i m not using any acript to save my web pages. i want to know how to do that with using some scripts or some techniques. pls navigate the web site http://www.himalayahealthcare.com, please try to save the web page using IE and will get the error message "this web page could not be saved". the same thing i need to my website. so pls try to findout how to do it
timjpriebe posted this at 12:56 — 23rd March 2005.
He has: 2,667 posts
Joined: Dec 2004
I was able to save the page, no problem. They do have commas in their in their header, which both IE and Firefox try to use as the filename. Of course, commas aren't allowed in file names, so I had to change the filename to temp.html. I then had no problem.
As far as I know, there's no absolute way to stop people from saving pages. To even view the page, it is temporarily saved on your computer.
Tim
http://www.tandswebdesign.com
andy206uk posted this at 17:06 — 23rd March 2005.
He has: 1,758 posts
Joined: Jul 2002
It's not possible to prevent the html from being saved, because in order for the page to be viewed in a web browser it is automatically downloaded to your computer anyway. That's how web browsers work. The moment the user enters your page name into their browser, the browser retrieves the content and stores it locally for reading.
Andy
bja888 (not verified) posted this at 00:39 — 24th March 2005.
They have: 5,633 posts
Joined: Jan 1970
you cant hide .js files eather! I have downloaded them number of times from peoples websites. All u need Is a download client. View source then copy the url
andy206uk posted this at 00:51 — 24th March 2005.
He has: 1,758 posts
Joined: Jul 2002
You don't even need a download client. All you have to do is create a standard html page with a link with the href set to the full URL of the javascript file. Then open it in a web browser, right click and select "save target as...". I use that technique for "borrowing" flash and movie content all the time!
Andy
bja888 (not verified) posted this at 01:02 — 24th March 2005.
They have: 5,633 posts
Joined: Jan 1970
I download flash movies, I got my own foamy archive
dk01 posted this at 01:34 — 24th March 2005.
He has: 516 posts
Joined: Mar 2002
You can encrypt js though
http://hometown.aol.de/_ht_a/memtronic/
-dk
Greg K posted this at 18:43 — 25th March 2005.
He has: 2,145 posts
Joined: Nov 2003
Went to this site to see, as many of these you can easily "decrypt". Well the site comes up and says "Not Available", so that really doesn't protect you much
Face it, if it's online people can get it, the browser has to get it to display it. Like renegade said, to 100% protect it don't put it on the net.
I once knew someone a few years ago that was doing web work, who let his "clients" (small time work) view his sample of the site he was making them online. One time someone took his "preview" and went live with it on their servers. He was so confused how they got his code and bypassed paying him. (I think later they did pay him).
-Greg
Renegade posted this at 03:56 — 25th March 2005.
He has: 3,022 posts
Joined: Oct 2002
Don't put it on the internet.
dk01 posted this at 19:51 — 25th March 2005.
He has: 516 posts
Joined: Mar 2002
Original Code:
<html>
<head>
<title>Hi</title>
<script type="text/javascript">
function blah() {
alert("Hey dude whats going on today?");
}
function blah2() {
alert("Noting really...just hanging out.");
}
function blah3() {
alert("Should we get drunk tonight then?");
}
function blah4() {
alert("Sounds great. I will pick up some vodka and ladies.");
}
</script>
</head>
<body>
<a href="#" onclick="blah();">Blah</a><br />
<a href="#" onclick="blah2();">Blah2</a><br />
<a href="#" onclick="blah3();">Blah3</a><br />
<a href="#" onclick="blah4();">Blah4</a><br />
</body>
</html>
Compressed code:
<html>
<head>
<title>Hi</title>
<script type="text/javascript">
$="f©ction blah¥Hey dud«what¨o¦nªday?§2¥Noting ¬lly...jus*hang¦ut.§3¤hould w«ge*dr©kªnigh*then?§4¤o©d¨¬t. I will pick up som«vodka and ladies.¢);}";for(I=10;I>=0;)$=$.replace(eval("/"+String.fromCharCode(163+I)+"/g"),"¢);}function b¡(){alert(¢S¡(){alert(¢¡ing o¡£lah¡s g¡un¡ to¡e ¡rea¡t ".split("¡")[I--]);eval($.replace(/¢/g,"\""));
</script>
</head>
<body>
<a href="#" onclick="blah();">Blah</a><br />
<a href="#" onclick="blah2();">Blah2</a><br />
<a href="#" onclick="blah3();">Blah3</a><br />
<a href="#" onclick="blah4();">Blah4</a><br />
</body>
</html>
It works for me. At least it prevents script kiddies from stealing your code so easily for their own use. I agree that anything really important needs to be kept off the web but I think if you are selling scripts or something then this is a decent way to protect your code.
-dk
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.