Reply
security to email contact form, how???
Old 05-11-2008, 10:06 AM security to email contact form, how???
CircleOfLinks's Avatar
Extreme Talker

Posts: 212
Name: Danny
Location: Sydney
Hey guys.

I need help adding a security code to my email contact page. I've had the conact us form active for 3-4 days now and ive been recieving 'junk' so I want to add the security code where uses type in the code in the contact form.

I'm not very experianced in coding and they person who normally does it wont be back for about another week or so, so if there is a simple way of implementing it on the site i would really appreciate it.

The current contact page can be seen at here and i just want to add the security code on there towards the bottom of the form, so if possible please send me the code or tell me where i can get it from.

thanks heaps in advanced.
CircleOfLinks is offline
Reply With Quote
View Public Profile Visit CircleOfLinks's homepage!
 
When You Register, These Ads Go Away!
Old 05-11-2008, 01:26 PM Re: security to email contact form, how???
bakerc's Avatar
Penguins on toast

Posts: 1,816
Name: carl
Location: UK
Hi

Not brilliant at this sort of thing myself but you need a CAPTCHA, the link below should sort you out.

http://www.captcha.net/
__________________
adverse credit mortgage specialist, bad credit mortgage resources, credit repair and debt consolidation | debt management mortgage solutions.
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 05-11-2008, 04:40 PM Re: security to email contact form, how???
scutari's Avatar
Skilled Talker

Posts: 95
Name: Indrit
good sharing, thanks bakerc
scutari is offline
Reply With Quote
View Public Profile
 
Old 05-11-2008, 05:54 PM Re: security to email contact form, how???
CircleOfLinks's Avatar
Extreme Talker

Posts: 212
Name: Danny
Location: Sydney
thanks heaps mate...

will look into it after work.

cheeers
CircleOfLinks is offline
Reply With Quote
View Public Profile Visit CircleOfLinks's homepage!
 
Old 05-12-2008, 07:44 AM Re: security to email contact form, how???
CircleOfLinks's Avatar
Extreme Talker

Posts: 212
Name: Danny
Location: Sydney
please if any1 can help... not sure what ive done wrong but ive followed the instructions of this page http://www.white-hat-web-design.co.u...hp-captcha.php and i cant get it to work... if you look at the source code on www.swiftproductions.com.au/mailer2.htm (just a temp page to show you guys the code) this is the page it normally goes to www.swiftproductions.com.au/mailer.php after you click the submit button but as you can see it wont even ask for the security code... please help!!!

sorry forgot to mention that im talking about the contact us page on my site

Last edited by CircleOfLinks : 05-12-2008 at 09:18 AM.
CircleOfLinks is offline
Reply With Quote
View Public Profile Visit CircleOfLinks's homepage!
 
Old 05-13-2008, 08:37 AM Re: security to email contact form, how???
CircleOfLinks's Avatar
Extreme Talker

Posts: 212
Name: Danny
Location: Sydney
hey guys please if you can help me with this i would really appreciate it, so far my contact page is made up of 3 pages. See below for the source code i have used.

you can see the source codes of all 3 pages. conact_us.html , mailer.php, and capturesecurityimage.php here

The problem im having is that the form works fine but i'm trying to add a capture to it. I have followed instructions given to me from http://www.white-hat-web-design.co.u...hp-captcha.php

Please I need the fixed up asap so if you can help me i would really really appreciate it

If you go to the site and try and do a test message you keep getting the same error message saying that the code is in-correct. The security code isn't showing up either.

If you know a simpler way or have a differnt script or something I can use I would really appreciate it.

thanks in advanced

Last edited by CircleOfLinks : 05-13-2008 at 08:41 AM.
CircleOfLinks is offline
Reply With Quote
View Public Profile Visit CircleOfLinks's homepage!
 
Old 05-13-2008, 03:19 PM Re: security to email contact form, how???
rogem002's Avatar
Webmaster Talker

Posts: 611
Name: Mike
Location: United Kingdom
*Looks at your site*

