I they that they are not...
The ? is protected the it MUST be in the end of the url
So \.mp3(\?.*)?$ should work
(url end with .mp3(0 or 1 ? (if one allow anything after)))
* php sample for test ^^
<?
$site="pom.net/file.mp3";
echo preg_match("/\.mp3(\?.*)?$/i",$site);
$site="pom.net/file.mp3?";
echo preg_match("/\.mp3(\?.*)?$/i",$site);
$site="pom.net/file.mp3?azerty";
echo preg_match("/\.mp3(\?.*)?$/i",$site);
$site="pom.net/file.mp3azerty";
echo preg_match("/\.mp3(\?.*)?$/i",$site);
?>
Kevin
-----Message d'origine-----
De : devendra [mailto:devendra@zayanionline.com]
Envoyé : mercredi 18 août 2004 15:51
À : Kevin D; squid-users@squid-cache.org
Objet : Re: [squid-users] RE : [squid-users] blocking file extension
Hi,
No i havent block dll file in the block.txt
some times RE work and some time it dont work, are the RE are correct
or not
Devendra
At 04:01 PM 18/08/2004, Kevin D wrote:
>Content-Transfer-Encoding: 8bit
>
>Hi,
>
>Something seems to be wrong in your RE
>
>For example:
>\.mp3\?.*$ will match "<url>/file.mp3?sometext" but not
"<url>/file.mp3"
>
>
>is \.dll\?.*$ in the block.txt file??
>
>Kevin
>
>
>-----Message d'origine-----
>De : devendra [mailto:devendra@zayanionline.com]
>Envoyé : mercredi 18 août 2004 14:19
>À : Muthukumar; squid-users@squid-cache.org
>Objet : Re: [squid-users] blocking file extension
>
>Hello,
>
>Like when i sign off from yahoo or hotmail
>It gives me access deny error.
>
>Devendra
>At 02:41 PM 18/08/2004, Muthukumar wrote:
>
>
> > > block.txt
> > > ------
> > > \.cab\?.*$
> > > \.rm\?.*$
> > > \.mp\?.*$
> > > \.mpg\?.*$
> > > \.mpeg\?.*$
> > > \.mp3\?.*$
> > > \.wmv\?.*$
> > > \.wma\?.*$
> > > \.mov\?.*$
> > > \.avi\?.*$
> > > ------
> > >
> > > squid conf
> > >
> > > acl block urlpath_regex -i "/etc/squid/block.txt"
> > > http_access deny block
> >
> >It will block the list of files with the extensions in block.txt to
>ALL.
> >
> > > but some time i try to sign in or sign off, it gives me access
deny
>error,
> >
> >what you are specifying as sign in and sign off ??
> >
> >Regards
> >Muthu
> >
> >
> >
> >
> >---
> >=============== It is a "Virus Free Mail" ===============
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.740 / Virus Database: 494 - Release Date: 8/16/2004
Received on Wed Aug 18 2004 - 08:12:17 MDT
This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:02 MDT