943,832 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1270
  • PHP RSS
Nov 6th, 2008
0

anti spam contact form

Expand Post »
I've used a generic flash/php contact form on a new site but the webhost has told me it's open to spamming. Is there any way round this? Is there a PHP script that is safe to use?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bigginge is offline Offline
4 posts
since Nov 2008
Nov 6th, 2008
0

Re: anti spam contact form

look into a captcha system. it does a pretty good job at keeping spam out. there is not a perfect solution, but it works.
Last edited by kkeith29; Nov 6th, 2008 at 5:56 pm.
Reputation Points: 235
Solved Threads: 193
Nearly a Posting Virtuoso
kkeith29 is offline Offline
1,315 posts
since Jun 2007
Nov 6th, 2008
0

Re: anti spam contact form

Recaptcha is good, free, and easy to implement - plus you're helping to digitize books at the same time.
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007
Nov 8th, 2008
0

Re: anti spam contact form

If you want to keep your old script then try adding a visual validator where you enter the numbers/letters you see in a picture into a field to submit the form. All you need is to make a bunch of pictures and make one at random display and the value that the user needs to place in could be the file name. But the filename would need to be a hash and to compare the validator field, the validator field would need to be hashed to match the filename. From what I have read that is how some of the latest validators do it.
Sponsor
Featured Poster
Reputation Points: 410
Solved Threads: 258
Occupation: Genius
cwarn23 is offline Offline
3,004 posts
since Sep 2007
Nov 11th, 2008
0

Re: anti spam contact form

Click to Expand / Collapse  Quote originally posted by bigginge ...
I've used a generic flash/php contact form on a new site but the webhost has told me it's open to spamming. Is there any way round this? Is there a PHP script that is safe to use?
You should first ask how specifically it is open to spam.
Is it being used as an open relay for mail (has mail header injection vulnerability) or is it just being abused by bots? etc.

Normally a contact form means it sends just to a given address or given set of addresses. But if there are mail header injection vulnerabilities on the PHP code that sends the email, then the email can be sent to any email address anonymously. This is worse then simple spam bots sending you lots of mail.
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: send mail
Next Thread in PHP Forum Timeline: problem with count and displaying result





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC