how to add script anti piracy
5 posters
Page 1 of 1
how to add script anti piracy
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
Re: how to add script anti piracy
hi
on your Forum widgets management , or homepage.
on your Forum widgets management , or homepage.
midoweb96- Forumember
- Posts : 166
Reputation : 12
Language : Css - Html - Jquery
Re: how to add script anti piracy
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.
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
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: how to add script anti piracy
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>
Re: how to add script anti piracy
Topic Solved & Locked |
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Similar topics
» Does forumotion allow piracy?
» Suggested Script (Need Someone that can read script)
» register Script (I Need The Script)
» Piracy/Hacking warning on my forum.
» abandoned site being used for piracy and possible malware
» Suggested Script (Need Someone that can read script)
» register Script (I Need The Script)
» Piracy/Hacking warning on my forum.
» abandoned site being used for piracy and possible malware
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum