Micro-Donations

If you are successfully making use of Mad Blanks for Joomla!, or if I have given you useful support, please donate $1 or more.

I pass on 10% of donations I receive through this site to the Joomla! project, so by supporting me, you're also supporting Joomla!


Thank you,
-Chris


The Starfish Story





Mad Blanks Support Forum
September 08, 2010, 11:01:09 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Click NOTIFY (above the Replies column) to receive email when there is a new post on a board.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Reverse Turing Test to help prevent form spam  (Read 4369 times)
chris
Administrator
Hero Member
*****
Posts: 1003


View Profile
« on: January 25, 2009, 07:06:42 PM »

Form spam (also known as comment spam) is the posting of unwanted form data and is often done in bulk by machine. Form spam prevention is a broad topic with numerous proposed solutions, including the increasingly wide use of CAPTCHAs, which are images with letters and numbers that a human must recognize and enter into a form field. The basic idea is that a human will be readily able to do so and a computer will not.

One way to help prevent form spam in Mad Blanks forms would be to add an additional question to the form that a spammer's computer program would not understand. The question could be a simple math problem or a question such as, "What is the fourth word in this sentence?"

The part that would prevent spam from the Mad Blanks form from being submitted to your site would be the use of server-side form validation. The correct answer to the question would have to match the regular expression attached to the corresponding field. If there was no match, the form would never be accepted by Mad Blanks.

If the question were, "What is 4 times 7?" the regular expression would be
Code:
/^28$/

If the question were, "What is the fourth word in this sentence?" the regular expression would be
Code:
/^fourth$/

or

Code:
/^fourth$/i
to make it case insensitive.

This is a basic idea of something that can help to reduce the number of spam submissions to your website.
Logged

I welcome micro-donations ($1-10) for answers that have helped you. Your small donation, taken together with others, means a great deal to me. Something is always better than nothing. I pass on 10% of donations I receive through this site to the Joomla! project, so by supporting me, you're also supporting Joomla!

Perhaps your time is short, you don't have the desire to learn all the ins and outs of Mad Blanks, or your requirements are complex. Would you like me to develop your Mad Blanks application? Get more information here.
jubert123
Newbie
*
Posts: 1


View Profile
« Reply #1 on: April 21, 2009, 11:20:09 PM »

                            Thank you for the tips in preventing spam message.

_________________
Indianapolis Web Design


Logged
jjmorga
Jr. Member
**
Posts: 16


View Profile
« Reply #2 on: June 22, 2009, 02:39:42 PM »

hello again Chris,

Good idea as porn bots have already started filling out my survey. I used the question:
                        What is the fifth word in this sentence?

my "Regular Expression" is as you suggested:    /^word$/i

for the surveys that get submitted correctly, how do I keep this question's answer, "word" from displaying on the front end?

thanks again,
JM
Logged
chris
Administrator
Hero Member
*****
Posts: 1003


View Profile
« Reply #3 on: June 25, 2009, 05:00:29 PM »

hello again Chris,

Good idea as porn bots have already started filling out my survey. I used the question:
                        What is the fifth word in this sentence?

my "Regular Expression" is as you suggested:    /^word$/i

for the surveys that get submitted correctly, how do I keep this question's answer, "word" from displaying on the front end?

thanks again,
JM

Well that's a good question, and a complete oversight on my part. I'll have to address that in the next release.

Oftentimes, people use the Score Scripting capability without displaying any records on the front end, and that is what I was thinking about when I programmed the validation feature.

As a workaround, you could use a component like ReReplacer to search for the term and remove it from Joomla's output. Perhaps place some distinctive text in the Text/HTML that comes before the field and the Text/HTML that comes after the field, and then search for and remove the whole combined string with ReReplacer.

You may need to enable the Mad Blanks configuration variable mbApplyContentPlugins for that strategy to work.
Logged

I welcome micro-donations ($1-10) for answers that have helped you. Your small donation, taken together with others, means a great deal to me. Something is always better than nothing. I pass on 10% of donations I receive through this site to the Joomla! project, so by supporting me, you're also supporting Joomla!

Perhaps your time is short, you don't have the desire to learn all the ins and outs of Mad Blanks, or your requirements are complex. Would you like me to develop your Mad Blanks application? Get more information here.
jjmorga
Jr. Member
**
Posts: 16


View Profile
« Reply #4 on: July 03, 2009, 11:44:40 AM »

mmmm....

well I took your "distinctive text in the Text/HTML that comes before the field and the Text/HTML that comes after the field" advice and just changed the text to white <font color="white"> on an already white background.

thanks  Grin

JM
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

 
  Design by augs-burg.de & go-vista.de
This is the official website for Mad Blanks, a component written for Joomla!™
Mad Blanks, when used with Joomla!™, will allow you to give a quiz on your site. You can also use it to give a survey. Quizzes and surveys are popular applications on the Internet, including personality quizzes, name generators, and assessments.
This website and the featured software products herein written for Joomla!™ are the property of Chris Hallett, an independent programmer. Chris does not represent Open Source Matters, Inc. nor the Joomla!™ project.

www.madblanks.org | Mad Blanks - Quiz, survey, assessment, calculator, general purpose form | Privacy Policy | ©2010 Chris Hallett