RE: [squid-users] just for fun

From: Tóth Tibor Péter <tibor.peter.toth_at_mtv.hu>
Date: Fri, 7 Jan 2011 09:32:50 +0100

Hi Amos!

Thanks for the reply.
So how would this look like?

acl apache http_reply_access "apache"
acl apache http_reply_access "Apache"

http_access deny apache

Thanks,
Tibby

-----Original Message-----
From: Amos Jeffries [mailto:squid3_at_treenet.co.nz]
Sent: Friday, January 07, 2011 5:51 AM
To: squid-users_at_squid-cache.org
Subject: Re: [squid-users] just for fun

On 05/01/11 10:42, Tóth Tibor Péter wrote:
> This is just for fun, or for some kind of excerise for the geeks ...
>
> I was wondering if is there a way to block every sites hosted on apache servers or hosted on linux machines?

http_reply_access plus an ACL which checks reply header "Server:" for the apache server agent.
Server OS is more tricky, it is done in the same way but depends on whether the OS is even mentioned in the reply headers.

> of course within squid. Is there some kind of tweak to get the webserver version of the site and make rules based on that?
>
> Again this is just for myself and as an excersise.
>
> If not with squid, would it be possible to do this with a .PAC file ?

Nope. It has to be done based on the reply.

Amos

--
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.10
   Beta testers wanted for 3.2.0.4
Received on Fri Jan 07 2011 - 08:32:56 MST

This archive was generated by hypermail 2.2.0 : Fri Jan 07 2011 - 12:00:02 MST