The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

how to add script anti piracy

View previous topic View next topic Go down

Solved how to add script anti piracy

Post by indoromance on February 26th 2012, 11:13 am

i found this anti-piracy (anti copypaste) code from google. where should i add this code?

Code:
    <script type=’text/javascript’>

    function addLink() {

    var body_element = document.getElementsByTagName(‘body’)[0];

    var selection;

    selection = window.getSelection();

    var pagelink = “<br/><br/> Read more at: <a href=’”+document.location.href+”‘>”+document.location.href+”</a><br/>Tretan.net: Terima kasih Anda tidak menghapus link sumbernya.“; // change this if you want

    var copytext = selection + pagelink;

    var newdiv = document.createElement(‘div’);

    newdiv.style.position=’absolute’;

    newdiv.style.left=’-99999px’;

    body_element.appendChild(newdiv);

    newdiv.innerHTML = copytext;

    selection.selectAllChildren(newdiv);

    window.setTimeout(function() {

    body_element.removeChild(newdiv);

    },0);

    }document.oncopy = addLink;

    </script>


Last edited by indoromance on February 27th 2012, 10:11 am; edited 1 time in total

indoromance
Forumember

Male Posts : 84
Reputation : 1
Language : Indonesian
Location : Indonesia

http://www.indoromance.friendhood.net

Back to top Go down

Solved Re: how to add script anti piracy

Post by midoweb96 on February 26th 2012, 12:22 pm

hi
on your Forum widgets management , or homepage.

midoweb96
Forumember

Posts : 166
Reputation : 12
Language : Css - Html - Jquery

Back to top Go down

Solved Re: how to add script anti piracy

Post by indoromance on February 26th 2012, 1:10 pm

unable bro........

indoromance
Forumember

Male Posts : 84
Reputation : 1
Language : Indonesian
Location : Indonesia

http://www.indoromance.friendhood.net

Back to top Go down

Solved Re: how to add script anti piracy

Post by Suarez on February 26th 2012, 1:48 pm

Try do add in announcement.

Suarez
Forumember

Male Posts : 149
Reputation : 9
Language : Romanian | English | German | HTML | CSS | jQuery
Location : Las Vegas, Nevada

http://http:/frog-design.net

Back to top Go down

Solved Re: how to add script anti piracy

Post by LGforum on February 26th 2012, 3:45 pm

Do you realise what te code does?
It doesn't prevent people from copying things. It simply adds a link to your site on the bottom of the copied material.
Not to mention the oncopy event is set on the body tag which I'm not sure will work unless they copy the whole page, the oncopy event occurs on the deepest element where the selection starts.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: how to add script anti piracy

Post by indoromance on February 27th 2012, 10:09 am

solved bro.... i change with this script

Code:
<script type="text/javascript">
if(document.location.protocol=='http:'){
 var Tynt=Tynt||[];Tynt.push('aGdodsE8Cr4iybadbi-bpO');Tynt.i={"ap":"Sumber:","as":"COPYRIGHT© 2010-2012. INDOROMANCE MEDIA PRESS. ALL RIGHT RESERVED.","st":true};
 (function(){var s=document.createElement('script');s.async="async";s.type="text/javascript";s.src='http://tcr.tynt.com/ti.js';var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})();
}
</script>

indoromance
Forumember

Male Posts : 84
Reputation : 1
Language : Indonesian
Location : Indonesia

http://www.indoromance.friendhood.net

Back to top Go down

Solved Re: how to add script anti piracy

Post by Nera. on February 27th 2012, 10:19 am

Topic Solved & Locked

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum