ricardocabellov5.0balter-egos
trace mr.doob r08028
blogdemoscenefeaturedextrascontact
 *blog... kind of... *rss

« textile, bbcode.. boll...Tibidabo: the obsolete... »

AntiSPAM system, part2
31.01.2006
For those who didn't move to the darkside yet (wordpress, blogger, ..) and are still developing his own blog system (right now I think that i'm the only one doing it (well, sole too)), here is what I did to stop the SPAM I was receiving as comments. For doing this sole was moderating all the comments one by one, I didn't want to do that, then I started to receive SPAM, and she told me to only accept comments from known people, from names that are already on the list. I didn't like the idea either.

So what I decided to do was just saving the IPs and realized that they always use the same IP. That was clear then, I added another field in the mysql database indicating if the comment was SPAM or not, and then when anyone adds a comment, the system checks if the IP is in the database, if the IP was flagged up as SPAM, it will leave it in the database but flagged up as SPAM too. If the IP is new or already in the database but without any SPAM indication it goes directly adds to the database and shows the comment.

After having the idea and developing it, sole, again, told me that it's the same system that wordpress uses. And by now it works, sometimes there is a new SPAM with a new IP that I have to flag up as SPAM, but it's much better than moderating comment by comment. Tho not too many people writes here :P
posted by ricardo cabello at 16:23
2 comments written so far

The "best" way is still adding a hidden field with a random number with javascript. If the script adding the comment receives that same number then it'll accept the message without moderation, else it will add it to a moderation list.

Most spam bots don't parse javascript at all.

Of course, it's not a final solution, and could be added to your solution aswell :)
posted by Jcl
31.01.2006 , 16:57

prueba desde el curro... soy spam? :D

posted by humphr3y
31.01.2006 , 17:21

SORRY!
Is not that I don't care about what you have to say, of course I do, but they are speaking louder and I lost my patience :(
 *profile 



traditional id: Ricardo Cabello Miguel
based in: London, UK
serving to: Hi-ReS!
contact me: click here


 *latest posts 

* Some new Flash 10 Shaders for realtime... (01.09.2008)
* Service Pack 3 Setup Error (31.08.2008)
* FDT does work in Linux (19.08.2008)
* Sorry for the delay... (19.08.2008)
* Hi-ReS! Stats (11.08.2008)
* Björk - Hidden Place (Knick & The Ene... (09.08.2008)
* Noisia vs Religion (08.08.2008)
* Inspire08 demo log, day 117 (07.08.2008)
* Inspire08 demo log, day 116 (06.08.2008)
* Thank you for writing to Yahoo! Accou... (01.08.2008)
* Thank you for writing to Yahoo! Accou... (01.08.2008)
* Definition of FAIL (31.07.2008)
* Ronny Pries live @ Alpha Box Jan'08 (23.07.2008)
* WALL·E (23.07.2008)
* Where do we get the time from? (22.07.2008)


 *latest comments 

* C++, SDL Coding? Maybe.. ;) (Preview) (trace)
* C++, SDL Coding? Maybe.. ;) (Preview) (Joey)
* La picaresca (spt)
* Mr. Slip Up (ricardo)
* La picaresca (ricardo)
* La picaresca (spt)
* La picaresca (sole)
* Demoscene @ Cirsa (sml)
* La picaresca (humphr3y)
* La picaresca (alfio)
* fiver2's new baby: debris (Jcl)
* Barcelona = full of shit(s) (Soli)
* Demoscene @ Cirsa (Scener)
* Rar & unrar with Ubuntu (SethPlate)
* Mindcandy 2 (Jcl)


 *advertising