Community Server CAPTCHA control

In case it wasn't incredibly obvious, I run my web site on CommunityServer, an open source Community portal written in .NET.

While it's a great product, it doesn't have everything you might need, so that's where controls and addins come in. I wanted a way to prevent Comment SPAM in my blog, as well as false registrations. So I tried a couple of different solutions for adding CAPTCHA to CommunityServer, and didn't like any of them.

So like the old adage says, if you want something done right, do it yourself. Actually, it's more of a case of wanting something done to my liking, but anyway, the code here is based off of Dave Burkes Post, but encompased in a convienient, self-validating, templated, Server control.

Download Binary

Download Source

 


Posted May 11 2005, 05:39 PM by michael
Filed under:

Comments

Parick wrote re: Community Server CAPTCHA control
on 05-11-2005 8:55 PM
Hey I'm trying to set this up on my site and its not working. I don't see anything on my comment page after adding the code\html in the readme. Any ideas?
Patrick wrote re: Community Server CAPTCHA control
on 05-11-2005 8:59 PM
Hm... it does work with the registration page, but not the comments. Have you tried this with the LuxInterior Skin?
Patrick wrote re: Community Server CAPTCHA control
on 05-11-2005 9:15 PM
OK, never mind it works fine... I was logged in as UberAdmin. :-)
michael wrote re: Community Server CAPTCHA control
on 05-11-2005 9:16 PM
I did forget to mention that there's an attribute called VisibleToAuthenticated If that property is set to true, you will se the captchA when you're logged in. It defaults to false, since if the user is logged in, he's probably not spamming you.
Here's some stuff that I like. wrote Take that blog spammers.
on 06-26-2005 5:11 PM
Here's some stuff that I like. wrote Take that blog spammers.
on 06-26-2005 5:17 PM
oykica wrote re: Community Server CAPTCHA control
on 08-29-2005 3:37 PM
Very nice thank you Michael. Dead set easy to use mate.
Nix's Blog wrote MIGRATION DES BLOGS DE .TEXT A COMMUNITYSERVER 1.1
on 10-27-2005 7:20 PM
Les blogs CodeS-SourceS viennent d'être migré sur CommunityServer. (Peut-être avez-vous remarqué un "léger"...
Nick wrote re: Community Server CAPTCHA control
on 01-18-2006 10:24 AM
Great control. I made the following minor modification to the code for the Src property so it would allow you to use a path relative to the application root rather than having to use an absolute URL:

Public Property Src() As String
Get
Return _Src
End Get
Set(ByVal Value As String)
Dim AppPath As String = HttpContext.Current.Request.ApplicationPath

If (AppPath.EndsWith("/") = False) Then AppPath = AppPath & "/"
_Src = AppPath & Value
End Set
End Property

With this change if CaptchaImage.aspx resides in the application root you can just set the source property to "CaptchaImage.aspx". If you have it in a sub-directory under the application root, such as third-party, you can set the Src property to "third-party/CaptchaImage.aspx". This eliminates the need to modify the Src property as you move your code from your development environment to your final production site.

Nick McCollum
Principal Consultant
NuSoft Solutions
Nick McCollum wrote Captcha control for Community Server
on 01-18-2006 10:38 AM
James Geurts' Blog wrote Small update to the site
on 02-26-2006 11:03 PM
It has taken far too long for me to implement something to guard
against blog spam.  But lately,...
Robert Haken wrote re: Community Server CAPTCHA control
on 05-12-2006 1:48 AM
Nice implementation, thanx a lot!

BTW: Would it be possible, to auto-scroll the page down i case of invalid input the same way as the page is scrolled in case of valid entry (blog comment)?
Blog de Humpty wrote Community Server Captcha web control
on 05-13-2006 12:32 PM
I've finally released it, yay!  You can download it from my web site, http://timothyhumphrey.name/cs....
James Newton-King - Newtonblog wrote Preventing Spam With An ASP.NET CAPTCHA Control
on 05-29-2006 4:46 AM
A CAPTCHA image displays text that is readable to humans, but not to computers. The concept is useful...
James Newton-King wrote Preventing Spam With An ASP.NET CAPTCHA Control
on 08-18-2006 2:41 AM
The source and dll for the project can be downloaded here: CaptchaControl.zip About A CAPTCHA image displays
I Got Rhythm wrote Anonymous Comments Enabled
on 02-07-2007 3:24 PM
I didn't notice that when I set up the blog, anonymous comments were disabled! I just enabled them, and
Anders Norås' Blog wrote CAPTCHA
on 03-18-2007 8:15 AM
After moving my blog I have managed to hide from the dreaded spambots . But as I suspected when I posted
傑克誌 wrote 傑克誌開啟留言輸入檢查碼功能
on 10-29-2007 11:19 AM
之前由於站上經常有許多不明人士留一大堆垃圾留言,每次都要花上好一、兩個小時來清,真的很麻煩。
其實很早就有許多入口網站要求使用者在留言時,要輸入檢查碼,以避免垃圾訊息。但是由於我用的系統是 Community...
oyunlar wrote re: Community Server CAPTCHA control
on 12-30-2007 4:58 AM
OK, never mind it works fine
Imesh Gunaratne's Web Log wrote Stop Spam on Community Server Blog Comments
on 01-10-2008 7:05 AM
I had a great problem with spam in my blog post comments till yesterday. When I try to review the post
seo guide wrote re: Community Server CAPTCHA control
on 01-26-2008 1:54 AM
great addon
Oyun wrote re: Community Server CAPTCHA control
on 09-14-2008 4:58 AM

