• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How make it so one cannot copy the text?

Advocate ,
Apr 11, 2019 Apr 11, 2019

Copy link to clipboard

Copied

I have a competitor site where the text cannot be copied. Seems very unusual. I would like to achieve this. Not a flash site, and this person is very SEO savvy. Any ideas how? The text can be copied if one goes to the code, but not from the regular web page.

Also on her page, the links don't have an underline when one scroll above them, only hand symbol which is nice.  Is that good or bad? How is that achieved. Thanks!

Views

591

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 11, 2019 Apr 11, 2019

I am opposed to what your competitor is doing, but answering your question, add the following JavaScript to your page

document.body.oncopy = function() { return false; }
document
.body.oncut = function() { return false; }
document
.body.onpaste = function() { return false; }

alternatively

document.body.oncontextmenu = function() { return false; }

For the link add the following to your style sheet

a {

  text-decoration: none;

}

Votes

Translate

Translate
Community Expert ,
Apr 11, 2019 Apr 11, 2019

Copy link to clipboard

Copied

I am opposed to what your competitor is doing, but answering your question, add the following JavaScript to your page

document.body.oncopy = function() { return false; }
document
.body.oncut = function() { return false; }
document
.body.onpaste = function() { return false; }

alternatively

document.body.oncontextmenu = function() { return false; }

For the link add the following to your style sheet

a {

  text-decoration: none;

}

Wappler, the only real Dreamweaver alternative.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 12, 2019 Apr 12, 2019

Copy link to clipboard

Copied

The only real way to keep someone from copying the content of your website is to not publish that content to your website.

That's the long and short of it.

If all you're doing is causing a slight hiccup in a bad actor's copying efforts, and simultaneously annoying every viewer that tries to otherwise interact with your text, what use is it?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 12, 2019 Apr 12, 2019

Copy link to clipboard

Copied

LATEST

Disabling right click is rude & annoying.  It removes access to advanced browser features that  many people rely on.  The golden rule in web design is "don't mess with people's browsers."

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines