Re: [squid-users] user can download blockd file type

From: Muthukumar <kmuthu_gct@dont-contact.us>
Date: Mon, 9 Aug 2004 17:28:21 +0530

> wich i want to block
> no my dlb.txt is
>
> #dlb.txt
> #---------------------
> \.cab$
> \.exe$
> \.rm$
> \.mp?$
> \.mpg$
> \.mpeg$
> \.mp3$
> \.wmv$
> \.wma$
> \.mov$
> \.avi$
> \.cab\?.*$
> \.exe\?.*$
> \.rm\?.*$
> \.mp\?.*$
> \.mpg\?.*$
> \.mpeg\?.*$
> \.mp3\?.*$
> \.wmv\?.*$
> \.wma\?.*$
> \.mov\?.*$
> \.avi\?.*$
>
>
> tell me is there any thing wrong if u find
>

You can put more effective pattern's as,

example,

    to block .exe* ( * may be anything ? or $ etc... ) then

    \.exe.*$

    It will do that.

    No need to put two regexp's as,

    \.rm$
    \.rm\?.$

    Simply as
    \.rm.*$

    or
    \.rm\?.*$ ( it is also okie )

    Note: Don't limit second (.) dot with \. .* - will select all patterns after .rm pattern

Regards
Muthu

---
===============  It is a "Virus Free Mail" ===============
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004
Received on Mon Aug 09 2004 - 07:42:54 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:02 MDT