very thanks for you!!

kral oyun wrote re: Community Server CAPTCHA control
on 09-16-2008 5:27 AM

I had a great problem with spam in my blog post comments till yesterday. When I try to review the post

kral oyun wrote re: Community Server CAPTCHA control
on 09-16-2008 5:29 AM

I had a great problem with spam in my blog post comments till yesterday. When I try to review the post

oyunlar wrote re: Community Server CAPTCHA control
on 09-27-2008 1:55 AM

hello

oyunlar wrote re: Community Server CAPTCHA control
on 10-12-2008 8:14 AM

hello what is this

Oyun wrote re: Community Server CAPTCHA control
on 10-13-2008 6:52 PM

very thanks for you!! Oyuncular..

dizi izle wrote re: Community Server CAPTCHA control
on 10-14-2008 7:29 AM

thanks

dizi izle wrote re: Community Server CAPTCHA control
on 10-14-2008 7:30 AM

very thanks for you!!

oyun wrote re: Community Server CAPTCHA control
on 11-05-2008 1:40 AM

thanks very good

plastik cerrahi wrote re: Community Server CAPTCHA control
on 11-14-2008 5:55 AM

Leah is definitely the one who should win. Science Fiction Conventions? What?! She deserves a win, indeed!

Rick Minerich wrote re: Community Server CAPTCHA control
on 11-14-2008 9:26 AM

It seems like your download links are broken now.

Estetik wrote re: Community Server CAPTCHA control
on 11-16-2008 9:27 AM

I'm guessing the only way to do this in Javascript would be to use the onresize event, and then using the resizeTo method to attempt to keep the window at the size you want?

Göğüs Estetiği wrote re: Community Server CAPTCHA control
on 11-22-2008 10:13 PM

Botox Problemi nasıl çözüyor ? Kazayaklarının oluşmasındaki en baş sebep o bölgedeki kasların hareketidir. Botox bu çizgileri ve kırışıklıkları yapan

film izle wrote re: Community Server CAPTCHA control
on 11-28-2008 6:57 PM

thanks a lots of..

filim wrote re: Community Server CAPTCHA control
on 12-23-2008 3:40 PM

thank you very goood

savaş oyunları wrote re: Community Server CAPTCHA control
on 12-23-2008 6:16 PM

very nice job thanks

metisn wrote re: Community Server CAPTCHA control
on 12-26-2008 12:00 AM

thank you

oyun oyna wrote re: Community Server CAPTCHA control
on 12-29-2008 2:29 AM

thans

margo wrote re: Community Server CAPTCHA control
on 01-04-2009 4:33 AM

eHBGsC flHsdt83Nncfooi61t

oyun wrote re: Community Server CAPTCHA control
on 01-04-2009 7:40 PM

ı have followed your writing for a long time.really you have given very successful information.

North Cyprus Holiday wrote re: Community Server CAPTCHA control
on 01-10-2009 2:00 AM

I read your article.The things you have written sound very sincere and nice topics i am looking forward to its continuation.

oyunlar wrote re: Community Server CAPTCHA control
on 01-13-2009 2:10 PM

thanks for the this post

oyunlar wrote re: Community Server CAPTCHA control
on 01-14-2009 9:37 AM

thank for this post

Estetik wrote re: Community Server CAPTCHA control
on 01-16-2009 12:31 AM

thnaks for you, nice job.

Savaş Oyunları wrote re: Community Server CAPTCHA control
on 01-17-2009 9:05 AM

thank you admin

okey oyna wrote re: Community Server CAPTCHA control
on 01-18-2009 1:38 PM

thanks

resim wrote re: Community Server CAPTCHA control
on 01-21-2009 2:52 AM

Thanks!!!!

chat wrote re: Community Server CAPTCHA control
on 01-22-2009 2:32 PM

thanks

sohbet odaları wrote re: Community Server CAPTCHA control
on 01-24-2009 3:38 AM

sohbet

I Got Rhythm wrote Anonymous Comments Enabled
on 01-26-2009 1:45 PM

I didn't notice that when I set up the blog, anonymous comments were disabled! I just enabled them, and

okey wrote re: Community Server CAPTCHA control
on 01-28-2009 3:30 AM

thanks

Brain Cancer wrote re: Community Server CAPTCHA control
on 01-29-2009 1:13 PM

The informations are so lovely and so usefull so thank you very much. Be sure i will use all of them   keeping in my mind.Have a goog luck.

okey oyna wrote re: Community Server CAPTCHA control
on 02-02-2009 12:47 AM

thanks

