Ao inv�s de voc� incluir as restri��es para tipos de arquivos um a um,
voc� pode usar a seguinte acl:
acl download_http urlpath_regex "/etc/squid/file_types"
http_access deny download_http

E no arquivo "/etc/squid/file_types" insira as extens�es de arquivos q
deseja restringir que o usu�rio fa�a download. Por exemplo:
\.exe$
\.pif$
\.mp3$

Espero q isto resolva seu problema.
Qualquer d�vida entre em contato,

Cleber P. de Souza
Cia. Metalgraphica Paulista


-----Mensagem original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] Em nome de Jose Carlos
Enviada em: ter�a-feira, 5 de mar�o de 2002 17:20
Para: [EMAIL PROTECTED]
Assunto: (linux-br) Barrar download no squid

Ola pessoal estou querendo barrar todo e qualquer tipo de download vi
squid
+ minha regras n�o funcionam estou usando
Squid/2.3.STABLE3, h� autentica��o funciona blz ai vai meus acl's.

# REGRAS PARA BAIXAR ARQUIVOS E PROIBIR  SITES PORNOS
acl download url_regex "/etc/squid/download.txt"    ESSA � UMA MANEIRA

acl porn url_regex "/etc/squid/porn"
acl noporn url_regex "/etc/squid/noporn"

# E ESSAS S�O OUTRAS
acl nega_MP3 urlpath_regex \.mp3$
acl nega_EXE urlpath_regex \.exe$
acl nega_AVI urlpath_regex \.avi$
acl nega_COM urlpath_regex \.com$
acl nega_ZIP urlpath_regex \.zip$
acl nega_SCR urlpath_regex \.scr$
acl nega_VBS urlpath_regex \.vbs$
acl nega_BAT urlpath_regex \.bat$
acl nega_MPG urlpath_regex \.mpg$
acl nega_ARJ urlpath_regex \.arj$
acl nega_RAM urlpath_regex \.ram$
acl nega_MOV urlpath_regex \.mov$
acl nega_MPEG urlpath_regex \.mpeg$
acl nega_DOC urlpath_regex \.doc$

acl nega_XLS urlpath_regex \.xls$

http_access allow password
http_access allow noporn all
http_access deny porn all
http_access deny download
http_access deny nega_MP3
http_access deny nega_AVI
http_access deny nega_COM
http_access deny nega_SCR
http_access deny nega_VBS
http_access deny nega_BAT
http_access deny nega_MPG
http_access deny nega_ARJ
http_access deny nega_MOV
http_access deny nega_MPEG
http_access deny nega_DOC

OBS: MAS NENHUM DEU CERTO PORQUE ? UMA LUZ PLIS ???
-------------------------------------------------------
Unimed Londrina - Cooperativa de Trabalho M�dico
Jos� Carlos da Silva - Analista de Suporte
0-xx-43-375-6281 - Linux Counter #257840
[EMAIL PROTECTED]





Assinantes em 06/03/2002: 2258
Mensagens recebidas desde 07/01/1999: 157245
Historico e [des]cadastramento: http://linux-br.conectiva.com.br
Assuntos administrativos e problemas com a lista:
            mailto:[EMAIL PROTECTED]

Responder a