zakazat radio a spol.

Rehor Petr petr.rehor at i.cz
Fri Feb 8 16:23:30 CET 2002


> Jestli ma nekdo reseni jak odfiltrovat mp3 icecast sstreamy z 
> http at to rekne.

Nikdy jsem to nezkousel, ale ty streamy maji obvykle nejake mazane
MIME typy - treba showcast vypada takhle:

rx at noc.decros.cz:/home/rx> telnet www.shoutcast.com 80
Trying 205.188.234.88...
Connected to scastlb2.shoutcast.com.
Escape character is '^]'.
HEAD
/sbin/shoutcast-playlist.pls?&addr=205.188.245.131:8052&file=filename.
pls HTTP/1.0

HTTP/1.1 200 OK
Date: Fri, 08 Feb 2002 15:08:37 GMT
Server: Apache/1.3.22 (Unix) PHP/4.0.6
X-Powered-By: PHP/4.0.6
Connection: close
Content-Type: audio/x-scpls

Connection closed by foreign host.

No a na to by mohlo platit ACL do squida typu:

	acl AUDIO_MIME req_mime_type -i ^audio
      http_access AUDIO_MIME deny

a pak by se jeste dalo vymyslet neco podobneho pro real-audio:

	acl AUDIO_FILE urlpath_regex -i \.(ra|ram|rm)(\?.*)*$
	http_access AUDIO_FILE deny

Ty directivy by mely fungovat ve squid-2.4-stable1.

Jestli to rozchodite, dejte vedet jaky byl uspech u posluchacu :-)

Petr

---------------------------------------------------------------------
ICZ a.s.               J.S.Baara 40, Ceske Budejovice, Czech Republic
Tel: +420-38-7312808   Fax: +420-38-7311480      http://www.decros.cz




More information about the Users-l mailing list