0

I recently noticed that many of competitors are copying text from my website, I tried to disable selecting / right click.. unfortunately they still managing to do it.

any creative idea will be great.

Ofek
  • 1
  • 1
    You can't prevent users from copying your content. They can see your code in view-source, `fetch`, server to server call, etc. – Mosh Feu Oct 28 '20 at 09:43
  • 1
    https://stackoverflow.com/questions/3161548/how-do-i-prevent-site-scraping – Adrian Oct 28 '20 at 09:43
  • Of course I can't completely prevent this to happen, but I can make it harder so they give up :) I seen websites that have some cool things, like when you copy the text it adds up their name or the text turn into gibberish... I ain't a website developer I don't really know how those things so I was looking for help:) – Ofek Oct 28 '20 at 10:04

2 Answers2

1

There's a very sleek CSS property: user-select. Set it to none.

user-select: none;

Don't forget to add the variants like webkit-user-select etc.

abdullahQureshee
  • 310
  • 2
  • 11
0

This can simply done by adding:
user-select: none;

Virej Dasani
  • 185
  • 2
  • 13