• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Add-on to Prevent copying content

DFI

Active member
#1
1st of all sorry if this kind of add-on already exist. If it exist please let me know.

There are many leechers who copy images and news further publishing it on their forum or blogs and take the credit. Watermarking everything is very hectic job.

So, Is there any way we can prevent viewers from copying content like text and images in Xenforo ??


Thanks :)
 

Edrondol

Well-known member
#6
Update. You can prevent this by doing the following:

In templates -> page_container Post these two bits of code AFTER the <head> tag:

Code:
<script type="text/JavaScript">
//Script courtesy of BoogieJack.com
var message="NoRightClicking";
function defeatIE() {if (document.all) {(message);return false;}}
function defeatNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=defeatNS;}
else{document.onmouseup=defeatNS;document.oncontextmenu=defeatIE;}
document.oncontextmenu=new Function("return false")
</script>
 
<script type="text/JavaScript">
//courtesy of BoogieJack.com
function killCopy(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=killCopy
document.onclick=reEnable
}
</script>
I tested it on my bed and it works.

This prevents scraping and right-clicking.
 

Edrondol

Well-known member
#11
I didn't write it, nor could I have. But I got mad Google skillz.

(Note I left the site info in the code. Check out this guy's page if this is helpful to you. Give the man some hits.)
 

DFI

Active member
#14
Everything was working perfect but just now noticed that after embedding this Script, Members are not able to post in Shoutbox :(

Pls help and provide solution.
 

Edrondol

Well-known member
#15
Damn. I wondered if the javascript would have an effect. It may well be beyong my meager abilities. I'm sorry. I'll still look around, but this may well require an addon.
 

Adam Howard

Well-known member
#17
Update. You can prevent this by doing the following:

In templates -> page_container Post these two bits of code AFTER the <head> tag:

Code:
<script type="text/JavaScript">
//Script courtesy of BoogieJack.com
var message="NoRightClicking";
function defeatIE() {if (document.all) {(message);return false;}}
function defeatNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=defeatNS;}
else{document.onmouseup=defeatNS;document.oncontextmenu=defeatIE;}
document.oncontextmenu=new Function("return false")
</script>
 
<script type="text/JavaScript">
//courtesy of BoogieJack.com
function killCopy(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=killCopy
document.onclick=reEnable
}
</script>
I tested it on my bed and it works.

This prevents scraping and right-clicking.
Search Firefox Extension, Chrome Extension, and even Opera Browser's Extension for an extension called, "allow right click" or "Right to click". Should give you an idea how useless code is to block someone from right clicking.

To respectfully answer the OP; what you seek is technically impossible everywhere.

It does not matter if you use html, css, php, perl, flash, html 5, java, ect.... Does not matter if you use phpBB, MyBB, IPB, vBulletin, SMF, WordPress, XenForo, ect...ect...

You can add code to disable right click but there will always be ways around it.
This may be an option for you.
http://www.tynt.com/
^ This is your best alternative
 

DFI

Active member
#19
You can add code to disable right click but there will always be ways around it.
This may be an option for you.
http://www.tynt.com/
tynt can be easily fooled. Chrome gives an option of " Paste as Plain Text " . Using this tynt become blind.

Another option is to copy content in notepad and then back to where ever need to. :(

I am unable to track where its getting copied. I have doubt on some but can't accuse them without proof.