Welcome to MSDN Blogs Sign in | Join | Help

Pranab Paul's Blog - SharePoint 2007 (MOSS/WSS 3.0) Development Tips

------------------------------------------Web Parts, Workflow, InfoPath Form Services, Features, Site Definition, Event Receivers, Excel Services, Business Data Catalog (BDC), Search

News

SharePoint 2007 (MOOS/WSS) - Custom CAPTCHA (Antispam) Field

I saw a nice post in CodeProject (http://www.codeproject.com/KB/aspnet/CaptchaImage.aspx) regarding CAPTCHA image control. I used the same code to create a Custom Field that will work like a CAPTCHA field for SharePoint. I tested it with Custom List and Blog Post suceessfully. You need to enable the session in the Web.Config file using enableSessionState="true" as it depends heavily on session. Here is how it looks like:

captcha 

Here is the screenshot of the Solution Explorer:

soexplr

You can download the WSP file and the project in a zip file from here.

Posted: Tuesday, December 09, 2008 10:48 PM by pranab
Attachment(s): CaptchaField.zip

Comments

Michael Greth MVP SharePoint Blog said:

Dezember HotFix Update The December cumulative update for WSS V3 and MOSS 2007 WSS Download http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=960010&kbln=en-us

# January 5, 2009 6:48 AM

Michael Greth MVP SharePoint Blog said:

Dezember HotFix Update The December cumulative update for WSS V3 and MOSS 2007 WSS Download http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=960010&kbln=en-us

# January 6, 2009 5:34 AM

Mirrored Blogs said:

Dezember HotFix Update The December cumulative update for WSS V3 and MOSS 2007 WSS Download http://support

# January 6, 2009 6:34 AM

SharePointPodcast.de said:

Direkter Download: SPPD-108-2009-01-08 Veranstaltungen SharePoint UserGroups Termine im Januar 2009 ppedv

# January 8, 2009 10:44 AM

Mirrored Blogs said:

Direkter Download: SPPD-108-2009-01-08 Veranstaltungen SharePoint UserGroups Termine im Januar 2009 ppedv

# January 8, 2009 11:14 AM

jackinthegreen said:

thanks for the nice solution. Question, is this something that could be used for a custom login application page in WSS 3.0 as well? thanks!

# March 12, 2009 1:36 PM

brad said:

I Supposed your solution assemble Sharepoint Form Validation http://www.sharepointboost.com/formvalidation.html, but their focus is different.

Good blog, though.

# March 18, 2009 11:15 PM

Anthony said:

Are there any security implications in implementing this?  Does this solution open any other vulnerabilities(i.e. through the GAC)?

# May 5, 2009 1:04 PM

pranab said:

Anthony,

This is just an sample and never tested for production. You need to modify and test it suitably if you want to use it in production.

# May 5, 2009 7:45 PM

Gunnar Peipman's ASP.NET blog said:

SharePoint Create your own customized usage report solution step by step SharePoint WebPart Property

# May 15, 2009 6:35 AM

Blog del CIIN said:

Como cada mes, desde hace ya un par de años, aquí os dejo el clásico recopilatorio

# June 1, 2009 10:26 AM

Miguel said:

The image is not showed in the form, I set the enableSessionState="true", but the form only shows an "X", could you pls help me?

# June 24, 2009 5:17 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker