 |

10-04-2007, 03:31 PM
|
 |
WebProWorld New Member
|
|
Join Date: Sep 2007
Posts: 10
|
|
Contact Us Forms being used for Spams
Hi All
We have been getting spammed with numerous emails via our online forms. Is there a way to avoid these spammers using our forms?
Audrey Paulus
|

10-04-2007, 03:45 PM
|
 |
Moderator
|
|
Join Date: Jun 2006
Location: United States
Posts: 1,648
|
|
Re: Contact Us Forms being used for Spams
Input validation, and using a captcha are probably the best ways to prevent bots from successfully sending these forms.
|

10-07-2007, 10:43 AM
|
|
WebProWorld Veteran
|
|
Join Date: Jul 2003
Location: Spain
Posts: 327
|
|
Re: Contact Us Forms being used for Spams
I have a PHP system which uses 2 pages, the form, and the page2 page, which actually sends the data
I use a timecheck - the time between entering the form, and posting, must be reasonable.
Also, I create a random value, which is passed via session AND post, and if the two don't match, then the email gets sent to a different address, for checking when I can be bothered. It has only dropped one email into the trash in error, and that is because I had a form on the site that I had forgotten about.
Personally, I find captcha annoying to use, so I don't want to inflict it on my visitors.
|

01-23-2008, 02:39 PM
|
 |
WebProWorld New Member
|
|
Join Date: Sep 2007
Posts: 10
|
|
Re: Contact Us Forms being used for Spams
If I use the captcha, do I need a php or asp system?
|

01-24-2008, 01:15 PM
|
|
WebProWorld Pro
|
|
Join Date: Jan 2008
Posts: 254
|
|
Re: Contact Us Forms being used for Spams
Quote:
Originally Posted by ajpaulus65
If I use the captcha, do I need a php or asp system?
|
If you use captcha you could rely on a javascript solution, instead of using a Server Side language. But, relying on client-side solutions to filter data and prevent spam is never a good idea.
If you are using mail forms on your website the chances are high that you are already using a Server Side language like PHP, ASP, etc.
The key to good form processing is to never, ever, ever, under any circumstances, trust user data input. Filter the data for acceptable content and to prevent the form from being hijacked to send spam to other people. If you follow some sound security priciples the odds are you will likely be ok. CAPTCHA is only one tool and it can be circumvented using a variety of methods.
__________________
I use Country IP Blocks as added security for my networks and servers.
Last edited by Tech Manager : 01-24-2008 at 01:16 PM.
Reason: typo and clarification
|

02-02-2008, 12:37 PM
|
|
WebProWorld Veteran
|
|
Join Date: Jul 2003
Location: Bristol, UK
Posts: 965
|
|
Re: Contact Us Forms being used for Spams
A client of mine was getting spammed via the online contact us form but simply adding captcha stopped it. Quite a lot of spam is just spider like programs crawling the net and posting their rubbish in any input or textarea they find and submitting it. I have seen cases in my forum logs where they have posted spam in the search box :-/
the contact form I wrote for them is a single PHP file with javascript and serverside input validation and uses captcha along with sessions.
|

02-02-2008, 05:22 PM
|
|
WebProWorld Pro
|
|
Join Date: Jan 2008
Posts: 254
|
|
Re: Contact Us Forms being used for Spams
Captcha helps but it is not perfect. It really should be used in combination with some additional server side strategies.
__________________
I use Country IP Blocks as added security for my networks and servers.
|

02-03-2008, 02:22 AM
|
|
WebProWorld Veteran
|
|
Join Date: Jul 2003
Location: Bristol, UK
Posts: 965
|
|
Re: Contact Us Forms being used for Spams
I should of also added that they have to wait 10 seconds before the form is accepted and the form has a limited lifespan of seven minutes in which it must be submitted or a new form requested. Most of which I just lifted from Lazarus Guestbook except it doesn't use sessions.
|

02-03-2008, 07:47 AM
|
|
WebProWorld Pro
|
|
Join Date: Jan 2008
Posts: 254
|
|
Re: Contact Us Forms being used for Spams
Sounds like you are n the right track.
__________________
I use Country IP Blocks as added security for my networks and servers.
|

02-03-2008, 07:52 AM
|
|
WebProWorld Veteran
|
|
Join Date: Jul 2003
Location: Bristol, UK
Posts: 965
|
|
Re: Contact Us Forms being used for Spams
I should hope so as I've been working on Lazarus for three years now and anti spam is one of the main objectives. To my knowledge Lazarus users receive 0 spam except that which is manually posted and there's little you can do about idiots like that.
Off topic I know but just giving some background information about me.
|

02-03-2008, 08:10 AM
|
|
WebProWorld Pro
|
|
Join Date: Jan 2008
Posts: 254
|
|
Re: Contact Us Forms being used for Spams
I've been working on improved anti-spam methods for years (a never ending battle). My web forms get zero automated spam...Manually added spam is difficult to control, but, all in all, not a big problem.
Now what I would like to see is the ISP's getting more proactive in dealing with spammers on their networks.
__________________
I use Country IP Blocks as added security for my networks and servers.
|

02-03-2008, 10:53 AM
|
|
WebProWorld Veteran
|
|
Join Date: Jul 2003
Location: Bristol, UK
Posts: 965
|
|
Re: Contact Us Forms being used for Spams
Tell me about it. Occasionally I go through my logs and report attempted spamming to either the isp or the host since a lot of automated spam comes from abused servers and not home PCs. Same thing applies to a sudden no stop attempt at running exploits against my site. The main problem comes from companies like Layeredtech which own a huge range of IP addresses and dont care what their customers do with their servers. I have blocked all layeredtech IP addresses and about 50-70% of my error log is the server denying them access.
And what's with WPW not sending me notification emails x-(
|

02-10-2008, 03:12 PM
|
|
WebProWorld New Member
|
|
Join Date: Dec 2007
Posts: 14
|
|
Re: Contact Us Forms being used for Spams
The majority of your spam posts will be an attempt to post urls on your pages... preg_match or strpos the incoming information...
look for phpBB code and html anchor tags...
That will drop your spma posts significantly without having to resort to captcha... if you go with captcha... be aware that you should design your own or at the very least go with a good one... people are determined to break the captcha mechanism... look at how much harder Google captcha's have recently become...
be aware that blocking ips and proxies will essentially at one point or another block access to legitimate users...
Breaking a Visual CAPTCHA
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|