India Forums  

Go Back   India Forums > Forum Index > Technology > Programming

Programming Ask your question related to computer programming, programming languages, tutorials and programming for beginners.


Reply
 
Thread Tools Display Modes
Old 12-10-09, 08:33 PM   #1
MythiliK
Guru
 
MythiliK's Avatar
 
Join Date: Feb 2009
Location: Basel
Posts: 803
Default A code to stop copy & paste of your work

You might have spent hours together to think, analyze, to do research and re-frame your work, before putting them into words in your blogs. You might have spent some more time and investments in bringing traffic to those websites. But few days later, you might have got shocked, by seeing someone else blog too having the same content, without even a single word change. They will be earning at the cost of your work.

Here is the code to stop them.

<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
var debug = true;
function right(a)
{
if (navigator.appName == 'Netscape' && (a.which == 3 || a.which == 2)) return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
{
alert('Sorry Friend, I Blocked COPYING');
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right;
</script>
</Head>
<body bgcolor="BLUE" ondragstart="return false" onselectstart="return false">
Just for testing... Try copying me :-)
</body>
</html>
MythiliK is offline   Reply With Quote
Sponsored links
Old 12-10-09, 08:36 PM   #2
MythiliK
Guru
 
MythiliK's Avatar
 
Join Date: Feb 2009
Location: Basel
Posts: 803
Default

This code will disable

1. Right click to select all and copy.
2. To do select all from "Edit" tab to copy the page.
3. To drag and select all to do copy.
MythiliK is offline   Reply With Quote
Old 13-10-09, 06:53 AM   #3
Unregistered
Guest
 
Posts: n/a
Default

this seems to work. how do you change your page layout if you use blogspot or wordpress to host your blog? (if you dont have your own site to host blog?)
  Reply With Quote
Old 13-10-09, 12:01 PM   #4
MythiliK
Guru
 
MythiliK's Avatar
 
Join Date: Feb 2009
Location: Basel
Posts: 803
Default

I don't know in wordpress... but in blogspot, go to Dashboard --> Layout --> Edit HTML

There you can do this
MythiliK is offline   Reply With Quote
Old 14-10-09, 12:31 PM   #5
MythiliK
Guru
 
MythiliK's Avatar
 
Join Date: Feb 2009
Location: Basel
Posts: 803
Default

In wordpress, I heard only premium members will be able to modify the code and not all....
MythiliK is offline   Reply With Quote
Reply

Share this page with your friends

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is London Dreams a copy? bharath2080 Bollywood Movies 1 01-09-09 05:24 PM
Now a bollywood copy in hollywood aks21 Bollywood Movies 11 08-04-09 06:51 PM
Please do not copy and paste without crediting the source Administrator Announcements 0 07-02-09 10:31 AM


All times are GMT +5.5. The time now is 08:46 PM.



Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Ad Management by RedTyger