ব্লগে যারা লিখা লেখি করেন তাদের কাছে কপি
পেস্ট একটি একটি পরিচিত শব্দ। কেউই চায় না যে তার ব্লগের পোস্ট গুলো কপি
পেস্ট করা হোক। তাই আজ আমি আপনাদের দেখাবো
কিভাবে ব্লগের ব্লগে খুব সহজেই কপি পেস্ট করার সুযোগ বন্ধ করা যায়।
যেভাবে করবেন
- প্রথমেই আপনার ব্লগস্পট ব্লগে লগিন করুন।
- তারপর লেআউট ট্যাবে গিয়ে Add a Gadget বাটনে ক্লিক করুন।
- তারপর একটি পপআপ উইন্ডো ওপেন হবে, তাতে নিচের কোড সমূহ পেস্ট করুন।
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?php
}
// no selection header - now your content is protected from copy and paste guys
function copyprotect_no_select()
{
?>
<script type="text/javascript">
function disableSelection(target){
if (typeof target.onselectstart!="undefined") //For IE
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //For Firefox
target.style.MozUserSelect="none"
else //All other route (For Opera)
target.onmousedown=function(){return false}
target.style.cursor = "default"
}
</script>
<?php
}
// no selection footer
function copyprotect_no_select_footer()
{
?>
<script type="text/javascript">
disableSelection(document.body)
</script>
<small>Copy Protected by <a href="http://www.bdtechzone.com/category/blogger-tutorial" target="_blank">BDTechZone</a></small>
<?php
}
// tuning your wp-copyprotect
function copyprotect_options_page()
{
?></?php
}
></?php
}
></?php
}
>
|
- এবার এটি সেভ করুন, তাহলেই আপনার ব্লগটি কপি পেস্ট থেকে সুরক্ষিত হয়ে যাবে।
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন