The Church Media Community
Equipping You to Communicate Effectively
support CMN & share a
library of 19K+ images, videos, etc
Go Pro!
 
Go Back   The Church Media Community > Website Design > Website Coding Discussions
Forgot Password?
                          Register

Website Coding Discussions PHP, MySQL, Java, Javascript, ASP, etc.

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old Tuesday, February 3rd, 2009, 12:03 PM
Church Media Regular

 
 Join Date: Oct 2008 
 Last Online: Monday, June 6th, 2011 
Secure contact form

A friend helped me add a few things to stop the empty contact messages. But sometimes I still receive them. Should I be concerned?
Reply With Quote Start a New Topic From This Comment
  #2 (permalink)  
Old Tuesday, February 3rd, 2009, 12:08 PM
Tim Eason - ChurchMedia.net Community Founder 1999-2008
Spectator

 
Have you tried adding reCAPTCHA ( http://recaptcha.net )? A lot of companies use it -- even the big guys. Some verification methods are not foolproof, but reCAPTCHA does a great job. And it's free.
Reply With Quote Start a New Topic From This Comment
  #3 (permalink)  
Old Monday, August 31st, 2009, 07:56 PM
New Church Media Member

 
 Join Date: Jun 2009 
 Last Online: Saturday, March 9th, 2013 
Would definitely need this
Reply With Quote Start a New Topic From This Comment
  #4 (permalink)  
Old Monday, August 31st, 2009, 08:05 PM
greg4god's Avatar
Web Geek

 
 Join Date: Jun 2007 
 Last Online: Yesterday 
At work (web development company) our first step is a honeypot, i think it is called.

Basically, you have one field for the form, named something common like "txtURL", however set styles for it to display off the left side of the screen, (and for accessibility reasons, (ie, text readers), give it a label that says "Leave this field blank")

Now, when the form is processed, do not send anything that has something in this field, as then it is almost always a spam bot filling it out, as except for those browsing with styles shut off, or using a text reader, won't even know it is there, and even then, they are told not to fill it in.

This is a good first line of defense, and solves most of the problems on our sites. Then if it is still a problem do the recaptcha.

-Greg
Reply With Quote Start a New Topic From This Comment
  #5 (permalink)  
Old Tuesday, September 1st, 2009, 06:39 AM
Church Media Regular

 
 Join Date: Oct 2008 
 Last Online: Monday, June 6th, 2011 
I have the form set up that the fields must have something typed in them for the contact form to process. I haven't received any goofy emails with rubbish in the fields. The problem is on the next page. Once the email is sent the user is sent to a "Thank you for contacting us" page. Its the sendmail.php If you were to go there and hit refresh I'll receive a blank contact form.

I spoke with a web manager for a church in my area. He said to add

if (isset($_POST['message']))

in the beginning and

// end if isset ?>

at the end

It seems to have worked.

I starts school the 7th to finally learn all this stuff. =)
__________________
"What saves a man is to take a step. Then another step" - C. S. Lewis
Reply With Quote Start a New Topic From This Comment
  #6 (permalink)  
Old Tuesday, September 1st, 2009, 10:00 AM
waynehoskins's Avatar
The Crazy Analog Guy

 
 Join Date: May 2006 
 Last Online: Yesterday 
Yep, the empty field that must remain empty has done wonders for stopping the spam we get through our contact form at work. Between that and common sense validations on things like email address (to prevent open relay), it's gone down to next to nothing.

Another handy trick I've found is to, on a receiving page, do all the mechanics before printing any of the page, and then redirect the user somewhere else -- a thankyou page, the same page without a post array (if it's something like a client detail page that shows you stuff), something. Then the user can press Refresh to his heart's content without triggering any unintended actions.
Reply With Quote Start a New Topic From This Comment
Reply

  The Church Media Community > Website Design > Website Coding Discussions

Tags
contact form, empty

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:



Add to Google


Register Now for FREE!
Our records show you have not yet registered to our community. To sign up for your FREE account INSTANTLY fill out the form below!

Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
Agree to forum rules 


All times are GMT -6. The time now is 03:17 AM.

   
 
© 1995-2008, ChurchMedia™, ChurchMedia LLC

SEO by vBSEO 3.1.0