how to create unable to save web page?

They have: 2 posts

Joined: Mar 2005

Here,

Busy's picture

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?

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's picture

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.

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

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 Sticking out tongue

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!

Smiling

Andy

They have: 5,633 posts

Joined: Jan 1970

I download flash movies, I got my own foamy archive Smiling

dk01's picture

He has: 516 posts

Joined: Mar 2002

You can encrypt js though Smiling

http://hometown.aol.de/_ht_a/memtronic/

-dk

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

dk01 wrote: You can encrypt js though Smiling
http://hometown.aol.de/_ht_a/memtronic/

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 Wink

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's picture

He has: 3,022 posts

Joined: Oct 2002

Don't put it on the internet.

dk01's picture

He has: 516 posts

Joined: Mar 2002

Original Code:

<html>
<head>
<title>Hi</title>
&lt;script type="text/javascript"&gt;
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.");
}
&lt;/script&gt;
</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>
&lt;script type="text/javascript"&gt;
$="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,"\""));
&lt;/script&gt;
</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.