Stop saving web page in local machine

petals_28

New Member
I have my own web-site or home page. I have created the pages with lot of dynamic things.

Now when i visit my site say www.xyz.com and try to save the home page or any other page. It saves the html file with all the images, flash, scripts, jsp files used in that page .... in the local machine. that meance that anyone in the world can copy my work.

Thus i want to restrict this. I want the user to view my web page but when then try to save the page in the local machine ... then it does not save anything. Or send a message that this web page can not be saved.

Can any one help me with this or send me the required code or configuration required for this.

Thnaks in advance

Dipyaman
 

Arkette

New Member
Not posible I'm afraid. The best you can do is add a copright notice to your site and hope that people respect it.
 

petals_28

New Member
Stop saving web-page

But i have visited pages which do not allow u 2 save it or edit it. Some restriction from css but dont knw the code exectly.

Arkette said:
Not posible I'm afraid. The best you can do is add a copright notice to your site and hope that people respect it.
 

Arkette

New Member
All these sites are doing is preventing right click context menu's. This doesn't mean that users are prevented from saving the files fullstop. The very act of viewing a page means that all the files, code, markup and images are downloaded to the client PC. After that there are any number of ways the content can be saved.
 

DLPerry

New Member
You can always use a good ole "no right click" code of some sort, but that will only help to keep the honest people honest.

I have a snippet of Javascript on my sites that pops up an alert box when a right-click is detected.
Here is the snippet I use. It is inserted in the source code immediately after the Body tag.


<SCRIPT language="JavaScript">
<!--
var message="Copyright 2005-2006 by DLPerry.com. All Rights Reserved. WARNING ! All content contained within this site is protected by copyright laws. Unauthorized use of our material is strictly prohibited.";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</SCRIPT>
 

petals_28

New Member
Dipya: Just check this ... How does it work?????

Thnaks everbody for all ur reply but it works some how ....

just check this site .....
http://www.calcuttatelephones.com/

Go for the menus ..... they have nicely did it and difinetly some script is working behind it ...... but if you save this page (File -> Save As) then it only saves the pics .... no way you can get the script for the menus .......

The same thing i want ........ it should not save my codes ar scripts i am using.

Thanks & Regards

Dipyaman


petals_28 said:
I have my own web-site or home page. I have created the pages with lot of dynamic things.

Now when i visit my site say www.xyz.com and try to save the home page or any other page. It saves the html file with all the images, flash, scripts, jsp files used in that page .... in the local machine. that meance that anyone in the world can copy my work.

Thus i want to restrict this. I want the user to view my web page but when then try to save the page in the local machine ... then it does not save anything. Or send a message that this web page can not be saved.

Can any one help me with this or send me the required code or configuration required for this.

Thanks in advance

Dipyaman
 

DLPerry

New Member
petals_28 said:
Thnaks everbody for all ur reply but it works some how ....

just check this site .....
http://www.calcuttatelephones.com/

Go for the menus ..... they have nicely did it and difinetly some script is working behind it ...... but if you save this page (File -> Save As) then it only saves the pics .... no way you can get the script for the menus .......

The same thing i want ........ it should not save my codes ar scripts i am using.

Thanks & Regards

Dipyaman


I am not sure what you are seeing, Are you saving a page locally that you have also designed locally (meaning are your site files on the server AND on your local computer)? If so, that may be why the scripts on your page still seem to work when saved locally, while a random page saved from the web may not.

I just saved the page locally (both as single html page and as complete html - via IE), and was still able to view the source code and see the menu script in use without difficulty.

(fyi: according to the source code, the menu is created from "DHTML Menu Builder".)

As expected, the menu script does not function properly when saved locally because the paths and links within the menu are relative rather than absolute, ie: <img src="/image.name">. rather than <img src="http://domain.name/image.name">, but the script on the page IS saved, and viewable in the source code.

My apologies if this is not what you mean, or if I have just confused the issue. :)

--dlp
 

petron

New Member
No "client side " solution for that

Hellow,..

it's hard to say, let's say we going back to the purpose and the reason why u create a website. i think many people in the world create a webite because they want to publish their profile, vision and mission and also publish their products globally.

so if u're not ready for that risk,.. i think u don't have to create websites anymore, because so many way and tricks to save your webpage.., these are some tricks to save a webpage :

1. if the webpage using javascript to protect "right click" event, the tricks is try to open the page using browser which is not support javascript language

2. use "teleport" software. if u want to copy all the page and the page root in the website

The best solution for u is by using "server side" scripting to create protection in your webpage , my suggest is why don't u try to create webpage by using ASP.NET , in asp.net there are many "Class Object" that will help u to protect ur website

thanx
 

timothyb89

New Member
Well, you can prevent people from right clicking, butthe problem with the source code still exists. People can just go to View>Page Source and plug all the links to your images into a download manager and they can also easily copy all of you scripts.
I came across this a while ago:
http://www.dynamicdrive.com/dynamicindex9/encrypter.htm
It'll scramble your page's source (or just part of it) into a format your browser can still interpret.
 
Top