Ok my last email on this issue. Its resolved here is what stopped it.
Even though I was allowing that test domain to access the MP3 files, I
was still triggering the following:
acl wmp browser -i ^.*Windows-Media-Player.*
acl wmp browser -i ^.*NSPlayer.*
acl wmp browser -i ^.*player.*
acl umv rep_mime_type ^video/* ^audio/*
http_access deny wmp
http_reply_access deny umv
I somehow missed the fact that downloading an mp3 triggers the following
re_meme type: audio/mpeg
- Nick
-----Original Message-----
From: Odhiambo Washington [mailto:wash@wananchi.com] On Behalf Of
Odhiambo WASHINGTON
Sent: Wednesday, March 29, 2006 10:17 AM
To: squid-users@squid-cache.org
Subject: Re: [squid-users] How to allow certain media types from one
domain?
* On 29/03/06 09:48 -0500, Nick Duda wrote:
|
| I'm a bit confused on the syntax I need in the squid.conf. I've tried
| many things.
|
| I have an ACL/http_access rule to deny downloading and streaming of
any
| MP3 files. I want to allow it from one website. I've tried basically
| dstdomain allowing for that domain, but the other http_access rule is
| taking over.
|
| So I want to deny MP3 from everything except from domain
| www.testdomain.com
|
| Here is what I have in place:
|
| -----------------------------------------------------------
|
| acl testdomain dstdomain "/usr/local/squid/db/test" #in test is one
line
| that has .testdomain.com
| acl filedownloads urlpath_regex -i \.exe$ \.mp3$ \.mov$ \.mpg$ \.mp?$
| \.avi$ \.rm$
| acl wmp browser -i ^.*Windows-Media-Player.*
| acl wmp browser -i ^.*NSPlayer.*
| acl wmp browser -i ^.*player.*
| acl umv rep_mime_type ^video/* ^audio/*
|
| http_access allow testdomain
|
| http_access deny filedownloads
|
| http_access deny wmp
| http_reply_access deny umv
http_access deny filedownloads !testdomain
Maybe?
-Wash
http://www.netmeister.org/news/learn2quote.html
DISCLAIMER: See http://www.wananchi.com/bms/terms.php
-- +======================================================================+ |\ _,,,---,,_ | Odhiambo Washington <wash@wananchi.com> Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 +======================================================================+ The grand leap of the whale up the Fall of Niagara is esteemed, by all who have seen it, as one of the finest spectacles in nature. -- Benjamin Franklin. --------------------- Confidentiality note The information in this email and any attachment may contain confidential and proprietary information of VistaPrint and/or its affiliates and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may cause liability. In case you have received this message due to an error in transmission, please notify the sender immediately and to delete this email and any attachment from your system. ---------------------Received on Wed Mar 29 2006 - 09:39:55 MST
This archive was generated by hypermail pre-2.1.9 : Sat Apr 01 2006 - 12:00:04 MST