It’s always a great thing when your content is re-published on other sites provided that your link is intact. It’s a great way to get inbound links to your site that will eventually improve your Google PageRank.
However, there are people out there who are in the habit of blatantly stealing other people’s content without sourcing it or putting the link where the article came from. A simply way to prevent this is to put up a disclaimer page on your site, or you can sign up for Tynt Publisher Tools. Tynt tracks copy activity on your site and automatically adds an attribution link back to your content.
You can also use these codes to prevent people from highlighting your text and right clicking on your images.
Disable Highlight
1: <script type="text/javascript">
2:
3: /***********************************************
4: * Disable select-text script - Wicked Sago (wickedsago.blogspot.com)
5: * This notice MUST stay intact for legal use
6: * DO NOT REMOVE THIS
7: ***********************************************/
8:
9: //form tags to omit in NS6+:
10: var omitformtags=["input", "textarea", "select"]
11:
12: omitformtags=omitformtags.join("|")
13:
14: function disableselect(e){
15: if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
16: return false
17: }
18:
19: function reEnable(){
20: return true
21: }
22:
23: if (typeof document.onselectstart!="undefined")
24: document.onselectstart=new Function ("return false")
25: else{
26: document.onmousedown=disableselect
27: document.onmouseup=reEnable
28: }
29:
30: </script>
Disable Right-Click
1: <script language="JavaScript">
2: <!--
3:
4: /***********************************************
5: * Disable right-click script - Wicked Sago (wickedsago.blogspot.com)
6: * This notice MUST stay intact for legal use
7: * DO NOT REMOVE THIS
8: ***********************************************/
9:
10: var message="";
11: ///////////////////////////////////
12: function clickIE() {if (document.all) {(message);return false;}}
13: function clickNS(e) {if
14: (document.layers||(document.getElementById&&!document.all)) {
15: if (e.which==2||e.which==3) {(message);return false;}}}
16: if (document.layers)
17: {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
18: else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
19:
20: document.oncontextmenu=new Function("return false")
21: // -->
22: </script>
You have to understand that implementing these codes into your website will have its drawbacks. Remember that the right-click function has many uses, for example, some people right-click links to open them in a new window or tab, and you cannot do this if right clicking is disabled.
Will these codes do more harm than good? It’s your decision.
No comments:
Note: Only a member of this blog may post a comment.