Do not copy my content alert message

132
13.2K followers
Updated

Good morning to all!

I found yesterday this awesome little script, it's not at all suitable for my website, because I allow people to copy my codes, but for you it could be so neat!

Here is a little script that warns people off for copying your content. It appears as a popup on top, the moment people are trying to use the right mouse click for copying.

Do not copy my content!

It's just a warning, not a prevention. With Cntr+C your content can still be copied, but people might think twice before they do.

<script>function click(){if (event.button==2){alert('Do not copy my content!')}}document.onmousedown=click</script>

You can place this code in a Custom HTML widget, and it will launch whenever someone select your content and try to use the right mouse click to copy. It disables the right mouse click copy function.

(Don't use extra apostrophes in your text line, it will stop working correctly, that's why I used Do not)



Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training

Recent Comments

176

Cool thanks Loes

My pleasure sharing, Ian

Very neat and worth having for some ops. Thanks Loes

Success using this Walter:)

That is good to know thank you Loes

You're welcome Edward:)

I'll try if it works on my site. It's good to remind people.

It is working on 3 sites of me already, success Jimmy

I used the code and it's working. It's just like a scarecrow that frightens the birds but cannot guard everything.

That's right:) Glad it is working:)

Wow...very cool, I will be doing this. Thank you again Loes. I have this bookmarked too.

It's very easy Monica

That's really handy. Thanks for sharing

I do love it too, and I have some other websites where I can use this

I like this idea. Thanks for the info.

Glad you like this Delores

Thank you, Loes! How do you come up with all these great finds?!!!
Blessings:)
Suzi

It's my niche, Suzi, so I browse the internet all day to find this to blog about on my website, and lucky you, I share all my findings

I wondered how you found the time! I thought you might be another version of Wonder Woman!

I am certainly not a wonder woman, I had to come up with 12000 words for the super affiliate challenge from Kyle, so I went this time for code sources:)

Good for you, Loes! I wish I had your stamina:)
Blessings:)
Suzi

Haha, yeah, I am just addicted;)

This could be useful for people who want to keep their content proprietary.

Thanks for sharing!

My pleasure, this is indeed a useful code, and very easy to use

Thanks for sharing this useful code
Steve

You're welcome Steve:)

See more comments

Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training