iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Internet Security Discussion Forum This forum is for the discussion of security related issues. If you find a new Phishing scheme, spyware, virus or malicious site - let us know about it. If any of the above found you... here's where you ask for help.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-04-2007, 04:31 PM
ajpaulus65's Avatar
WebProWorld New Member
 
Join Date: Sep 2007
Posts: 18
ajpaulus65 RepRank 0
Post 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
Reply With Quote
  #2 (permalink)  
Old 10-04-2007, 04:45 PM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,661
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default 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.
__________________
The best way to learn anything, is to question everything.
Reply With Quote
  #3 (permalink)  
Old 10-07-2007, 11:43 AM
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Spain
Posts: 343
computergenius RepRank 1
Default 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.
__________________
Pete Clark
Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com
Reply With Quote
  #4 (permalink)  
Old 01-23-2008, 03:39 PM
ajpaulus65's Avatar
WebProWorld New Member
 
Join Date: Sep 2007
Posts: 18
ajpaulus65 RepRank 0
Default Re: Contact Us Forms being used for Spams

If I use the captcha, do I need a php or asp system?
Reply With Quote
  #5 (permalink)  
Old 01-24-2008, 02:15 PM
WebProWorld Pro
 
Join Date: Jan 2008
Posts: 294
Tech Manager RepRank 1
Smile Re: Contact Us Forms being used for Spams

Quote:
Originally Posted by ajpaulus65 View Post
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 02:16 PM. Reason: typo and clarification
Reply With Quote
  #6 (permalink)  
Old 02-02-2008, 01:37 PM
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Bristol, UK
Posts: 521
carbonize RepRank 0
Default 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.
__________________
Carbonize
Reply With Quote
  #7 (permalink)  
Old 02-02-2008, 06:22 PM
WebProWorld Pro
 
Join Date: Jan 2008
Posts: 294
Tech Manager RepRank 1
Default 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.
Reply With Quote
  #8 (permalink)  
Old 02-03-2008, 03:22 AM
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Bristol, UK
Posts: 521
carbonize RepRank 0
Default 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.
__________________
Carbonize
Reply With Quote
  #9 (permalink)  
Old 02-03-2008, 08:47 AM
WebProWorld Pro
 
Join Date: Jan 2008
Posts: 294
Tech Manager RepRank 1
Default 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.
Reply With Quote
  #10 (permalink)  
Old 02-03-2008, 08:52 AM
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Bristol, UK
Posts: 521
carbonize RepRank 0
Default 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.
__________________
Carbonize
Reply With Quote
  #11 (permalink)  
Old 02-03-2008, 09:10 AM
WebProWorld Pro
 
Join Date: Jan 2008
Posts: 294
Tech Manager RepRank 1
Default 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.
Reply With Quote
  #12 (permalink)  
Old 02-03-2008, 11:53 AM
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Bristol, UK
Posts: 521
carbonize RepRank 0
Default 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-(
__________________
Carbonize
Reply With Quote
  #13 (permalink)  
Old 02-10-2008, 04:12 PM
MrGamm's Avatar
WebProWorld Pro
 
Join Date: Dec 2007
Posts: 273
MrGamm RepRank 3MrGamm RepRank 3MrGamm RepRank 3
Default 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
__________________
James Weisbrod - programmer
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Internet Security Discussion Forum

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CTABUK Spams WPW ctabuk The Castle Breakroom (General: Any Topic) 10 07-12-2007 05:36 PM
Domain name is redirected to another one but I receive spams s.ozyurek Domain Discussion Forum 0 12-22-2006 01:05 AM
Human Contact Blondeheiress Affiliate Marketing Discussion Forum 1 12-20-2006 05:27 AM
How do I contact google kevan Google Discussion Forum 2 06-22-2006 02:17 AM
contact us seomaster Services for Sale/Hire 0 11-19-2005 04:20 AM


All times are GMT -4. The time now is 01:34 AM.



Search Engine Optimization by vBSEO 3.3.0