<div dir="ltr">I work on a stack which does something similar, and I blogged about it a while ago: <a href="http://ajlanghorn.com/2015/05/varnish-includes/">http://ajlanghorn.com/2015/05/varnish-includes/</a><div><br></div><div>In your case, you should be able to do copy a good chunk of that, but change the return to the lookup function for beresp.http.X-Frame-Options = "value" or something.</div><div><br></div><div>Let me know if you'd like me to expand on that.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 June 2015 at 17:28, Andrew Kelly <span dir="ltr"><<a href="mailto:akelly@snafu.de" target="_blank">akelly@snafu.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
is it possible to either set or unset the X-Frame-Options meta header<br>
based on the IP address of the visiting client?<br>
<br>
Many thanks in advance,<br>
<br>
Andy<br>
<br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>Andrew Langhorn<br></div><div>Web Operations</div><div>Government Digital Service</div><div><br></div><div>e: <a href="mailto:andrew.langhorn@digital.cabinet-office.gov.uk" target="_blank">andrew.langhorn@digital.cabinet-office.gov.uk</a></div><div>t: +44 (0)7810 737375</div><div>a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH</div></div></div></div></div></div>
</div>