我很怀疑nginx能不能:
检查if content-type == "image/x-jpeg" || content-type == "image/png" || content-type == "image/gif" if content-type == "image/x-jpeg" || content-type == "image/png" || content-type == "image/gif"
If true && referrer != "mysite.com" && referrer != "": 返回404结果或我select的图片。
更新:这是重复的。 但我找不到( 重复 ),直到我张贴。 所以我把这个留给别人