3 ms·
> what's to stop websites from detecting you've selected text, unselecting it, and copying the bad text in, and then reselecting it Disabling JavaScript.
by HWR_14 4y ago
> what's to stop websites from detecting you've selected text, unselecting it, and copying the bad text in, and then reselecting it
Disabling JavaScript.
- devmunchies 4y agoit'd be trivial to trick users to copy the wrong text with only CSS.
- HWR_14 4y agoWait, how?
- devmunchies 4y agoMake a layer that isn’t visible with “opacity: 0” that sits in front of the visible text. A user copies the invisible text instead. Or conversely, make the visible text “pointer-events: none” and it sits in front of the dangerous text.
- HWR_14 4y agoBoth of those make sense.