S
S
Seryoga2020-11-25 15:33:44
Nginx
Seryoga, 2020-11-25 15:33:44

How to track the download of an image via a direct link from a web server?

The bottom line is this: there is software that loads pictures (files .jpg and .png) from a remote server. Can only work with direct links. The files simply lie in the root of the web server, the software indicates a direct link to them. Files on the server may change every few days, but the file name (and, accordingly, the link) remains the same. No authorization, no privacy. The software is finished and cannot be modified.
How can you log file access in this scenario? It is desirable not only the access time, but also the IP of the client. Now the files are on Synology, web server on Apache2.4. But there is a free raspberry, there is a docker, I can deploy any software. Just tell me how to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2020-11-25
@ky0

And Apache doesn't keep logs or what? Usually all requests are logged.
Or do you want to log not on a "remote server", but where your software is? Then install nginx locally and proxy image requests to it. Well, configure the logging as you want.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question