Hello
I have a guestbook where I get spams, The image code verification has no effect, not even if I disable so that you enter a valid code it returns an error. The spams seem to go directly to the .dat file where all the messages are.
anyways by changing the name of the folder I got rid of them and I can see on my previously named folder copy I still get spams.
So I felt like experimenting a little on the sitting duck guestbook while my real guestbook is free from spams.
I have two fields that has to be filled, and the homepage field and email field is checking for character validation. So far so good.
But I would like to add some words that will not pass the validation if matched.
In the email field I do not want any mails containing [b]@mail.com[b]xoomer
And I would like to be able to add more words if neccessary
Here is the current code:
[code=php]
if ($vemail != “” && !preg_match(“/([w.-]+)(@[w.-]+)(.[a-z]{2,4})+/i”, $vemail)) {
input_err(“Unvalid email address.”);
}
if ($vurl != “” && strtolower($vurl) != “http://”) {
if (!preg_match (“#^http://[_a-z0-9-]+\.[_a-z0-9-]+#i”, $vurl)) {
input_err(“Unvalid URL format.”);
}
}