Re: How to deny the null dstdomain

From: Robert Collins <robert.collins@dont-contact.us>
Date: Tue, 11 Jul 2000 20:25:24 +1000

If I understand your problem you want to deny any request that looks like:
http://somelocalserver/xxx
       ^^^^^^^^^^^^^^^

I would try
acl NoDomainName url_regex -i http://.*[\.]{0}.*/
http_access deny NoDomainName

If I've got my expression right :-]... seriously double check it! that
should match any url request with no "." between the http:// and the first /

Rob

----- Original Message -----
From: "Kenn Sakai" <xksakai@isid.co.jp>
To: <squid-users@ircache.net>
Cc: <jm.fandino@fadesa.es>; <xksakai@isid.co.jp>
Sent: Tuesday, July 11, 2000 7:22 PM
Subject: Re: How to deny the null dstdomain

>
> From: "=?iso-8859-1?Q?Jos=E9?= M. =?iso-8859-1?Q?Fandi=F1o?="
<jm.fandino@fadesa.es>
> Subject: Re: How to deny the null dstdomain
> Date: Tue, 11 Jul 2000 09:38:01 +0200
>
> > > I tried the following, but got "invalid ACL" message.
>
> > > acl NoDomainName dstdom_regex ""
>
> > I think that for a emply line in regex the nomenclature
> > is "^$" without quotes.
>
> Thank you very much. squid stopped complaining.
>
> But I can still access to "http://localwebserver/XXXX".
>
> I'm using squid-2.2.STABLE5 and corrected config is below
>
> ====================================
> #
> # append_domain is OFF
> #
> #append_domain .yourdomain.com
>
> acl NoDomainName dstdom_regex ^$
> http_access deny NoDomainName
> ====================================
>
>
> Is there any way to deny the request without dstdomain name?
>
>
> Thank you.
>
>
>
Received on Tue Jul 11 2000 - 04:23:56 MDT

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