Y
Y
Yuri Lobanov2017-12-25 01:59:59
css
Yuri Lobanov, 2017-12-25 01:59:59

How to replace an image when accessing it by url?

Background
The site has a logo in the header. The logo image itself is a png with a transparent background and an indentation effect (which means there is a border around the logo elements).

Example (from internet)
211.jpg

Often the logo is opened through the context menu (RMB - Open image) and used for placement on websites, and even in printed materials (instead of requesting a logo from us). Unfortunately, there are more and more such links in the network (partners and journalists), which means that it is problematic to track everything.
Question
Is it possible to replace the logo image when accessing it directly via url (site.com/logo.png) with another url, for example, site.com/logo-print.png? There are other problems: "Copy image", "Copy image link", but they are secondary.
The search turned up nothing. I suspect I'm looking in the wrong direction. All that came to my mind was replacing the context menu on an element. But so far, such a solution looks a little cumbersome for a seemingly simple task.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
oh, 2017-12-25
@iiil

you can disable the right click, but all the pictures are still available in the browser console
see how this thing works on the houzz site you
can make a logo in svg, and on the site - a separate page from where you can download the logo in a good size, you can easily find examples of such pages in Google
, if you are so popular, then there is not much point in bathing - you cannot forbid everyone and everyone to do what they want, and if not so popular, then all the more so

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question