بسم الله الرحمن الرحيم
اليوم اقدم لكم موضوع عن كيفية حماية مواضيع مدونتك من السرقة حل نهايا وبددون اي ثغرات
مميزات الاداة
1- الغاء زر كليك يمين بالفارة لمنع الكوبي و الباست copy - past
2- ألغاء سليكت اي التظليل على الموضوعات مما يمنع الزوار من سحب الموضوعات بدل من النسخ
3- آخر ثغرة و اهمها مفتاح كنترول و آلت CTRL , ALT و كدة انت سديت حتى مفاتيح الاختصارات الخاصة بنسخ المواضيع.
طرقة اضافة الأداة
1. لوحة التحكم
2. تصميم
3. اضافة اداة
4. اداة هتمل HTML
5. أنسخ الكود و اضغط حفظ
الكود
<script language=javascript><!--
var omitformtags=["input", "textarea", "select"]
function disableselect(e){
for (i = 0; i < omitformtags.length; i++)
if (omitformtags[i]==(e.target.tagName.toLowerCase()))
return;
return false
}
function reEnable(){
return true
}
function noSelect(){
if (typeof document.onselectstart!="undefined"){
document.onselectstart=new Function ("return false")
if (document.getElementsByTagName){
tags=document.getElementsByTagName('*')
for (j = 0; j < tags.length; j++){
for (i = 0; i < omitformtags.length; i++)
if (tags[j].tagName.toLowerCase()==omitformtags[i]){
tags[j].onselectstart=function(){
document.onselectstart=new Function ('return true')
}
if (tags[j].onmouseup!==null){
var mUp=tags[j].onmouseup.toString()
mUp='document.onselectstart=new Function (\'return false\');\n'+mUp.substr(mUp.indexOf('{')+2,mUp.lastIndexOf('}')-mUp.indexOf('{')-3);
tags[j].onmouseup=new Function(mUp);
}
else{
tags[j].onmouseup=function(){
document.onselectstart=new Function ('return false')
}}}}}}
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
}
window.onload=noSelect;
document.write("<p><font size=\"1\">");
document.write("<a href=\"http:\/\/www.dynamiceghost.blogspot.com\/2011\/03\/blog-post_7292.html\" target=\"_blank\" style=\"text-decoration: none\">");
document.write("copy protection [?]<\/a> Developed By <a href=\"http:\/\/www.dynamiceghost.blogspot.com\/\" target=\"_blank\">dynamiceghost<\/a><\/font><\/p>");
<!-- Thanks For Your Support : Free Widget, Codes, Hacks and Blogger Template Visit Us : www.dynamiceghost.blogspot.com
-->
</script>
<script language=javascript>
<!--
var message="ممنوع استخدام الكليك يمين!";
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
<!-- Thanks For Your Support : Free Widget, Codes, Hacks and Blogger Template Visit Us : www.dynamiceghost.blogspot.com
-->
</script>
<script language=javascript>
<!--
var isnn,isie
if(navigator.appName=='Microsoft Internet Explorer') //check the browser
{ isie=true }
if(navigator.appName=='Netscape')
{ isnn=true }
function right(e) //to trap right click button
{
if (isnn && (e.which == 3 || e.which == 2 ))
return false;
else if (isie && (event.button == 2 || event.button == 3))
{
alert("Sorry, you do not have permission to right click on this page.");
return false;
}
return true;
}
function key(k)
{
if(isie) {
if(event.keyCode==17 || event.keyCode==18 || event.keyCode==93) {
alert(" ممنوع استخدام Ctrl+Alt .")
return false;
}
}
if(isnn){
alert("ممنوع استخدام Ctrl+Alt .")
return false; }
}
if (document.layers) window.captureEvents(Event.KEYPRESS);
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
document.onkeydown=key;
document.onmousedown=right;
document.onmouseup=right;
window.document.layers=right;
<!-- Thanks For Your Support : Free Widget, Codes, Hacks and Blogger Template Visit Us : www.dynamiceghost.blogspot.com
-->
</script>
وهكذا نكون انتهينا
0 تعليقات