guestbook spam protection

Author Message

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.

Georg Franz

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.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:29:54
Script start
Timing: Jan 18 2025 10:29:54
Module start 'layout'
Timing: Jan 18 2025 10:29:54
Module start 'content'
Timing: Jan 18 2025 10:29:54
Module end 'content'
Timing: Jan 18 2025 10:29:54
Script end

Main resources:

Total runtime0.7221 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 587.9141152.6250
Module start 'layout' 0.00670.0033 740.539139.4453
Module start 'content' 0.01000.7107 779.9844584.0391
Module end 'content' 0.72070.0014 1,364.023412.1641
Script end 0.7221  1,376.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4628160.0002
Check MTime0.00140.1989160.0001
Mysql Total
Database connection0.00090.121010.0009
Mysqli_queries0.669492.7091620.0108
Looping result0.00120.1684600.0000
Template Total0.684694.820.3423
Template load0.00220.302620.0011
Template processing0.682494.498220.3412
Template load and register function0.00020.024210.0002
states
state_id_array0.00120.169210.0012
state_identifier_array0.00150.213720.0008
Override
Cache load0.00180.2530220.0001
Sytem overhead
Fetch class attribute can translate value0.00050.062630.0002
Fetch class attribute name0.00120.163560.0002
XML
Image XML parsing0.00120.160530.0004
class_abstraction
Instantiating content class attribute0.00000.001770.0000
General
dbfile0.00190.2590220.0001
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs