Solved

How to  avoid evil-minded form replies

Posted on 2014-03-24
8
195 Views
Last Modified: 2014-03-25
I have got a from where people can apply for membership in a club. Everyday I receive applications from sort of evil-minded people like
first name: WcrLMrJnxLwOl
family name: pJFxPjSDRprMN
address: TJnxLowhiGDdwZiywPr
The responses don't make sense, not even in my native language.
Is there a way to filter so only seemingly sensible replies go through? Sensible values are western European names.
I have tried jQuery validator:
<script>
jQuery.validator.addMethod("lettersonly", function(value, element)
{
	return this.optional(element) || /^[A-ZÅÖÄa-zåäö-]+$/i.test(value);
},
"Endast bokstäver");
$().ready(function() {
	// validate signup form on keyup and submit
	$("#signupForm").validate({
		rules: {
			fornamn: {required:true,lettersonly:true},
			efternamn: {required:true,lettersonly:true},
			adress: "required",
			postnr: {required:true,number:true},
			ort: {required:true,lettersonly:true},
			telnr: {required:true,number:true},
			mailadress: {required: true,email: true},
			stadgar: "required"
		},
		messages: {
			postnr: "&nbsp;&nbsp;<span style=\"color:#800000;\">Ange siffror utan mellanslag</span>",
			telnr: "&nbsp;&nbsp;<span style=\"color:#800000;\">Ange siffror utan mellanslag</span>",
			mailadress: "&nbsp;&nbsp;<span style=\"color:#800000;\">Glöm inte ange din e-postadress!</span>",
			stadgar: "&nbsp;&nbsp;<span style=\"color:#800000;\">Läs stadgarna och godkänn dem</span>&nbsp;"
		}
	});
});
</script>

Open in new window

but the configuration I use doesn't stop people from sending me garbage.
Please help!
0
Comment
Question by:lericson
  • 4
  • 2
8 Comments
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
Comment Utility
Those look like automated attempts. Do you use Captcha or similar to verify the people applying are actual people?
0
 

Author Comment

by:lericson
Comment Utility
Dan,
Thanks for your reply.
No I am not using Captcha. I will.
I'll accept this answer and try captcha. If the garbage is of other oriigin, I'll return.
For now, thanks!
0
 
LVL 34

Expert Comment

by:Dan Craciun
Comment Utility
Glad I could help!

FWIW, I am familiar with those types of random submits and have been able to get rid of them using Captcha. A human won't bother typing in small and caps char.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:lericson
Comment Utility
Trust you!

Am working on it.
0
 

Author Comment

by:lericson
Comment Utility
??
0
 

Author Comment

by:lericson
Comment Utility
Thanks, padas!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now