ป้องกันการ copy ใน wordpress

ใส่ code ข้างล่างนี้ที่ template theme ใน wordpress โดยเลือกจากเมนูซ้ายมือ รูปแบบบล็อก > การแก้ไข theme  แล้วเลือกรายการ ส่วนหัว (header) ที่เมนูขวามือ เข้าไปแก้ header.php  Ffp หำฟพแ้ หา <header> หรือ </header> เพราะต้องวาง code ข้างล่างไว้ระหว่าง <header> ..... </header>

<!-- Copyright protection script -->
<meta http-equiv="imagetoolbar" content="no">
<script language="Javascript">
/*<![CDATA[*/
document.oncontextmenu = function(){return false;};
/*]]>*/
</script>
<script type="text/javascript">
/*<![CDATA[*/
document.onselectstart=function(){
    if (event.srcElement.type != "text" && event.srcElement.type != "textarea" && event.srcElement.type != "password") {
        return false;
    }
    else {
         return true;
    }
};
if (window.sidebar) {
    document.onmousedown=function(e){
        var obj=e.target;
        if (obj.tagName.toUpperCase() == 'SELECT'
            || obj.tagName.toUpperCase() == "INPUT"
            || obj.tagName.toUpperCase() == "TEXTAREA"
            || obj.tagName.toUpperCase() == "PASSWORD") {
            return true;
        }
        else {
            return false;
        }
    };
}
document.body.style.webkitTouchCallout='none';
/*]]>*/
</script>
<script type="text/javascript" language="JavaScript1.1">
/*<![CDATA[*/
if (parent.frames.length > 0) { top.location.replace(document.location); }
/*]]>*/
</script>
<script language="Javascript">
/*<![CDATA[*/
document.ondragstart = function(){return false;};
/*]]>*/
</script>
<style type="text/css">
<!—-
    * {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
    }

    img {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
    }
-->
</style>
<!-- End Copyright protection script -->


การใส่ code ป้องกันการ copy อาจมีผลต่อการทำ seo ทำให้ต้องส่ง sitemap กับ webmaster บ่อยๆ