<div dir="ltr"><div>thanks Amos</div><div><br></div><div>#allow special URL paths<br>acl special_url url_regex "/usr/local/squid/etc/urlspecial.txt"<br>http_access allow special_url<br>#<br>#deny MIME types<br>acl mimetype rep_mime_type "/usr/local/squid/etc/mimedeny.txt"<br>http_reply_access allow special_url<br>http_reply_access deny mimetype</div><div><br></div><div>the reason why i added this line</div><div><br></div><div>
http_reply_access allow special_url</div><div><br></div><div> in my mime lines is because<br></div><div><br></div><div><span class="gmail-im"><a href="http://updater.maxon.net/server_test.*" rel="noreferrer" target="_blank">http://updater.maxon.net/server_test</a><br></span></div><div><span class="gmail-im"><br></span></div><div><span class="gmail-im">wants to download an octet stream and it was keep on denying it<br></span></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 19 Jan 2020 at 09:23, Amos Jeffries <<a href="mailto:squid3@treenet.co.nz">squid3@treenet.co.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 18/01/20 3:51 am, robert k Wild wrote:<br>
> smashed it -<br>
> <br>
> acl special_url url_regex ^<a href="http://updater.maxon.net/server_test.*" rel="noreferrer" target="_blank">http://updater.maxon.net/server_test.*</a><br>
> http_access allow special_url<br>
> <br>
<br>
It should work without the anchor and suffix. Perhapse the URL is not<br>
actually that string?<br>
<br>
<br>
* any (.*) at beginning or end is assumed, so are stripped away by<br>
Squid config loader.<br>
<br>
* the ^ anchor is only necessary to forbid sub-URL matches. eg URLs like:<br>
<a href="http://hello/q?http://updater.maxon.net/server_test" rel="noreferrer" target="_blank">http://hello/q?http://updater.maxon.net/server_test</a><br>
<br>
* any characters within the URL which are special to regex are handled<br>
as those *regex* commands. Not characters in the URL.<br>
<br>
These characters may clash between regex and URL:<br>
<br>
. ? ( ) [ ] - + * \<br>
<br>
<br>
Amos<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Regards, <br><br>Robert K Wild.<br></div></div>