- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How to disable text selection?
Hi!
I know there is no 100% protection against website and article copying but is there a way to at least disable the text selection on my pages. So people cannot simply highlight my article text and then ctrl+c ctrl+v.
I already protect my images with this:
https://community.weebly.com/t5/Vote-on-Features/Disable-Right-Click-On-Photos/idi-p/7662
Is there a way to disable text selection and protect my text from being copied?

- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Hi, @Lisalu!
I actually haven't heard of a strategy to protect against text copying, but perhaps another community member has a suggestion for you.
Thanks,
Erin
Weebly Community Manager
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
I found this code online and worked perfectly against cut (CTRL+X), copy (CTRL+C), and paste (CTRL+V). I put it in the settings SEO footer code.
<script type="text/javascript">
$(document).ready(function () {
//Disable full page
$('body').bind('cut copy paste', function (e) {
e.preventDefault();
});
//Disable part of page
$('#id').bind('cut copy paste', function (e) {
e.preventDefault();
});
});
</script>
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report

- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
We're not able to assist with custom code, but generally speaking you will want to make sure the html code has both an open and close tag. <script> </script> at the beginning and end of the code. Where did you add it when you were editing your site?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report

- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
I see. The code posted used to work with the older editor, but the new editor that you are using doesn't sound like it's compatible, unfortunately. The new editor does not allow access to the theme html/css, either, so it's going to be a bit more restrictive overall. One thing to remember is that even if the code were to work with disabling a copy/paste, there's nothing to stop someone from viewing the page source or taking a screenshot of the content. Are you trying to prevent people from copying text on your page or images? If it's images I recommend adding a watermark to the images using a third party photo editing tool/software.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
I added the code and it works perfectly for me. Thank you so much for posting this question and response. Much appreciated.
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
The code worked for me.
Thank you !!