[TYPO3-dev] Searching for a hook

Ronald Steiner Ronald.Steiner at googlemail.com
Sun Jan 18 23:38:35 CET 2009


Hi Martin,

thanks for that tip.

>> The purpose is to generate a spam protection by checking the POST / GET
>> variables. I'm aware that there are a lot of spam protection extensions
>> already around. But I got some special ideas that I want to test.
> 
> What do you want to protect? You own forms or the standard TYPO3 forms?
> How about this one?
> 
> $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['sendFormmail-PreProcClass']
> 
> Maybe you can manipulate the $EMAIL_VARS (what a name!), so that any
> spam goes to /dev/null.

That sounds interesting.
$EMAIL_VARS contains all POST / GET variables or only what belongs to 
TYPO3 standard mail-form?

My basic idea is to secure any form on a TYPO3 webpage. The forms on the 
html page are changed before output and all GET / POST variables are 
checked. - My first testings looks quite promising.
Just finding the best hook for checking the POST / GET variables now is 
a bit tricky. It tried already some hooks and it works with a lot of 
hooks. But I want the check as early as possible but already want to 
have access to the TypoScript configuration. e.g. via:
$GLOBALS['TSFE']->tmpl->setup['config.']

greetings

Ron






More information about the TYPO3-dev mailing list