1. 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

Discussion in 'General XenForo Discussion and Feedback' started by DFI, Nov 9, 2012.

  1. DFI

    DFI Active Member

    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 :)
  2. Digital Doctor

    Digital Doctor Well-Known Member

    Imitation is the sincerest form of flattery.

    Watermarking images is a good idea.
  3. DFI

    DFI Active Member

    Can we disable Right-Click and Ctrl+C command in Xenforo ?? :cautious:
  4. Brandon Sheley

    Brandon Sheley Well-Known Member

    You can add code to disable right click but there will always be ways around it.
    This may be an option for you.
    rootsxrocks likes this.
  5. Edrondol

    Edrondol Well-Known Member

    I deleted my post with the script. I'm trying it on my test bed and it ain't working.
  6. Edrondol

    Edrondol Well-Known Member

    Update. You can prevent this by doing the following:

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

    <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.oncontextmenu=new Function("return false")
    <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){
    I tested it on my bed and it works.

    This prevents scraping and right-clicking.
  7. Brandon Sheley

    Brandon Sheley Well-Known Member

    Steve F likes this.
  8. Edrondol

    Edrondol Well-Known Member

    My test bed, you loon.

    But I've been married for almost 20 years. There hasn't been right-clicking in my real bed for a long time.
  9. Brandon Sheley

    Brandon Sheley Well-Known Member

    Sorry to here :(
  10. DFI

    DFI Active Member

    Thanks a Ton mah friend. Its working 200% perfect. 3 Cheers for you !! (y)
  11. Edrondol

    Edrondol Well-Known Member

    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.)
  12. DFI

    DFI Active Member

    Sure :)
  13. Edrondol

    Edrondol Well-Known Member

    It's a joke. I also say:

    I've been married 20 years. The last time I made my wife scream I was kneeling on her hair.

    There are others, but none that are that clean. :p
    Digital Doctor likes this.
  14. DFI

    DFI Active Member

    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.
  15. Edrondol

    Edrondol Well-Known Member

    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.
  16. DRE

    DRE Well-Known Member

  17. Adam Howard

    Adam Howard Well-Known Member

    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...

    ^ This is your best alternative
    rootsxrocks and Brandon Sheley like this.
  18. Sheldon

    Sheldon Well-Known Member

    Take it from someone who knows....
    SneakyDave, Hatsu, oman and 2 others like this.
  19. DFI

    DFI Active Member

    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.
    rootsxrocks likes this.

Share This Page