Nginx: different content to specific request method

Hey Guys,

I have the image in the url (my server):
http://www.example.com/example.jpg

If my user put this image url on his site: return the image (normal).

If my user put this image url on his browser: return redirect to my
site, i.e. Example Domain

How to do it?

Regards,
Caio

Posted at Nginx Forum: