logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 03-04-2014, 07:35 PM   #1
mustangdesigner
 
Join Date: Feb 2014
Posts: 17
Default captcha security

Any suggestions as to the best way to add captcha security to my basic PHP contact form? I need something very basic as I have limited experience in code.
mustangdesigner is offline   Reply With Quote
Old 03-05-2014, 02:33 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

there are afew captcha scripts around, recaptcha seems popular.
another way is to add a honey trap to work against robots. This is mentioned here so please do a search for it.
I add it to my scripts now as a secondary method. in its simplest form add a hidden field in your form. in the following example called agree
Code:
<input type="hidden" name="agree" value="" />
then in your mail handling script, and this can be at the start if you wish

Code:
if(!empty($_POST['agree'])) 
{ 
  header('Location: index.php');
  exit; 
}
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:38 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com