با سلام
افزونه http://wordpress.org/extend/plugins/...ght-protection می تونید استفاده کنید.
– غیر فعال سازی انتخاب متن ها
– غیر فعال سازی کلیک راست رو صفحه ها
– محافظت از ifram ها
– محافظت از درگ کردن تصاویر
– مشکل نداشتن با موتور ها ی جست و جو
این کد هم هست. راست کلیک رو هم می بنده.
کد PHP:
function NoRightClick(e)
{
if(navigator.appName==”Netscape”)
{
if(e.which==3||e.which==2)
{
return false;
}
}
else
{
event.cancelBubble=true;
event.returnValue=false;
}
}
if(navigator.appName==”Netscape”)
window.captureEvents(Event.MOUSEDOWN)
document.oncontextmenu=NoRightClick;
window.onmousedown=NoRightClick;
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function (“return false”)
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
document.oncontextmenu = function(){return false}
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() == “INPUT” || obj.tagName.toUpperCase() == “TEXTAREA” || obj.tagName.toUpperCase() == “PASSWORD”)
return true;
else
return false;
}
}
if (parent.frames.length > 0) top.location.replace(document.location);
document.ondragstart = function(){return false}
یک کد دیگه که البته ازش استفاده نکردم.
کد PHP:
add_action(‘admin_menu’,’config_copypro’);
add_action(‘wp_head’,’copyrighthead’);