Anti copying articles on Blogger effectively

Anti copying articles on Blogger effectively – There are many reasons that you do not want the content on your website to be copied, or do not want viewers to be able to see the source code of your website.

Anti copying articles on Blogger effectively

Anti copying articles on Blogger effectively

If you want copy protection on your website, follow these steps to do it.

The first is Anti-left mouse code
– Login to Blogger admin page  .
– Select the Template  menu  and click  Edit HTML
– Add  css  before the </b:skin> . tag 

<style type=’text/css’>

    body {

        -webkit-touch-callout: none;

        -webkit-user-select: none;

        -moz-user-select: none;

        -ms-user-select: none;

        -o-user-select: none;

        user-select: none;

    }

</style>

Right – click code

– Continue to find the </body>  tag   (Ctrl + F). and paste the following code above it:

<script type=’text/javascript’>

    //<![CDATA[

    // JavaScript Document

    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>

Code against F12, Ctrl+U to view source code (viewsourse)

<script type=’text/javascript’>

    checkCtrl = false $(‘*’).keydown(function(e) {

        if (e.keyCode == ’17’) {

            checkCtrl = false

        }

    }).keyup(function(ev) {

        if (ev.keyCode == ’17’) {

            checkCtrl = false

        }

    }).keydown(function(event) {

        if (checkCtrl) {

            if (event.keyCode == ’85’) {

                return false;

            }

        }

    })

</script>

Continue to find the <body> tag   and replace it with:

<body onkeydown=”return false”>

Save it and see the results.

Conclude

Basically, the code disables the Ctrl key so when someone presses  Ctrl + U  or  Ctrl + C, S  something on the web page also won’t work.

Note: This code cannot be completely resisted, if they meet a master, they will still see the Source of your website as usual.
Click to rate this post!
[Total: 0 Average: 0]
7
Subscribe
Notify of
guest
0 Góp ý
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x