PDA

View Full Version : Disable saving web page



cbmehta
11-20-2006, 04:30 AM
hi friends,
Cb mehta here
I m new for all of u...


I want to know that
is there any script to disable the functionality of saving web page
so that no one can save my web content as well as any type of content
of my page.

If you have a solution plz. tell me.
i'll be very thankful to you .

regards
Cb mehta

codeexploiter
11-20-2006, 06:05 AM
I don't think that can be done in an efficient way. There are so many HTML source code encrypters and sorts of softwares but still they are not much of use especially in case of your images.

djr33
11-20-2006, 07:58 AM
No. Cannot be done.
By allowing someone to view your page, you are allowing them to have your content... when they view it IS on their computer.
No way around it.

chechu
11-20-2006, 10:08 AM
There is a way around it (but not to recommend) if you use frames. When you click on a link, you see on mouse-over in the bar below to what page you are going (f.ex. yoursite.com/contact.html). But if you type in "http://yoursite.com/contact.html", you will be redirected to the index.
You can see examples here (http://www.casariegoart.com): try to find a code of the pages that are in the <iframe>.


Place this in the <head>


<script src="topwindow.js"></script>


Save the following as "topwindow.js"


<!--
if (top.frames.length == 0) {
ver = parseInt(navigator.appVersion, 10);
if ( ((navigator.appName == "Netscape") && (ver >= 3)) ||
((navigator.appName == "Microsoft Internet Explorer") && (ver >= 4)) )
location.replace("index.html");
else
location = "index.html";
};
// -->


Again, this is not recommended. It might be interesting if you'd read URL="http://www.dynamicdrive.com/forums/showthread.php?t=14403"]this thread[/URL]

chechu
11-20-2006, 10:09 AM
Sorry. This is the thread (http://www.dynamicdrive.com/forums/showthread.php?t=14403)

djr33
11-20-2006, 10:20 AM
No. That won't work.

Remember, take a step back and think for a moment.
People who do not know anything about web design won't be stealing your pages anyway. You can bet that in many, if not most cases, they will know the same or more than you do.
As such, a simple trick like that won't help anything.
Anyone who is ILLEGALLY stealing your material won't be stopped by something silly like frames, encrypted source, etc.

If you want an example, just give me a link, and I'll get around it real fast.

As for frames specifically, all one needs to do it look at the source, see what the URL of the included page is and then open that page in a non-frame window, then look at the source. Or, better yet, use a better browser than internet explorer, right click within the frame and view the source of the frame that way.
(For the above "solution" all one needs to do is disable javascript and view the page directly. Or just save the page through a link, as opposed to from the file menu or source code.)

Your content is protected by copyright law. If someone steals it, you can pursue it that way... you just have to decide on a case by case basis if that is worth it.

Rememeber, anything you let people view on the internet can also be saved. That's all there is to it.
Web design individuals and companies who have had far more experience and have more knowledge than you have tried and failed to do this.
Why? That's just how the web works... it's actually designed to be like that. It's nice... y'know... html is free. You don't need to pay to view websites. Etc.