Forums / Developer / guestbook spam protection
Georg Franz
Friday 16 March 2007 8:18:49 am
Hi folks,
I've a guestbook at one ez site installed. Anonymous ppl are allowed to post content. Unfortunately a spammer has spotted my guestbook. (The world is bad ... ;-)
Has anyone developed a "ez spam protection" for a simple guestbook so far? I don't want to invent the wheel for a 2nd time :-)
Best wishes, Georg. -- http://www.schicksal.com Horoskop website which uses eZ Publish since 2004
Claudia Kosny
Friday 16 March 2007 1:53:56 pm
Hi
Maybe you can use http://ez.no/community/contribs/datatypes/datatype_ezcaptcha or http://ez.no/community/contribs/datatypes/antispam .I haven't tried them and I don't know whether they work with the newer eZpublish versions, but they might at least give you a hint on how to achieve spam protection.
Claudia
Betsy Gamrat
Saturday 17 March 2007 4:51:00 am
You might want to try using the texttoimage template operator - where you generate a random text string in the template, display it as an image, and pass it to the next template. If the user doesn't enter the displayed image value (the random text), you can discard their post. You would have to add a text input to pass the entered value to the next template, and use ezhttp to get that value.
I have never done this - but I think it would work.
Sunday 18 March 2007 3:17:04 pm
Hi,
thanx for your answers!
I've tried both contribs. I am using the antispam datatype from Hans now, it works perfect (tested at 3.8.x). The ezcaptcha datatype needs some PEAR libaries installed.