Hi,
On Tue, 29 May 2001, Leonardo Castaņo wrote:
>
> Hi Friends, I have a solution with squid and url list like follow
>
> url list =
> ^http://www.domain1.com
> ^http://www.domain2.com
> ...
> ..
> .
> but when I want add a subdomain of domain2.com like www1.domain2.com the
> sintax for this is
> ^http://.*domain2.com that sintaxis causes what any domain what contain
> "domain2.com" is accepted by squid
> like www.anyworddomain2.com www.alsjdflskjd1domain2.com etcetera
> etcetera...
>
> some one have a solution for regular expresions and Squid such as I can
> diference betwen domains and sub-domains?
Make correct use of regular expressions. For a start "." is ANY character
so your list would match http://wwwxdomain1.com.
Methinks you need some "\" in there. Like ...
^http://www\.domain1\.com
^http://www\.domain2\.com
Or for the all encompassing
^http://.*\.domain2\.com
Colin
Received on Tue May 29 2001 - 17:06:10 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:20 MST