<p>I'm being hit with a vulnerability probe which uses <code>User-Agent: Mozilla/5.0 Jorgee</code> and I want to drop/reject any requests from that user agent. </p>

<p>I've been digging around the k8s examples but I can't seem to find a solution.</p>

<p>Is there any way I can deny requests based on <code>User-Agent</code> with <code>gcr.io/google_contianers/nginx-ingress-controller:0.8.3</code>?</p>

<p>you can add custom nginx configuration snippets to Ingresses with annotations, at least for the "normal" nginx controller, not sure if that works with the GCE controller too. See e.g. here: <a href="https://github.com/kubernetes/ingress/blob/master/examples/customization/configuration-snippets/nginx/ingress.yaml#L8" rel="nofollow noreferrer">https://github.com/kubernetes/ingress/blob/master/examples/customization/configuration-snippets/nginx/ingress.yaml#L8</a></p>
