Answer the question
In order to leave comments, you need to log in
What is the most efficient way to redirect a request?
There is a file on any server, for example https://test.logreel.xyz/img/Love_Heart_Two_580916...
I want to prevent other sites from downloading this picture from my server.
How can this be done?
Well, that is, so that on another server they could not insert this picture into the img tag.
Answer the question
In order to leave comments, you need to log in
You do not send the image directly, but through a php script that checks the Referer and Host headers, it will be clear from them whether the request is from your site or not from yours. If not from yours, you can give some kind of stub, for example, a cookie.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question