can I avoid spam with an 'if statement'?

Phoca Guestbook - creating guestbooks in Joomla! CMS
konzepta
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 04 Nov 2011, 16:36

can I avoid spam with an 'if statement'?

Post by konzepta »

Hi and thanks for the phoca guestbook that we use with good experience. Our only problem is much too much spam lands there - then someone told me just to add an 'if statement' stating that if not from .dk or .com then ignore and don't post. But I don't know exactly how or where - can anybody help, then I would be grateful :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: can I avoid spam with an 'if statement'?

Post by Jan »

Hi, for now I have no experiences, you need to somehow detect ip and check if it is danish ip (but ips can be faked :idea:)

Try to do all possible settings described here:
https://www.phoca.cz/documents/3-phoca-g ... -from-spam

Jan
If you find Phoca extensions useful, please support the project
Post Reply