Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 19121 invoked from network); 26 Jun 2008 18:14:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jun 2008 18:14:29 -0000 Received: (qmail 48540 invoked by uid 500); 26 Jun 2008 18:14:25 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 48521 invoked by uid 500); 26 Jun 2008 18:14:25 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 48510 invoked by uid 99); 26 Jun 2008 18:14:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 11:14:25 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pharkins@gmail.com designates 209.85.146.180 as permitted sender) Received: from [209.85.146.180] (HELO wa-out-1112.google.com) (209.85.146.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 18:13:35 +0000 Received: by wa-out-1112.google.com with SMTP id l35so88594waf.16 for ; Thu, 26 Jun 2008 11:13:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=sTzB49zANne4daBt4JWt8NUV0Ryq93kbR5Wo9Mp6tE8=; b=MC9B1m0RvaGlj4BKzOP5wR8z17L3gSXlzSDE7Za2PxiM7+4okHmMb/DeZFoTBwuwyD I9LhwdNd8xaLKlkIDKvazA1jhPlb/bYRE8vxJVPouPeHBhO51qEdH0qdWCmTENN8wlv4 ViwcnQx+iPCIVX+ZwC04YEkCA+XHRrOME9Z7I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=xqHw2CJq8x7+64BEOP/EQRABwRQ3Fg7IriwAwEirGIWETpvyLxh3LsC3wcZqpqyzTP NOf22YJwBJmB87MneIn9odaDNkHlGnyEhGZy9gYeA54xs6+t1ve1p/YErCAYQyRoUtDa 9udjhI3JZU8JgBCKXq/TMfN6NSWgXMidhQ8vg= Received: by 10.114.66.8 with SMTP id o8mr325522waa.135.1214504018102; Thu, 26 Jun 2008 11:13:38 -0700 (PDT) Received: by 10.114.46.3 with HTTP; Thu, 26 Jun 2008 11:13:38 -0700 (PDT) Message-ID: <66887a3d0806261113o693bab6blc2281c9acbc2ea8a@mail.gmail.com> Date: Thu, 26 Jun 2008 14:13:38 -0400 From: "Perrin Harkins" Sender: pharkins@gmail.com To: "Aaron Collins" Subject: Re: mod_captcha Cc: modperl@perl.apache.org In-Reply-To: <4862E0A3.50603@ehawaii.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4862E0A3.50603@ehawaii.gov> X-Google-Sender-Auth: e8c5acea38080f11 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Jun 25, 2008 at 8:19 PM, Aaron Collins wrote: > I'm trying to write a perl based mod_captcha using the recaptcha service, I > was wondering is someone could tell me which handler I should use that would > allow me to have mod_perl intercept a request going to a specific location > and if it i return true continue with the request. In my case I use > ProxyPass to pass request to java. So I'd want to have my handler jump in > give a captcha and when the captcha is approved continue forwarding it on to > the proxypass. If my understanding of mod_perl is incorrect please let me > know if their is a better logic to approach this. You can't do all that within a single HTTP request. What you need to do is check if the person is authorized already (usually through a cookie), and if not, redirect them to your captcha application. When they pass the captcha, you give them a cookie that identifies them, and that cookie allows them in to the protected area. Rather than write this all yourself, I suggest you subclass Apache::AuthTicket. - Perrin > > -- > -Aaron Collins > Systems Engineer/ Release Engineer > Hawaii Information Consortium > 220 S. King St. Suite 2190 > Honolulu, Hawaii 96813 > Cell: 808.203.8756 > Office: 808.587.4213 > > ************************************************************ > CONFIDENTIALITY NOTICE: > This email and any attachments are confidential. If you > are not the intended recipient, you do not have permission > to disclose, copy, distribute, or open any attachments. If > you have received this email in error, please notify us > immediately by returning it to the sender and delete this > copy from your system. > ************************************************************ > >