How do you keep your text from being copied?

-2

1

In a website, how do you keep your text from being highlighted and copied using only css?

Wolfpack'08

Posted 2014-07-18T20:10:37.207

Reputation: 950

Question was closed 2014-07-18T21:36:08.150

2If you want to make it technologically difficult for your text to be copied, don't put it on the world wide web. – Ben Crowell – 2014-07-18T20:21:15.763

Why would you even want to do it with only CSS? – ᔕᖺᘎᕊ – 2014-07-18T20:32:33.807

@ṧнʊß Cool name. It's a hypothetical question, big guy. It saves a lot of work, and it's pretty damned effective. I sat about 10 of my friends down, and they spent hours between them trying to figure it out. None of them realized that they were highlighting text the entire time. – Wolfpack'08 – 2014-07-18T21:09:48.963

ok, but if someone really wanted to highlight some of your text, then they (or at least I would), start looking at your html and css (inspect element ;) – ᔕᖺᘎᕊ – 2014-07-18T21:12:11.823

This question should not be closed as "too broad", but deserves to be closed as "off-topic". However, it is very interesting and the answer is quite nice. It would fit well in Stack Overflow. (what is off-topic is requesting a solution with CSS) – Zanon – 2015-10-24T12:56:07.807

You guys are ridiculous. This question is wildly specific, and it has more solutions than just one. Giving it a -2 is kind of BS when you have commenters who are not satisfied with the answer. – Wolfpack'08 – 2015-10-25T02:51:26.573

Answers

1

::selection {
/* background: transparent; */
}

Wolfpack'08

Posted 2014-07-18T20:10:37.207

Reputation: 950

^^ So funny, but it works. – Wolfpack'08 – 2014-07-18T20:10:54.200

This shouldn't keep it from being copied. – Duncan X Simpson – 2014-07-18T20:41:10.210

@VirtualDXS Sure it will. It creates the illusion. It's like putting an ADT sign on your house and no actual security system. :D – Wolfpack'08 – 2014-07-18T21:08:28.213