Thanks both of these worked:<div><br></div><div><div>ban req.http.host == "<a href="http://www.domain.com">www.domain.com</a>" && req.url ~ "\\.png"</div><div>200 0       </div><div><br></div><div>
ban req.http.host == "<a href="http://www.domain.com">www.domain.com</a>" && req.url ~ .png </div><div>200 0       </div><div><br></div><div><br></div><br><div class="gmail_quote">On Tue, Sep 13, 2011 at 8:43 AM, Hauke Lampe <span dir="ltr"><<a href="mailto:lampe@hauke-lampe.de">lampe@hauke-lampe.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 09/13/2011 05:37 AM, AD wrote:<br>
<br>
> hello, when trying to ban a req.url from the CLI i get the following error,<br>
> any ideas?<br>
<br>
</div><div class="im">> Syntax Error: Invalid backslash sequence<br>
<br>
</div>Which version of varnish do you use?<br>
<br>
You might have to use double backslashes. See:<br>
<a href="https://www.varnish-cache.org/trac/ticket/755" target="_blank">https://www.varnish-cache.org/trac/ticket/755</a><br>
<font color="#888888"><br>
<br>
Hauke.<br>
<br>
</font><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></div>