<div dir="ltr"><div>cool thanks Amos :)</div><div><br></div><div>if your interested these are my lines in my config</div><div><br></div><div>#allow special URL paths<br>acl special_url url_regex "/usr/local/squid/etc/urlspecial.txt"<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>urlspecial.txt</div><div><br></div><div><a href="http://updater.maxon.net/server_test">http://updater.maxon.net/server_test</a><br><a href="http://updater.maxon.net/customer/R21.0/updates15">http://updater.maxon.net/customer/R21.0/updates15</a><br><a href="http://updater.maxon.net/customer/general/updates15">http://updater.maxon.net/customer/general/updates15</a><br>^<a href="http://ccmdl.adobe.com/AdobeProducts/KCCC/1/win64/packages/.*">http://ccmdl.adobe.com/AdobeProducts/KCCC/1/win64/packages/.*</a><br>^<a href="http://ccmdl.adobe.com/AdobeProducts/KCCC/1/osx10/packages/.*">http://ccmdl.adobe.com/AdobeProducts/KCCC/1/osx10/packages/.*</a><br>^<a href="http://www.eztitles.com/download.php">http://www.eztitles.com/download.php</a>?<br>^<a href="https://attachments.office.net/owa/.*">https://attachments.office.net/owa/.*</a></div><div><br></div><div>mimedeny.txt</div><div><br></div><div>application/octet-stream<br>application/x-msi<br>application/zip<br>application/vnd.ms-cab-compressed</div><div><br></div><div>is this the best way of doing it?</div><div><br></div><div>thanks,</div><div>rob<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 5 May 2020 at 13:27, 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 5/05/20 11:38 pm, robert k Wild wrote:<br>
> hi all,<br>
> <br>
> i wanto to allow only zip files via a specific url regex<br>
> <br>
> atm im allowing all attachments<br>
> <br>
> ^<a href="https://attachments.office.net/owa/.*" rel="noreferrer" target="_blank">https://attachments.office.net/owa/.*</a><br>
> <br>
> could i do this to lock it down to only zips<br>
> <br>
> ^<a href="https://attachments.office.net/owa/.zip" rel="noreferrer" target="_blank">https://attachments.office.net/owa/.zip</a><br>
> <br>
<br>
That regex will only match a small set of URLs which are unlikely ever<br>
to exist.<br>
<br>
What you want is:<br>
<br>
acl downloads url_regex <a href="https://attachments.office.net/owa/" rel="noreferrer" target="_blank">https://attachments.office.net/owa/</a><br>
acl dotZip urlpath_regex \.zip(\?)?.*$<br>
http_access allow downloads !dotZip<br>
<br>
acl zipCt rep_header Content-Type application/zip<br>
http_reply_access deny zipCt<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>