• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Reject a message based on the content submitted

Reject a message based on the content submitted 7 years 2 months ago #37873

  • avocom
  • avocom's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi

Recently we'd been getting several messages passing Recaptcha 2 advertising SEO and XEvil.

The messages come from different IPs and could be manually generated. One way to stop them would be to reject all messages that match a particular criteria.

I imagine a simple script been added on form process that checks some words or several words (case insensitive) and if there is a match, drop the message and abort the process. I understand the logic, but I'm not a programmer. Is this something simple and easy?

This scrip could also be used to reject messages with obscene words and other unwanted content.

My logic is something like:

IF subject contains " seo " or "XEvil" -> reject message
Else -> proceed as normal.

Or, is there a different and easier way of doing it? Note that I'm not looking for form validation with a message warning the spammer. I want the form to simply don't send the message when submitted. Maybe a redirection to the same page the form is on could work too, but not a hard coded url.

Thanks very much
Last Edit: 7 years 2 months ago by avocom.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!