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

[Get]Script To Copy Protect Your Content

Discussion in 'Black Hat SEO' started by Nitecruzex, Dec 16, 2011.

Tags:
  1. Nitecruzex

    Nitecruzex Newbie

    Joined:
    Jun 9, 2011
    Messages:
    30
    Likes Received:
    6
    Location:
    I live in mY drEaMs
    Copy the script in the head section. Please note that if you are putting up links in code form, your audience will have to type it word by word. They can't copy the link.

    Script:

    Code:
    <script language='JavaScript1.2'>
    
    function disableselect(e){
    return false
    }
    
    function reEnable(){
    return true
    }
    
    //if IE4+
    document.onselectstart=new Function ("return false")
    
    //if NS6
    if (window.sidebar){
    document.onmousedown=disableselect
    document.onclick=reEnable
    }
    </script>
    
     
    • Thanks Thanks x 3
  2. chad362wiley

    chad362wiley Supreme Member

    Joined:
    Dec 8, 2011
    Messages:
    1,341
    Likes Received:
    782
    Occupation:
    n/a
    Location:
    Behind you
    Home Page:
    Whats this supposed to do?
     
  3. rulez05

    rulez05 Power Member

    Joined:
    Feb 3, 2011
    Messages:
    745
    Likes Received:
    142
    it's A java script that disable right click.
     
  4. SahL

    SahL Elite Member

    Joined:
    Jan 8, 2011
    Messages:
    1,594
    Likes Received:
    1,296
    Occupation:
    ★SEO expert and ★Sexpert
    Location:
    Bombay
    Home Page:
    Disable run JavaScript from the browser settings and goto the site and this becomes useless :)
     
  5. Nitecruzex

    Nitecruzex Newbie

    Joined:
    Jun 9, 2011
    Messages:
    30
    Likes Received:
    6
    Location:
    I live in mY drEaMs
    It doesnot disables right click. It disables the "onmousedrag" event so you can't select anything.
     
  6. Nitecruzex

    Nitecruzex Newbie

    Joined:
    Jun 9, 2011
    Messages:
    30
    Likes Received:
    6
    Location:
    I live in mY drEaMs
    Of course you can do that. Best of all, view source code and copy the content. But this helps. Sahi bola na sahil ;)
     
  7. warp0011

    warp0011 Junior Member

    Joined:
    May 13, 2008
    Messages:
    137
    Likes Received:
    66
    Occupation:
    IT Executive
    Home Page:
    yup, most of the users still know how to view the page source and copy from there. But it is still able to make some protection for those who don't know about page source thing.
     
  8. hillz

    hillz Registered Member

    Joined:
    Aug 14, 2011
    Messages:
    54
    Likes Received:
    3
    I think you still can copy the articles from the source code :D
     
  9. DanielMA

    DanielMA Registered Member

    Joined:
    Nov 4, 2011
    Messages:
    65
    Likes Received:
    5
    Location:
    DK
    Use jQuery for stuff like this instead, to ensure cross-browser compatibility.

    Code:
    jQuery.fn.extend({ 
            disableSelection : function() { 
                    return this.each(function() { 
                            this.onselectstart = function() { return false; }; 
                            this.unselectable = "on"; 
                            jQuery(this).css('user-select', 'none'); 
                            jQuery(this).css('-o-user-select', 'none'); 
                            jQuery(this).css('-moz-user-select', 'none'); 
                            jQuery(this).css('-khtml-user-select', 'none'); 
                            jQuery(this).css('-webkit-user-select', 'none'); 
                    }); 
            } 
    }); 
    
    To disable selection of text in a div with id tehDiv:

    Code:
    $('#tehDiv').disableSelection(); 
    
     
  10. spasovski

    spasovski Regular Member

    Joined:
    Mar 21, 2011
    Messages:
    394
    Likes Received:
    240
    Occupation:
    Web designer and Internet marketeer.
    It works but still users can copy paste it from source.
     
  11. DanielMA

    DanielMA Registered Member

    Joined:
    Nov 4, 2011
    Messages:
    65
    Likes Received:
    5
    Location:
    DK
    Users could always copy from the source. You can't really prevent the more experienced user from getting to your content if he really wants it.

    You could generate an image with your text (PHP GD2 could do this), but it's a tradeoff - it will take longer to load your page and so on.