Captcha / Disable url rewriting? Options
rvalencia
Posted: Friday, November 07, 2008 2:52:15 AM

Rank: Newbie

Joined: 10/18/2008
Posts: 8
Location: mexico
Hi all
Im inserting a custom captcha user control on a page, my problem is that it creates the image on the fly by refering the img src to "/Captchaimage.aspx?auniqueid" so using a rule in the web.config <httpHandlers> section it works just fine
BUT
Debugging the web session i can see that the url rewriting rules for umbraco are changing what should be
"http://localhost/Captchaimage.aspx?auniqueid"
to
"http://localhost/default.aspx?umbPage=/CaptchaImage.aspx&theuniqueid"

- the http response is "No node found (http://localhost/default.aspx?umbPage=/CaptchaImage.aspx&guid=ac88988c-eda0-4d8d-bf4a-936eebf00a9b, '/root/node [@urlName = "captchaimage"] | /root/node/node [@urlName = "captchaimage"]')"

d'oh!

is there a way to avoid the url rewrite rule for a single reference?
or
is there a captcha control available for umbraco?
Thanks!
drobar
Posted: Friday, November 07, 2008 3:38:15 AM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,831
Location: MA, USA
You might find Per's captcha useful. I know it works with umbraco v3 but haven't tried it under v4 yet.

http://www.objects.dk/2007/7/13/captcha-v2-released.aspx

cheers,
doug.

MVP 2007-2009 - Percipient Studios
hoehler
Posted: Friday, November 07, 2008 9:23:08 AM

Rank: Addict

Joined: 7/19/2006
Posts: 608
Location: Bad Homburg, Germany
Hi Doug, Per has closed his site, so the link is not working...

Thomas

• 2007/2008 MVP • www.thoehler.com • Bad Homburg, Germany
drobar
Posted: Friday, November 07, 2008 4:35:41 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,831
Location: MA, USA
Wow. You move your office a thousand miles and one of your friends knifes his site! I've gotta be more careful, eh? :)

You can get the file at http://v4.objects.dk/media/8474/captcha_2.0.umb for the time being. But remember that Per's site is officially 'off-line' so don't ask for new features on his old work. Okay? Okay. In time the best of his site old site and work will be incorporated elsewhere.

cheers,
doug.

MVP 2007-2009 - Percipient Studios
rvalencia
Posted: Friday, November 07, 2008 6:37:21 PM

Rank: Newbie

Joined: 10/18/2008
Posts: 8
Location: mexico
Guys i've managed to use the extension as a property in my document type but i need to have the control rendered in a published page.
i haven't found yet a way to use a data type rendered in a template or xslt.
any suggestions?
drobar
Posted: Friday, November 07, 2008 8:24:03 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,831
Location: MA, USA
If you're using AutoForm or Doc2Form macros it should render automatically, along with creating the form fields themselves. You can get either of these at www.codeplex.com/umbracoext. Very flexible and easy to use.

cheers,
doug.

MVP 2007-2009 - Percipient Studios
jdecaudin
Posted: Thursday, November 13, 2008 12:16:09 PM

Rank: Newbie

Joined: 3/19/2008
Posts: 21
Location: London
Hi rvalencia, Did you find a solution to your problem?

I'm trying to implement the Jeff Atwood .NET Captcha within a website run by Umbraco but using specific ASP.NET forms (not Doc2Form).

I guess you're trying to implement the same Captcha solution as I fall in the same url rewrite issue as you. The captcha control renders but the captcha image isn't rendered as the rewrite issue.

I also tried to use Per's Captcha package but I don't understand how to use it within a front-end form (as I said I don't use Doc2Form).

Any wizards around?

Thanks!
Julien


Solutions come from this space between the computer and the chair... stay optimistic :) - www.juliens.org
PeterD
Posted: Thursday, November 13, 2008 12:33:20 PM

Rank: Addict

Joined: 7/20/2006
Posts: 573
Location: NL
You can easily add the URL you want to bypass umbraco in your web.config.
Just add the path to your aspx-page in the umbracoReservedUrls in the web.config and umbraco will not try to find it.

HTH,
PeterD

Check out the calendar with recurrence at my blog.
jdecaudin
Posted: Thursday, November 13, 2008 12:36:01 PM

Rank: Newbie

Joined: 3/19/2008
Posts: 21
Location: London
Well, I've just made it working. Actually all you have to do is to add /CaptchaImage.aspx to the "umbracoReservedUrls" appSettings within your web.config as:

Code:
<add key="umbracoReservedUrls" value="/config/splashes/booting.aspx,/config/splashes/nonodes.aspx,/CaptchaImage.aspx"/>


Hope it helps!

Julien

Solutions come from this space between the computer and the chair... stay optimistic :) - www.juliens.org
jdecaudin
Posted: Thursday, November 13, 2008 12:37:29 PM

Rank: Newbie

Joined: 3/19/2008
Posts: 21
Location: London
Thanks Peter, I've just seen your reply and so, yes I agree, it's working!

Cheers
Julien

Solutions come from this space between the computer and the chair... stay optimistic :) - www.juliens.org
rvalencia
Posted: Friday, November 14, 2008 4:37:32 AM

Rank: Newbie

Joined: 10/18/2008
Posts: 8
Location: mexico
Peter & Julien "1" - captcha image "0"
it worked perfectly.
thanks
Ricardo
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.