How to Disable Mouse Selection Function on Blogger and WordPress | Java Script Widget

How to Disable Mouse Text Selection Function on Blogger Blogspot and WordPress Web Pages

    Using the following java script you can Stop the Mouse Text Select option on your Website Pages. So that you can protect your website from Copy and paste option. You have to past this script on your website. For Blogger / WordPress, you can paste it in Gadget/Widget.

For Blogger Blogspot:

1. Log-in to Blogger Admin
2. Go to your blogger Dashboard -> Template -> Add a Gadget -> HTML/JavaScript
3. Paste the below code and save the Gadget.( No title Required)
Disable Mouse Text Selection in Blogger

Disable Mouse Selection On WordPress:

1. Log-in to WordPress Dashboard
2. Go to Appearance -> Widgets -> Add new Text Widget
3. Past one of the below code and save the Widget as shown below.

Disable Wordpress Mouse Text Selection script

Script to Disable Mouse Selection:



  1. It doesn't work my friend. I tried on my blog

    1. Updated the code, please try it now give your feedback..

  2. thanq its working

  3. One is still able to select and copy when accessing blog via mobile to get rid of that?

  4. Thank you for the code! I was wondering if there was a way to disable mouse selection of text going up. The code blocks text selection going down but I can select the text going up. Thank you!