PDA

View Full Version : Truncating & blocking 'View Source' & Save file of w


maraland
10-02-2004, 04:08 PM
Hello!

Someone has saved my homepage and have modified a little bit. But I caught him through statcounter code. Many Thanks to the Statcounter Team.

Is there any way to block "view source" of webpage and also to block them from "save file" ?

I'll be very grateful for this. I have posted this topic somewhere and since no one replied - I couldn't trace right now.

I hope this is the right place.


webmaster
Maraland Site

webado
10-02-2004, 04:16 PM
Not really. You can disable right click, but the browser menu is still there, so view>source is available to all and sundry, as well as file>save as .

maraland
10-02-2004, 04:23 PM
I appreciate your speed, Christina!

Somewhere I saw JavaScript to diable the save file and view source.

:cry:

webado
10-02-2004, 06:39 PM
I appreciate your speed, Christina!

Somewhere I saw JavaScript to diable the save file and view source.

:cry:
I think this only refers to right-click. In any case, if a visitor does not have javascript enabled, these scripts wouldn't work.

Here is a version:

Make a file, call it noclick.js, containing this:


// distributed by http://www.hypergurl.com (more scripts there)
<!-- var debug = true;
function right(e)
{
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
{
// alert('This Page is fully protected!');
document.location= "noclick.html";
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
{
alert('This Page is fully protected!');
return false;
}

return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
//-->


In the head section of your page that you want protected, include this:

<script language="JavaScript1.1" src="noclick.js"></script>



Also make an html page, call it noclick.html:

<html>
<head>
<title>No clicking page</title>

</head>
<body>
<center>
Right-clicking is disabled!
</center>
</body>
</html>


Upload noclick.js and noclick.html to all the folders where you have pages to protect.

This will work both in IE and Firefox (which shows up as Netscape in javascript) from all the tests I've made. Probably need mods for other browsers, but I don't have them so I have no real idea.

None of it will disable the browser menu which also includes Save as and View source.

The only way to achive that would be to always use open.window instead of a straightforward link and specify what to show and what not to show of the browser menu. You cannot do this for your first page that is loaded when you access the web site, so in the end somebody dertemined will always get the source for everything anyway. And then (*weep*) there's always the famous CTRL+N which turns your carefully crafted window into a regular, full fledged browser window with all the controls.

Been there, done that!

If you write your pages in php, maybe you can structure it all such that they are dynamic pages, so saving the html source code at any point would be useless in general. Personally I don't feel like going through all the trouble anyway.

Now, mind you, maybe, just maybe, there's another way I haven't run into. But it must be very carefully guarded then.

ScottyDM
10-02-2004, 09:32 PM
Unfortunately, it is technically impossible to absolutely protect your intellectual property from the people you let experience your intellectual property (ooh! big words :roll: ).

To put it another way, e-Books, DeCSS (DVDs), the RIAA (CDs, downloadable music), AW password protected models, and all of that, can never be 100% proof against copying. Disney be dammed, if you let someone look at your stuff, they can copy it -- there is no technology that can exist which will prevent that. Believe me, I've thought about the issue, long and hard.

Of course you can make it really inconvenient, darned difficult, and a royal pain for someone to attempt to copy your stuff. But you can never make it impossible for some ordinary (but determined) user, with consumer-level equipment, to crack your "security" and make a copy. Every copy protection scheme has, at its heart, "security by obscurity". And any technically savvy person knows what that is worth.

Then there is the issue of fair use under copyright law, and screwing up your legitimate users. Copyright is "leaky", I guess we all have to live with that fact. Personally, I would not dream of trying to disable right-click on any of my web pages -- right-click is too darned useful.


Maraland, it was really awesome that your page thief left that StatCounter code in the page when the published it. Makes your job all the easier! I love it! :D I hope you got them booted from their hosting service.

It might be a very cool new feature (perhaps added to the paid service) to make the logs for statistics coming from the wrong domain, sticky.


Scotty

pamyang
03-28-2006, 04:35 PM
is there a code for myspace.com for no right clicking or copying?

webado
03-28-2006, 05:29 PM
Please don't ask about MySpace support here, Statcounter has NOTHING to do with MySpace.

activewebs
03-28-2006, 07:13 PM
Hi guys
Hi Maraland

The whole disable right click thing is a mine field , do it, dont do it , can they get round it , or not ?? etc. we know they can :?
Its a matter of preferance , we have some clients who want it some who are not botherd, one guy who is a graphic artist puts a water mark accross his images, but as for text and intelectual proporty, well , where do you stand ?

If you blatently steal someones text , say a JWJ poem and past it onto your site and claim its yours then, well,,, damm you :mad: ,same for a authentic one off image. But say you read a artical about some sporting event etc and then make some comment about it elseswhere ,matbe use a stock photo, is that wrong ?,
but cross the big corporations and steal their stuff and you will be stuffed too if your found out.
But if you are taking inspiration from someone elses work , and especialy if you give credit then that is not a bad thing.
Enough ranting for now

Rich

unrealgecko
04-09-2006, 01:31 AM
use a flash loader or just use flash.... so that if they steal your shizzle, they can't change it up...unless you give away the secret location to the decompiler.... ;)

howardgreens
04-09-2006, 12:23 PM
U
Of course you can make it really inconvenient, darned difficult, and a royal pain for someone to attempt to copy your stuff. But you can never make it impossible for some ordinary (but determined) user, with consumer-level equipment, to crack your "security" and make a copy. Every copy protection scheme has, at its heart, "security by obscurity". And any technically savvy person knows what that is worth.

Then there is the issue of fair use under copyright law, and screwing up your legitimate users. Copyright is "leaky", I guess we all have to live with that fact. Personally, I would not dream of trying to disable right-click on any of my web pages -- right-click is too darned useful.



If the technical fix is hard enough, and people want it badly enough, they will simply reproduce it (especially if it is text driven)... :)