Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I was wonder with nginx can I:

Check if content-type == "image/x-jpeg" || content-type == "image/png" || content-type == "image/gif"

If true && referrer != "mysite.com" && referrer != "": Return a 404 result or an image of my choice.

Update: This is a duplicate. But I could not find it (the duplicate) until I posted. So I am leaving this here for others.

share|improve this question
1  
Well, this is almost a duplicate: serverfault.com/questions/91502/… –  unixman83 Mar 26 '12 at 0:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.