Oyun wrote re: Community Server CAPTCHA control
on 02-02-2009 4:47 PM

you move your code from your development environment to your final production site.

okey oyna wrote re: Community Server CAPTCHA control
on 02-04-2009 1:54 PM

thanks

okey oyna wrote re: Community Server CAPTCHA control
on 02-13-2009 5:50 AM

thanks

okey oyna wrote re: Community Server CAPTCHA control
on 02-13-2009 5:51 AM

thanks

film izle wrote re: Community Server CAPTCHA control
on 02-14-2009 11:31 AM

thanks a lot

güzel sözler wrote re: Community Server CAPTCHA control
on 02-28-2009 4:56 PM

very nice job thanks

barry wrote re: Community Server CAPTCHA control
on 03-04-2009 12:52 PM

l5tVdi 8g74dlGaSnxCc96lsg4l

lig tv izle wrote re: Community Server CAPTCHA control
on 03-14-2009 6:18 PM

nice text thanks for all

Estetik wrote re: Community Server CAPTCHA control
on 03-17-2009 8:45 AM

Hola, soy de México, me encanta el nuevo proyecto, soy súper fan de XTC. Me gustaría saber como puedo conseguir algunos albumes. Lo amo Sr. Partridge!!

e okul wrote re: Community Server CAPTCHA control
on 03-17-2009 2:17 PM

I had a great problem with spam in my blog post comments till yesterday. When I try to review the post..

plastik cerrah wrote re: Community Server CAPTCHA control
on 03-24-2009 3:30 PM

Thank you very very good

film izle wrote re: Community Server CAPTCHA control
on 03-28-2009 8:46 PM

you move your code from your development environment to your final production site

dinleme sistemi wrote re: Community Server CAPTCHA control
on 03-31-2009 4:23 PM

Great blog ..Thanks

telefon dinleme wrote re: Community Server CAPTCHA control
on 03-31-2009 4:24 PM

Cool website

aşk şiirleri wrote re: Community Server CAPTCHA control
on 04-01-2009 3:37 AM

thanks

aşk şiirleri wrote re: Community Server CAPTCHA control
on 04-10-2009 10:21 AM

thankss

sikiş oyunları wrote re: Community Server CAPTCHA control
on 04-10-2009 4:33 PM

Thank you so much, worked out pretty well for me!

araba oyunları wrote re: Community Server CAPTCHA control
on 04-10-2009 4:36 PM

Thank you so much, worked out pretty well for me!

oyunlar1 wrote re: Community Server CAPTCHA control
on 04-10-2009 4:45 PM

Great blog ..Thanks

dizi izle wrote re: Community Server CAPTCHA control
on 04-20-2009 2:31 PM

thanks my friend

radyo dinle wrote re: Community Server CAPTCHA control
on 04-21-2009 11:24 AM

thanks

Hava durumu wrote re: Community Server CAPTCHA control
on 04-21-2009 4:08 PM

thanks for you.!

lig tv izle wrote re: Community Server CAPTCHA control
on 04-29-2009 12:11 PM

nice text, thanks for all

film izle wrote re: Community Server CAPTCHA control
on 05-01-2009 4:16 PM

nice text thanks for all

+18 film izle wrote re: Community Server CAPTCHA control
on 05-12-2009 2:52 AM

nice text thanks for all

sohbet wrote re: Community Server CAPTCHA control
on 05-13-2009 4:55 PM

very nice admin

film izle wrote re: Community Server CAPTCHA control
on 05-13-2009 5:34 PM

thanks so much very nice.

+18 film izle wrote re: Community Server CAPTCHA control
on 05-15-2009 2:38 AM

wow thanks

Okey wrote re: Community Server CAPTCHA control
on 05-18-2009 12:29 PM

thanks a lot..

gömlek wrote re: Community Server CAPTCHA control
on 05-29-2009 1:21 AM

great thank you

Rick Reszler wrote re: Community Server CAPTCHA control
on 06-06-2009 1:27 PM

Mike the download is not working?  Does this still work with CS 2008.5 SP2

CASUS TELEFON wrote re: Community Server CAPTCHA control
on 06-08-2009 5:23 AM

casus telefon, spy phone , telefon dinleme yazılımı casus cep telefonları

Okey wrote re: Community Server CAPTCHA control
on 06-08-2009 7:56 AM

Thank you very good

film izle wrote re: Community Server CAPTCHA control
on 06-10-2009 10:21 PM

film izle,online film izle,filim izle,film seyret,hemen izle

Okey Oyna wrote re: Community Server CAPTCHA control
on 06-12-2009 6:51 AM

was a very nice article thank you I'd put my archive

bayrak wrote re: Community Server CAPTCHA control
on 06-18-2009 4:36 AM

thanks

giydirme oyunları wrote re: Community Server CAPTCHA control
on 06-25-2009 11:06 AM

Congrulations  for this nice  web design..Usefull..

tolga wrote re: Community Server CAPTCHA control
on 07-02-2009 10:53 AM

Thank you

Add a Comment

(required)  
(optional)
(required)  
Remember Me?