Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Blocking Inappropriate Content on Contact Form

by afoken (Chancellor)
on Jul 19, 2022 at 16:03 UTC ( [id://11145590]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11145590]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-18 23:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found