ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Maxim Britov <maxim@office.modum.by>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] squid - резать mp3
Date: Mon, 17 Jul 2006 10:39:34 +0300
Message-ID: <20060717103934.407c43b6@maxim.office.modum.by> (raw)
In-Reply-To: <e9av9o$t6j$1@sea.gmane.org>

On Sat, 15 Jul 2006 17:49:12 +0300
 Artem Zolochevskiy wrote:

> hi all
> 
> Попросили тут подстроить squid, чтоб всяческую мультимедиа не пропускать. Я
> по простоте душевной сделал
> 
> acl multimedia urlpath_regex -i \.mp3$ итд
> 
> но как выяснилось спасает это не очень. с перевого же попавшегося mp3
> раздатника преспокойно пошла загрузка. Я так понимаю \.mp3$ спасает только
> от "прямых" ссылок. А как же быть ну вод хоть с таким -
> http://musicmp3.spb.ru/ ?

Поглядеть вывод tcpflow -c
HTTP/1.1 200 OK
Date: Mon, 17 Jul 2006 07:32:26 GMT
Server: Apache/1.3.34 (Unix) mod_deflate/1.0.21
Content-Disposition: attachment; filename=kryljya.mp3
Last-Modified: Tue, 13 Sep 2005 00:38:24
Accept-Ranges: bytes
Content-Length: 5427200
Content-Range: bytes 0-5427199/5427200
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: application/octet-stream

И попробовать что-то вроде такого:
acl deny_multimedia src 1.2.3.4/mask
acl multimedia2 rep_header Content-Disposition filename=.*\.mp3
http_reply_access deny deny_mulimedia multimedia2



-- 
Maxim Britov
Modum.by (http://www.modum.by), system administrator

GnuPG KeyID 0x4580A6D66F3DB1FB xmpp:maxim@modum.by icq 198171258
GnuPG-ru Team (http://lists.gnupg.org/mailman/listinfo/gnupg-ru)

  parent reply	other threads:[~2006-07-17  7:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-15 14:49 Artem Zolochevskiy
2006-07-15 15:12 ` Dmitriy L. Kruglikov
2006-07-15 18:49 ` Olvin
2006-07-17  7:39 ` Maxim Britov [this message]
2006-07-18  5:45 ` hozzzar
2006-07-19  5:58 ` Alex Gorbachenko
2006-07-19  9:17   ` Maxim Britov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060717103934.407c43b6@maxim.office.modum.by \
    --to=maxim@office.modum.by \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git