My server hosts images, but the content of images have to be different for the same link and have to deepens on http referrer.
For example: Website 1 load image website1.jpg from www.example.com/123123/img.jpg
Website 2 load image website2.jpg from www.example.com/123123/img.jpg
How can i manage do it using NGINX
configuration?
UPDATE: I give you guys more details about whole idea:
Images loads on the pages:
www.not_my_website.com/123123/
www.not_my_website.com/456456/
www.not_my_website.com/686667/
I can't access to this site, but there can be images from my site.
<img src="www.example.com/123123/img.jpg"></img>
I need serve others images with the same htlm code based on page ID www.not_my_website.com/ID/).
Thanks for help.