How to restrict someone from copying content from my website ?

 Use this script in your web site:

<script type="text/javascript">
    function disableselect(e) {
        return false;
    }
    function reEnable() {
        return true;
    }
    document.onselectstart = new Function("return false");
    if (window.sidebar) {
        document.onmousedown = disableselect;
        document.onclick = reEnable;
    }
</script>
<script type="text/javascript">

    var isCtrl = false;
    document.onkeyup = function (e) {
        if (e.which == 17)
            isCtrl = false;
    }
    document.onkeydown = function (e) {
        if (e.which == 17)
            isCtrl = true;
        if (((e.which == 85) || (e.which == 67) || (e.which == 83)) && isCtrl == true) {
            return false;
        }
    }
    document.oncontextmenu = RightMouseDown;
    document.onmousedown = mouseDown;
    function mouseDown(e) {
        if (e.which == 3) {
            alert("Unauthorized copying of content not allowed. We will take legal action and file DMCA complaint against any online website or news agency that is found copying our content.");
        }
    }
    function RightMouseDown() {
        return false;
    }
</script>





Post a Comment

0 Comments