Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AD2499E97 for ; Wed, 15 Feb 2012 16:25:29 +0000 (UTC) Received: (qmail 69108 invoked by uid 500); 15 Feb 2012 16:25:29 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 69066 invoked by uid 500); 15 Feb 2012 16:25:29 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 69058 invoked by uid 99); 15 Feb 2012 16:25:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2012 16:25:29 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jlewis@silverhawk.net designates 209.85.210.173 as permitted sender) Received: from [209.85.210.173] (HELO mail-iy0-f173.google.com) (209.85.210.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2012 16:25:22 +0000 Received: by iahk25 with SMTP id k25so2128425iah.18 for ; Wed, 15 Feb 2012 08:25:02 -0800 (PST) Received: by 10.42.150.200 with SMTP id b8mr34861635icw.43.1329323102065; Wed, 15 Feb 2012 08:25:02 -0800 (PST) Received: from cyanide.overstock.com ([65.116.116.6]) by mx.google.com with ESMTPS id f8sm6655797ibl.6.2012.02.15.08.25.00 (version=SSLv3 cipher=OTHER); Wed, 15 Feb 2012 08:25:00 -0800 (PST) Sender: Joe Lewis Message-ID: <4F3BDC7A.2050804@joe-lewis.com> Date: Wed, 15 Feb 2012 09:25:30 -0700 From: Joe Lewis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120131 Thunderbird/10.0 MIME-Version: 1.0 To: modules-dev@httpd.apache.org Subject: Re: NoRobot module References: <4F3B67CA.3070401@cardiweb.com> <4F3B8A38.9020102@cardiweb.com> In-Reply-To: <4F3B8A38.9020102@cardiweb.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQkP8HmU16PYuNckcCkiVMDgpe0hiXmev+EGk6CxMK9O9E7BT88PwiWhPLeg+E9NezfUzPTO 2 - you can make it default to "on", and then just have the option of turning it off per vhost. Then there are no configuration changes for you, it's on, and others that find it useful (I can definitely see where it would be) can implement it as needed. Aside from that, it's a simple module that looks fairly good. Joe On 02/15/2012 03:34 AM, Mike Baroukh wrote: > Hi. > > > 1/ thanks > > 2/ on/off : > for my needs, I wanted to be sure, *really* sure, that is the module is > enabled, the server will return this response for all vhosts. > So I did not wan't to enable/disable it by vhost. > Then, if it could only be on/off gloablly, adding/removing the module is > the way to toggle it on/off ... > On debian, it is simple : "a2(en|dis)mod norobot" ... > > 3/ right. I'm not sure if the last \n is mandatory, but I added it ... > > > Note : I saw that the default comments, coming from the sample are wrong > : you don't have to enable the handler per Location. > I updated them ... > > > Thanks a lot for your advices ! > > > Regards, > > Mike Baroukh > --- > Cardiweb - 29 Cite d'Antin Paris IXeme > +33 6 63 57 27 22 / +33 1 53 21 82 63 > http://www.cardiweb.com/ > --- > > > Le 15/02/2012 11:07, Nick Kew a écrit : >> On 15 Feb 2012, at 08:07, Mike Baroukh wrote: >> >>> Disclaimer : >>> I'm absolutly not a C ou System developer. >>> I'm a Java developer. >>> And this is my first module. >>> So maybe it could be made better ... >> If you're asking for criticism, here goes: >> >> 1. It looks fine as far as it goes. >> 2. But would be much more generalisable if it were configurable on/off. >> This would remove the issue of running order which you tackled with >> APR_HOOK_FIRST. >> 3. "Be conservative in what you send". The last line of your >> robots.txt is unterminated! >> -- Joe Lewis www.silverhawk.net