Track hotlink sites my images

I allow visitors to copy the HTML snippet to their own websites, which includes the image posted on my website.

What is the best way to track websites that link to these images?

I was thinking of creating a web page like getImage.php?imageID=12345 and using this as an src image in my code snippet, but how do I get which website is using this?

+4
source share
1 answer

I believe that the site linking your image can be found through $_SERVER['HTTP_REFERER'] .

+2
source

Source: https://habr.com/ru/post/1411563/


All Articles