in reply to Blocking Inappropriate Content on Contact Form

if ($String =~ /sex/) {

What's wrong with "Greetings from Essex"?

The rest of the program checks for "Not a Robot", Enter Anti Spam number, etc and then forwards the message to my email service. [...] How can this be? How is the spammer getting by my safeguards?

By using the email service directly, bypassing those trivial checks?

Add some logging, especially log $String (plus date plus remote IP). If you still get spam, but find no traces in the log, that's what happened.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: Blocking Inappropriate Content on Contact Form
by AnomalousMonk (Archbishop) on Jul 19, 2022 at 18:14 UTC
    What's wrong with "Greetings from Essex"?

    ... or, indeed, from Scunthorpe?


    Give a man a fish:  <%-{-{-{-<

      my lols woke up the poor whakers!