Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display image on a web page that is not copy-able

Tags:

html

image

Is there a way to display an image on a webpage such that it won't be copied if the surrounding text is copied?

For instance, I'd like to be able to put a diagonal up arrow after hyperlinks opening in a new window, but I'd like users to be able to copy the link with its surrounding content without copying the up arrow image.

Possible without extravagant CSS?

EDIT: I don't care if the user has access to the image, I just want a streamlined copy-paste experience.

like image 924
Garen Checkley Avatar asked Dec 20 '25 18:12

Garen Checkley


2 Answers

You could use a background image in the CSS of an element like a <div>, but if they want a copy of the image there are still ways of getting it.

like image 125
Widor Avatar answered Dec 22 '25 07:12

Widor


If you use a CSS background-image on a div for example, it will not get copied.

like image 29
lamplightdev Avatar answered Dec 22 '25 09:12

lamplightdev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!