# Nginx: different content to specific request method

**URL:** <https://www.ruby-forum.com/t/nginx-different-content-to-specific-request-method/213126>\
**Category:** NGINX\
**Created:** [October 24, 2011, 5:08pm UTC](https://www.ruby-forum.com/t/nginx-different-content-to-specific-request-method/213126 "2011-10-24T17:08:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [October 24, 2011, 5:08pm UTC](https://www.ruby-forum.com/t/nginx-different-content-to-specific-request-method/213126/1 "2011-10-24T17:08:55Z")

</div>

Hey Guys,

I have the image in the url (my server):  
[http://www.example.com/example.jpg](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](http://www.example.com/?fimage=example.jpg)

How to do it?

Regards,  
Caio

Posted at Nginx Forum:

> **[Nginx: different content to specific request method](https://forum.nginx.org/read.php?2,217215,217215#msg-217215)**
>
> 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....
