I want to setup a reverse proxy for serving images stored in S3.
I dont want to allow access to images if referrer
is not example.com
But I want to allow multiple crawlers for example google bot, bing bot etc (based on user_agent
) to access the images.
I also want to allow my android app to access the images (based on custom header say X-Application: ExampleApp
)
How do I configure nginx to do so ?