Re: Bug in url_regex pattern matching?

From: Bernd P. Ziller <>
Date: Mon, 26 Jan 1998 16:16:58 +0100 (MET)

> From: "Nick O'Brien" <>

> Now in the the banned-list file I had the line:
> which I expected would mean that acceses to any URL with in
> it would be denied. However I discovered that sites like
> were being denied as well. I know that it was this
> line as after I removed it, and restarted Squid - I was then able to
> access the above site.
> Is this a bug in the url_regex pattern matching mechanism or simply some
> misunderstanding on my part about how it should work?

It's only a misunderstanding on your part.

The meaning of the '*' is "zero of more accurances of the preceeding

So '*' will match all from '' to

It will also match something like:

What you want is '^', any URL starting with
'' will match this regexp. No need to add any '.*'.

For more info an regexp see 'man 5 regexp'.


  Perry Rhodan - Blind Guardian - Morwen   Pages
Received on Mon Jan 26 1998 - 07:31:20 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:38:31 MST