I am trying to implement some anti-spam code on our side. My plan is to implement what is described in this post and on top of that, to determine the top level domain and block some top level domains completely, like for instance .ru (all spam messages I receive are exclusively sent with .ru email addresses). Our site is aimed at a very local audience, anyway, so we can safely do this.
So what I would like to do is in k_success handling is this:
<cms:php>
find top level domain in the email address
</cms:php>
<cms:if topleveldomain <> 'ru' >
... email contact form notification
... success response to form user
<cms:else />
... success response to form user
</cms:if>
How can I use the variable $topleveldomain in the couch script?
So what I would like to do is in k_success handling is this:
<cms:php>
find top level domain in the email address
</cms:php>
<cms:if topleveldomain <> 'ru' >
... email contact form notification
... success response to form user
<cms:else />
... success response to form user
</cms:if>
How can I use the variable $topleveldomain in the couch script?