<div dir="auto">Technically, bans are evaluated outside of vcl, after vcl_hash. We grab a tentative obj, then test it, if it matches, we destroy the objcontinue searching, otherwise we go to vcl_hit<br><br><div data-smartmail="gmail_signature">-- <br>Guillaume Quintard </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 30, 2018 18:49, "Alexandros Kechagias" <<a href="mailto:alexandros.kechagias@gmail.com">alexandros.kechagias@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> ban() takes a string :-)<br>
<br>
D'oh! Thanks Guillaume, it works now. :-)<br>
<br>
The documentation says that:<br>
"Bans are checked when we hit an object in the cache, but before we<br>
deliver it." [1]<br>
I guess that's why obj.* is only available in vcl_hit and vcl_deliver, right?<br>
<br>
[1] <a href="http://varnish-cache.org/docs/4.0/users-guide/purging.html#bans" rel="noreferrer" target="_blank">http://varnish-cache.org/docs/<wbr>4.0/users-guide/purging.html#<wbr>bans</a><br>
</blockquote></div></div>