How to Disable Copy-Paste in our Site and Also Allow Some Text / Code / Scripts to be Copied after Adding Code for Disabling Copy-Paste?




If you are searching CODE / Scripts for Disabling Highlighting and COPY-Paste in your Site Along with Allowing them Some Codes / Special Texts Lines / Scripts available in your Site to Be Highlighted or Copied, then you are in the right place now!

Most of the bloggers today disable copy-paste in their site to prevent others from Copying. This is very important today so that our unique creation doesn’t get copied to other sites with some changed words. This is very important to protect our content today.
So it’s very Easy to Disable Copy-paste with our Ready-made code.


Also, Bloggers have to provide some Codes / Scripts or Some Special Texts on our Site which need to be copied by visitors. Therefore, we want to allow some TEXTS / CODES / SCRIPTs for visitors to be Highlighted / COPIED. 

So, in this post, we will help you add Code / Script for Disabling: Highlighting or Copy-paste in your site and allowing Some Texts / Scripts or Codes in our Site to be copied for visitors. You can allow some portions of your site to be copied if you want by adding a simple line. 
Adding our Main Script, All of your Posts / Lines / Texts won’t be allowed to be Copied or Highlighted. But if you want to allow Some Special lines to be Copied or Highlighted, you can add a simple code line for that line only, and hence it will be allowed to be copied after adding that line.


There are Two codes explained in this Post: One is a major Code Script that Disables Highlighting or Copy-Paste in your Site. So if you don't want anything to be copied by visitors, add this major code, and NO NEED to go for 2nd Code Line. 

But if you want SOME Lines / Special Texts to be copied in your Site after adding the Major Code for Disabling Highlighting / Copy-Paste, then Add this 2nd Code Line in that Text Portion only in Blogger POSTs HTML View. So it will only allow that Text Line to be Highlighted or Copied. 
We have shown all the details below in photos too. 


Now, let's Learn to Disable Highlighting and Copy-Paste in Blogger Along with Allowing Some Special Texts / Lines to be Copied:-


#1. First of all, Download the Code from the link available below. It contains both Major Code and 2nd Code in a single Notepad file.

Download Link for Code Notepad File to Disable Highlighting or COPY - Paste in our Site: Click Here to Download


#2. Now, OPEN the Notepad File. You will see there 2 Parts of the Code: Part 1 and Part 2. 

Part 1 is the major code you MUST ADD for Disabling Highlighting or COPY - Paste in your Blogger Site. 

Part 2 Code is for that Special Line or Texts in our Blogger Post, which we wish ALLOW visitors to be copied.





#3. Now, open the Blogger to Add our 1st Major Script/Code for Disabling Highlighting or COPY - Paste in Blogger Site.

Open the Blogger, go to Theme and then go to EDIT HTML Option.



#4. Now SEARCH for this Line in Blogger HTML:

]]></b:skin>


PASTE our 1st Major Code JUST ABOVE / BEFORE:  ]]></b:skin>

NOTE: If the ABOVE Code is not working in your Blogger, Modify the CODE 2nd Line from: .post allowcopy {     TO     .post-body allowcopy {   



#5. Now SAVE the theme and Look in your Blogger Site.

Now everything in your Blogger Posts can't be copied or highlighted. Check it out in your BlogSpot.    
You Have Successfully Disabled Highlighting or COPY-Paste in your site.

Till now, our Code / Script disallows everything or every line of our post to be Highlighted or Copied.
Now, if you wish to be SOME SPECIAL LINES  or Some Texts or Some CODEs / Scripts of our Blogger Posts to be Highlighted or Copied by Visitors, then simply add this 2nd Code Line in Blogger POST HTML View as shown in the Photo Below:

<allowcopy> TEXT to be Copied -Type Here between these two tags </allowcopy>

This <allowcopy> and </allowcopy> allows our Lines or TEXT's to be copied. So Whatever you wish to be Allowed to be Highlighted or Copied by Visitors, put that Texts or Line inside this [ <allowcopy> TEXTS to Be Copied Here </allowcopy>] in Blogger POSTs HTML View.

Remember, you have to add it in our Blogger POSTs HTML View, as shown in the photo above. 

And now, in our Blogger Posts, we disabled everything to be copied except the Lines present inside <allowcopy> </allowcopy>.


Congratulations, you just learned to Disable Highlighting and Copy-Paste in your Blogger site. Also, you Learnt to allow some Lines / Codes / Scripts to be Highlighted or Copied by Visitors upon your wish only.



Also, Watch our Video for step by Step Help to Disable Highlighting and Copy-Paste in your BlogSpot and Allow Some Special Texts / Line Only to be Copied:-



Previous Post Next Post