9, February 2010

An easy way to reduce comment spam - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: An easy way to reduce comment spam
« previous next »
Pages: [1] Print

Author Topic: An easy way to reduce comment spam  (Read 1936 times)
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5642
45485 credits
Members referred : 3



« on: Nov 17, 2006, 02:27:47 pm »

I've just realized that the majority of comment spam bots using a very simple way to spam our web sites.

They are actually crawlers who surf the web and post the same data (or random data) to each page they visit.

So a typical post will use the same variables to post - eg. comments, url, site, website, name, email, mail etc - and the very easy way I found that works is to use random variables.

For instance instead of using in your form a field with the name url, you can use a field with the name CSDO432A

I know it is too silly, but it worked even with bots that are able to read verification images....

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Robot
My Name is Enigo Montoya
****
Posts: 32
30 credits
Members referred : 0



Webdigity - Thoughts on SEO and Web development
« Reply #1 on: Nov 17, 2006, 02:43:45 pm »


Trackback from Webdigity - Thoughts on SEO and Web development


The best adsense format ever 
Buy my stupid eBook
An easy way to reduce comment spam
Where does your online revenue comes from?


...
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Nov 17, 2006, 02:46:53 pm »

I've just realized that the majority of comment spam bots using a very simple way to spam our web sites.

They are actually crawlers who surf the web and post the same data (or random data) to each page they visit.

So a typical post will use the same variables to post - eg. comments, url, site, website, name, email, mail etc - and the very easy way I found that works is to use random variables.

For instance instead of using in your form a field with the name url, you can use a field with the name CSDO432A

I know it is too silly, but it worked even with bots that are able to read verification images....

I'm sure that this will work but on the same way you're remove some accessibility from your website:

think about automatic fill options fro forms and screen readers, next it is more difficult to code complex forms...
check this simple spam protection at my blog site:
http://www.web-development-blog.com/archives/google-msn-and-yahoo-joining-their-forces/
(this is working very well, or is this spam bot also good in adding numbers Wink)


Last blog : A new Wordpress theme for our blog
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5642
45485 credits
Members referred : 3



« Reply #3 on: Nov 17, 2006, 02:51:11 pm »

To be honest my first intention was to do something like that what you mention.

But as in the time of the development I was getting about 50-100 spam comments per day, I wanted to do something quick, and I thought this as a start.

The cool thing is that it worked instantly, so I haven't added anything else to check if this is really working, and the good thing is that it is Smiley

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Nov 17, 2006, 02:55:01 pm »

To be honest my first intention was to do something like that what you mention.

But as in the time of the development I was getting about 50-100 spam comments per day, I wanted to do something quick, and I thought this as a start.

The cool thing is that it worked instantly, so I haven't added anything else to check if this is really working, and the good thing is that it is Smiley

don't get me wrong using random field names is not bad, but I will never use it with forms with more then three names.

maybe this is the solution:
Code:
<?php
$name 
'uwur';
echo 
'<input type="text" name="'.$$name.'" />';
?>




Last blog : A new Wordpress theme for our blog
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4830
Tags : blogs adsense seo spam email Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: An easy way to reduce comment spam
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Feb 09, 2010, 05:41:41 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!





Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2010 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.