Your email is shown in the code, that could be the problem
__________________
PHP Code:
Add_Talkupation('rogem002'); // Because sharing is awesome! 
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 05-13-2008, 04:19 PM Re: security to email contact form, how???
Skilled Talker

Posts: 59
Name: Dan
The problem with captcha's is that as better bots get written that can "read" captcha's the captcha images themselves end up getting more and more difficult for legitimate users to read. This is a major accessibility issue. Also if you use widely available captchas then the chances are enough other sites are also using them to make it worthwhile developing scripts to crack them.

I've got pretty average eyesight and above average skills but I find some captchas quite irritating so for many people they can be a right old pain in the 'arris.

There is a secure and accessible form I've seen http://green-beast.com/blog/?page_id=71 but when I went through it I decided it was overkill for any purpose I've ever needed, I did nick some aspects of its security model though.

My method isn't perfect but it does fluster the common types of bot enough to reduce the type of crap that can come through it which tend to either replay the form or resubmit the post data to the form responder.

1) When a form is legitimately submitted create a random hash in a database based on the submit time and any other random process you want to apply to it, this is served to the form as a hidden field and checked against the database during form submit, if it's valid then the hash is deleted, a new one written to the database and the form submitted otherwise the input is ignored. Depending on how busy your form is you might need to alter how many times you honour each hash. This ensures that the form has been completed in the UI meaning that bots can't just keep submitting the POST to the responder.

2) Replay bots tend to target a specific form and complete it as if a user had. A simple time out on the form of a few seconds before submitting. Not enough to irritate a legit user but prevents bots from quickly running known exploits against the form. If someone is specifically targeting your form this won't fox them for long but most "hackers" are opportunists who tend to target weak sites that bots find rather than specifically go for a target site.

3) Include at least one combo box on the form with a default that won't allow the form to submit (e.g. "<select category>")

4) Clean and validate all input.

5) Only allow the form response file to process POST on a referral from your server.

6) Track and time limit multiple submissions from IP addresses.

7) If your code triggers a bot alert give a bogus "thank you for your message" type response, this will prevent the bot owners from investigating your code too closely manually and finding a workaround.

8) Turn off autocomplete on fields to slow down anyone who might want to manually plug data into your form.

Using these steps you end up with a form that doesn't throw up any obstacles to legit users but would require custom scripting specific to your site to exploit, most people don't have the skills or patience to bother just to send you ringtone offers and pen1s enlargement pills.

Oh yeah and don't show your e-mail address in the code
Monkey Do is offline
Reply With Quote
View Public Profile
 
Old 05-14-2008, 12:35 AM Re: security to email contact form, how???
CircleOfLinks's Avatar
Extreme Talker

Posts: 212
Name: Danny
Location: Sydney
hey guys its kinda sorted out, im only have one small problem. It works fine in I.E but as soon as you try it with FF it won't work. You can 'submit' the message without enterting a security code. Any one know why??
CircleOfLinks is offline
Reply With Quote
View Public Profile Visit CircleOfLinks's homepage!
 
Old 05-14-2008, 06:08 AM Re: security to email contact form, how???
vivekar's Avatar
Webmaster Talker

Posts: 539
Are you using a static image?

You can also try some javascript math captcha ( How much is 2+2 ?) if you are unable to process dynamic images.

http://www.google.com/search?q=math+text+captcha+-image
__________________
| Submit URL at All the Websites Directory
| Get Certified in Web Design
vivekar is offline
Reply With Quote
View Public Profile Visit vivekar's homepage!
 
Old 05-16-2008, 04:53 AM Re: security to email contact form, how???
CircleOfLinks's Avatar
Extreme Talker

Posts: 212
Name: Danny
Location: Sydney
nah its not static it changed everytime u visit the page
CircleOfLinks is offline
Reply With Quote
View Public Profile Visit CircleOfLinks's homepage!
 
Reply     « Reply to security to email contact form, how???
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.17240 seconds with 12 queries