In fact, I want to deny some SEXUAL url, like .*://.*sex*.* or .*://.*xxx*.*
I config some acl and http_access as following:
acl QUERY urlpath_regex cgi-bin \? \- \;
acl allurl url_regex ^.*://.*
acl sexurl url_regex ^.*://.*sex*
acl sexurl url_regex ^.*://.*xxx*
http_access deny sexurl !QUERY
If I use "http_access deny sexurl !QUERY", then I cannot reach some
long domain names URL like " http://www.freeservers.com" etc.
If I use "http_access deny sexurl !allurl !QUERY"(this seems as
"http_access allow allurl") but not "http_access deny sexurl !QUERY",
I can reach all easily.
I mean how I can deny some sexual url but permit all other url.
best regard,
Xue Junchao
----- Original Message -----
From: Clifton Royston <cliftonr@lava.net>
To: Xue Junchao <profxjc@tjlink.tisti.ac.cn>
Cc: squid-users <squid-users@ircache.net>
Sent: Monday, February 21, 2000 4:29 AM
Subject: Re: Cannot retrieve some URL
> On Sun, Feb 20, 2000 at 07:08:26PM +0800, Xue Junchao wrote:
> > Hello,
> >
> > I don't know why I couldn't reach some normal URLs? For example:
> > http://www.freeservers.com
> > http://www.japanesegirls.com (sexual URL, just as an example)
> > I also cannot reach http://squid.nlanr.net/Doc/Users-Guide/
> > All of these URLs are very normal, there is no special character in them.
> > Can you tell me how to resolve it?
>
> They worked for me. (Squid 2.2S5 + patches, running on FreeBSD
> 3.4-stable, accessed via NS 4.61 configured with proxy.pac file,
> non-transparent.)
>
> Try again - maybe you were having some transient network problems? I
> know during testing sometimes I've blamed Squid when it turned out to
> be the remote site that was down or some network problem in between.
> -- Clifton
>
>
> --
> Clifton Royston -- LavaNet Systems Architect -- cliftonr@lava.net
> The named which can be named is not the Eternal named.
>
Received on Sun Feb 20 2000 - 20:09:25 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:51:22 MST