Saturday, 26 September 2015

Disable Copy Function in JavaScript and CSS For Blogger

Disable Copy Function in JavaScript and CSS For Blogger: Now a days everyone want to earn money and people don't know about a good knowledge in blogger so they think they can earn money through stealing others content so they copy your whole content and paste on your blog for Earn money and they try to earn money from that stuff. but unfortunately Adsense is not for content steelers. Adsense is only for hard worker and those who post a Quality content on their blogs and get huge traffic from that kinds of contents so Adsense approve that type of contents with in few minutes.
So Our topic is to protect your blog content from steelers so we make a JavaScript simple script you just need to add that script in your widget. so no one can copy your posts from your blogger. Here is the JavaScript Copy Disable Script.
Now i'll share with you how you can protect your content from steelers using CSS script.

Installation of CSS code in Blog:

  • Go to Dashboard > Template > Edit HTML
  • Press Ctrl + F and Find Below Code
  • You just need to paste below code above this line.
/*----- Disable Text Selection with CSS Code--- TB----*/
.post blockquote {
-webkit-user-select: text !important;
-moz-user-select: text !important;
-ms-user-select: text !important;
user-select: text !important;
body {
-webkit-user-select: none !important;
-moz-user-select: -moz-none !important;
-ms-user-select: none !important;
user-select: none !important;
  • Below code is Enabling Copying your block quote, so everyone just copy your block quote contents.
/*----- Disable Text Selection with CSS Code--- TB----*/body {-webkit-user-select: none !important;-moz-user-select: -moz-none !important;-ms-user-select: none !important;user-select: none !important;
This CSS code is disabling copy from your blog. so no one copy this from your blog. Just you need to paste this CSS under above CSS code.

Benefits of Using CSS Code Rather Then JavaScript:

  • First Benefits is JavaScript take time when it loading. but CSS is not taking any time.
  • 2nd Benefits is no one can disable CSS code, Everyone Disable JavaScript from Browsers Easily. So I Preffer you to use CSS code Rather then JavaScript.


Post a Comment

Item Reviewed: Disable Copy Function in JavaScript and CSS For Blogger Rating: 5 Reviewed By: Saqib Hussain