Captcha Control


posted by Dmitry
05-27-2009

File size: 9.8kB
Captcha Control
Filed under: ,

This is simple free Captcha control for Community Server 2008.5 we decided to share with dev community. Package consist of dll and aspx file.

Just unzip attachment into your /Web directory. We also included an example of createuser.aspx (see it under hawaii). Don't forget to put file \Themes\hawaii\createuser.aspx into your Theme directory if you use some custom theme.

Comments

akent wrote re: Captcha Control
on 05-27-2009 6:21 AM

Thank you very much. It works perfectly and I like how clean it is.

safunes wrote re: Captcha Control
on 07-01-2009 3:42 AM

thank  this is a very nice control, in getting a xss atack and i hope this control can help me.

seandr wrote re: Captcha Control
on 07-18-2009 12:42 AM

Thanks for the control. Would it be possible to get more detailed instructions for adding the control to community server?

I've copied the CaptchaImage.aspx file to my root folder, and the dll to the bin but no captcha shows up when I create a new account. I'm not sure what to do with createuser.aspx. I tried copying it over the existing CreateUser.aspx file, and still nothing.

I'm using CS 2008.5, btw.

Thanks.

shadowrift wrote re: Captcha Control
on 07-20-2009 6:26 PM

Thanks, this works admirably.  

Seandr, make sure you are replacing the correct createuser.aspx file from the right User/Theme folder, and that you put in the absolute path to the CaptchaImage.aspx file from within createuser.aspx.

seandr wrote re: Captcha Control
on 07-20-2009 8:24 PM

I appreciate the reply, shadowrift.

There is only one CreateUser.aspx file in my installation, and it is at  ./User/CreateUser.aspx. I've tried replacing it but there is no effect.

There is also ./Themes/default/Skins/Skin-CreateUser.ascx, but that doesn't seem right either. Any ideas?

Thanks.

Dmitry wrote re: Captcha Control
on 07-21-2009 8:06 PM

seandr, what version of Community Server you got? for me it looks like CS 2007 (with default theme).

I'm afraid CreateUser.aspx which comes with CAPTCHA control will not work. You'll need to take a look at file and copy/paste only CAPTCHA control code to your CreateUser file.

jkanev wrote re: Captcha Control
on 07-30-2009 7:15 PM

I am also having issues implementing this CAPTCHA. I have copied all of the CAPTCHA control code to my custom theme's createuser.aspx page, but I am still not getting a CAPTCHA image to appear. You can view the page at the website listed.

EntropySJ wrote re: Captcha Control
on 07-30-2009 8:53 PM

Anyone else getting an issue in firefox / safari where the captcha image will load, then half a second later it will change without refreshing the captcha image on the page?  It works without issue in IE only.

jkanev wrote re: Captcha Control
on 07-30-2009 11:04 PM

I took down the CAPTCHA temporarily. Our users could not register because the image is not showing up.

Dmitry wrote re: Captcha Control
on 07-30-2009 11:11 PM

Guys, CAPTCHA control do not have dependencies on any Community Server code. If it doesn't work for you it means you have something misconfigured. If you can't see CAPTCHA image - check whether you put CaptchaImage.aspx into your \Web folder where you have communityserver.config, global.asa, etc.

If your createuser form doesn't show it under different browsers - double check your aspx file, compare it to the one in zip archive with captcha control.

Good luck!

jkanev wrote re: Captcha Control
on 07-31-2009 12:49 AM

Dmitry, I have all of the files in their correct location. The registration form is validating, and the image box appears. However, no image. Thanks for creating the control, and any ideas would be beneficial.

Dmitry wrote re: Captcha Control
on 07-31-2009 12:56 AM

What happens when you open your_host/captchaimage.aspx?">your_host/captchaimage.aspx

You need to open http://your_host in another window before you try your_host/captchaimage.aspx, don't need to be logged in, because captchaimage.aspx needs Session Cookie.

jkanev wrote re: Captcha Control
on 07-31-2009 1:20 AM

I get the non-descript "Sorry, there was a problem with your last request" error.

sergeb wrote re: Captcha Control
on 08-17-2009 10:45 PM

Dmitry, I'm getting "Object reference not set to an instance of an object." inside of your DLL. How can I troubleshoot with no source code for the DLL? Thanks!

sergeb wrote re: Captcha Control
on 08-17-2009 10:52 PM

Apparently it has somethign to do with the first line in your constructor which tries to read Cookies["CookieName"].Value(replaced the actualt cookie name with "CookieName") and the value being null. Any ideas?

steveshook wrote re: Captcha Control
on 11-13-2009 6:36 PM

Just added this & it works amazingly well! Thanks so much for this... :)

steveshook wrote re: Captcha Control
on 11-13-2009 6:43 PM

Is there an error message that can be placed in Resources.xml if a user types in the Captcha string incorrectly? If so, what would the string look like? Thanks!

datvtran wrote re: Captcha Control
on 11-19-2009 12:00 AM

Thank you..  Awesome work.  I really need this.

drewdown wrote re: Captcha Control
on 12-08-2009 5:47 PM

Has anyone got this working in 2007?

prb238 wrote re: Captcha Control
on 12-20-2009 6:07 AM

Wow - this is awesome.  I've been getting hundreds of bogus users registering on my site every week.  I installed the Captcha control and it works great!

pathfinder wrote re: Captcha Control
on 01-27-2010 6:57 PM

I got the same-no image appeared((( although it works somehow!

using CS2008.5sp1 (Build 31106.3070)

regarding coockie - it doesnt work even in clear IE- still no image  (i used Opera and Firefox only, IE is really clear)

pls help

sashaeve wrote re: Captcha Control
on 03-02-2010 12:00 AM

Does your captcha work for blog posts?