Highlighted

How make it so one cannot copy the text?

Enthusiast ,
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!

Adobe Community Professional
Correct answer by BenPleysier | Adobe Community Professional

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;

}

TOPICS
Dreamweaver | Mac OS issues

Views

438

Likes

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

How make it so one cannot copy the text?

Enthusiast ,
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!

Adobe Community Professional
Correct answer by BenPleysier | Adobe Community Professional

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;

}

TOPICS
Dreamweaver | Mac OS issues

Views

439

Likes

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
Apr 11, 2019 0
Adobe Community Professional ,
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;

}


Ben

Likes

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
Reply
Loading...
Apr 11, 2019 1
Adobe Community Professional ,
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?

Likes

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
Reply
Loading...
Apr 12, 2019 3
Adobe Community Professional ,
Apr 12, 2019

Copy link to clipboard

Copied

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, ACP
Alt-Web Design & Publishing

Likes

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
Reply
Loading...
Apr 12, 2019 1