# Prevent visitors from right clicking and copy text

**URL:** <https://forums.realmacsoftware.com/t/prevent-visitors-from-right-clicking-and-copy-text/12312>\
**Category:** RapidWeaver Classic\
**Created:** [February 2, 2017, 6:11am UTC](https://forums.realmacsoftware.com/t/prevent-visitors-from-right-clicking-and-copy-text/12312 "2017-02-02T06:11:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![devananda](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/devananda/32/13413_2.png) [@devananda](https://forums.realmacsoftware.com/u/devananda)\
**Post date:** [February 2, 2017, 6:11am UTC](https://forums.realmacsoftware.com/t/prevent-visitors-from-right-clicking-and-copy-text/12312/1 "2017-02-02T06:11:04Z")

</div>

I’d like to be able to prevent users from right-clicking and copying text.

I know that an advanced user can find a way to copy text, but I am looking for a basic prevention tool that will deter the basic user from copying text.

What about this code:

{  
-webkit-user-select:none;  
-khtml-user-select:none;  
-moz-user-select:-moz-none;  
-o-user-select:none;  
user-select:none;  
}

Is there a way to make this code apply to every

or tag on a RW site?

Thanks for your support,

Dominick

---

<div class="post-metadata">

**Author:** ![thang](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/thang/32/303_2.png) [@thang](https://forums.realmacsoftware.com/u/thang)\
**Post date:** [February 2, 2017, 7:08am UTC](https://forums.realmacsoftware.com/t/prevent-visitors-from-right-clicking-and-copy-text/12312/2 "2017-02-02T07:08:01Z")

</div>

Here’s a stack for that:

> **[Lock 2 RapidWeaver Stack by RWtuts — RapidWeaver Community](https://rapidweavercommunity.com/addons/stacks/lock-2)**
>
> Lock saves images and videos from piracy. It adds a transparent Lock to your website which deactivates drag'n'drop and right-click on your website.

---

<div class="post-metadata">

**Author:** ![instacks](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/instacks/32/23339_2.png) [@instacks](https://forums.realmacsoftware.com/u/instacks)\
**Post date:** [February 2, 2017, 7:10am UTC](https://forums.realmacsoftware.com/t/prevent-visitors-from-right-clicking-and-copy-text/12312/3 "2017-02-02T07:10:27Z")

</div>

> **[Disable right mouse click](https://instacks.com/blog/?post=disable-right-mouse-click)**
>
> Disabling the right mouse click and with this the appearance of the context menu, which leads to a direct download option for photos, will not prevent anybody from actually doing so.

---

<div class="post-metadata">

**Author:** ![devananda](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/devananda/32/13413_2.png) [@devananda](https://forums.realmacsoftware.com/u/devananda)\
**Post date:** [February 2, 2017, 8:09am UTC](https://forums.realmacsoftware.com/t/prevent-visitors-from-right-clicking-and-copy-text/12312/4 "2017-02-02T08:09:20Z")

</div>

Thanks for the reference.

I tried pasting this code in the following (one-by-one):

Head  
Body  
CSS  
Javascript  
Prefix

of Code in RW 7 but it doesn’t appear to work.

Thanks for your support,

Dominick

---

<div class="post-metadata">

**Author:** ![Rovertek](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/rovertek/32/223_2.png) [@Rovertek](https://forums.realmacsoftware.com/u/Rovertek)\
**Post date:** [February 2, 2017, 1:28pm UTC](https://forums.realmacsoftware.com/t/prevent-visitors-from-right-clicking-and-copy-text/12312/5 "2017-02-02T13:28:17Z")

</div>

In case of protecting text – wouldn’t that unintentionally prevent viewers from clicking on links?

---

<div class="post-metadata">

**Author:** ![devananda](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/devananda/32/13413_2.png) [@devananda](https://forums.realmacsoftware.com/u/devananda)\
**Post date:** [February 11, 2017, 6:24am UTC](https://forums.realmacsoftware.com/t/prevent-visitors-from-right-clicking-and-copy-text/12312/6 "2017-02-11T06:24:15Z")

</div>

I’m not sure, but that’s a good question.

---

<div class="post-metadata">

**Author:** ![instacks](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/instacks/32/23339_2.png) [@instacks](https://forums.realmacsoftware.com/u/instacks)\
**Post date:** [February 11, 2017, 8:15am UTC](https://forums.realmacsoftware.com/t/prevent-visitors-from-right-clicking-and-copy-text/12312/7 "2017-02-11T08:15:12Z")

</div>

No. Clicking links is not controlled by using the context menu.

---

<div class="post-metadata">

**Author:** ![Rovertek](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/rovertek/32/223_2.png) [@Rovertek](https://forums.realmacsoftware.com/u/Rovertek)\
**Post date:** [February 11, 2017, 1:49pm UTC](https://forums.realmacsoftware.com/t/prevent-visitors-from-right-clicking-and-copy-text/12312/8 "2017-02-11T13:49:42Z")

</div>

I just made an experiment with the Protector stack (S4S) which protects both images and text. After I placed some text including links inside that stack, links became unclickable. Even the cursor did not change to indicate that it hovered over links.

P.S. However, Protector is no longer supported and can only be found in the archive of S4S, so, I guess, my argument is not valid…

---

<div class="post-metadata">

**Author:** ![willwood](https://avatars.discourse-cdn.com/v4/letter/w/bc8723/32.png) [@willwood](https://forums.realmacsoftware.com/u/willwood)\
**Post date:** [February 11, 2017, 2:45pm UTC](https://forums.realmacsoftware.com/t/prevent-visitors-from-right-clicking-and-copy-text/12312/9 "2017-02-11T14:45:31Z")

</div>

Protector stack layers a transparent GIF image over the content. So when you are clicking the content, you are actually clicking the GIF image and not the visible content layered underneath.

I discontinued Protector stack because few people used it and it doesn’t stop someone just screen grabbing the content or getting to it via the page source code. But the same protection method still remains an option in [ImageWizard](https://stacks4stacks.com/imagewizard), for induvidual photographs.

In all honesty, back to the OP question, disabling right-click (or similar functionality) is a _really dangerous_ and _stupid thing_ to do in public facing websites. A lot of Internet Explorer and Edge users on Windows right-click to navigate within a page or back to the previous page - so removing this ability will land you with numerous complaints that your website is “broken”.

Additionally there are probably legal issues at stake, if a disabled person arriving at your website is blocked from right-clicking a block of content and having their screen reader software read it aloud. Don’t underestimate how many people use assistive technologies for web browsing - and this includes simple tools like double clicking or tapping to change text sizes.

If you are _that concerned_ about people copying your content, then either don’t publish it online to begin with or put it behind a paywall / firewall and require membership access to view it. 🙂
