How to Disable Selection Function on Blog
One way to avoid copy-pasting your blog articles is to turn off the text selection function on the blog using css, why should you use css? Many script code to prevent posts on blogs from copy-paste or copy-paste using JavaScript, but this can still be done by disabling the javascript function in the browser you are using.
Disable text selection
or block text on a blog or website using css, it is much safer than using javascript, besides using css it will not affect the loading of your blog. The use of this css code will disable the function of left-clicking on the text but it can still be done if we click on the link or url on the blog. To prevent your content or articles from being copied, you can also turn off the right-click function on the blog, for a more detailed tutorial, you can read the post below.
Disabling selection function with css on blog
means that all text on your blog cannot be selected or blocked. If your blog or website discusses coding or programming languages, you shouldn't need to disable this selection function, because your blog visitors will find it difficult to copy the programming code they need. However, if you still want to turn off the selection function with css on your blog, it is better to leave some important parts of your blog so that they can still be copied and pasted, for example the blockquote, pre, and code sections. Usually this section is often used to store codes such as HTML, CSS, JavaScript, PHP, and other programming code.
please follow the steps below
Disabling selection function with css on blog
means that all text on your blog cannot be selected or blocked. If your blog or website discusses coding or programming languages, you shouldn't need to disable this selection function, because your blog visitors will find it difficult to copy the programming code they need. However, if you still want to turn off the selection function with css on your blog, it is better to leave some important parts of your blog so that they can still be copied and pasted, for example the blockquote, pre, and code sections. Usually this section is often used to store codes such as HTML, CSS, JavaScript, PHP, and other programming code.
please follow the steps below
- 1. Go to Blogger.com
- 2. Then go to the Themes section > click Edit HTML
- 3. Copy the css code below, then paste it before the code ]]></b:skin>
- 4. Click Save theme
.post-body{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
The css code above will disable the text selection function on your blog, so your blog will be safer to avoid copy-paste.
We Love Hearing from You!
Thank you for reading our post! Your thoughts and opinions are important to us. Please leave a comment below to share your feedback, ask questions, or start a discussion. We look forward to engaging with you!
Note: Comments are moderated to ensure a respectful and positive environment.