Tips to Avoid Web Form SPAM

Web forms are now a routine target of spammers. Whether your web site is a personal one just looking for feedback or a commercial site generating sales leads, getting dozens of entries for link exchanges or online gambling sites isn’t anyone’s idea of useful feedback
It can be really disturbing when you started to getting lots of useless SPAM through the web form on your site. 

Is there something we can do about it?

Luckily, the answer is yes.

I found few interesting articles.

Method 1:

Checking for the value of HTTP_USER_AGENT, if it is empty that means it is not from any browser. 

Method 2:

Simple, but powerful. Having an extra text box but make it invisible using CSS, check if the textbox has any value in your server script. If the text box has a value in it, that means it is not a regular user’s input.

The demo page is here

Advertisements

One Response to Tips to Avoid Web Form SPAM

  1. Thank you for producing this kind of cool post which is truly perfectly written.
    will end up being referring lots of friends regarding this.
    Keep blogging and site-building.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: