Forums

Spam won't stop, I've tried everything!

PhoenixEdge 14 Feb, 2014
I've searched through these forums and have spent hours implementing every possible solution I have found, but nothing works. The spam will not stop. I'm getting close to 50 a day. Recaptcha is implemented just as is described in tutorials. IPs of the spam submissions are almost always different. I've done server side validations to no effect (other than preventing myself in tests from getting through)
The emails usually look like this:
I would like:	
Contact Name*	 cheap hermes
Phone*	 cheap hermes
Email*	 cheap hermes
Referred by	 {input_select_12}
Comments:	 cheap replica hermes birkin bag  admin cheap hermes [spam link omitted]

What makes absolutely NO sense whatsoever is that there is server side validation that a proper email address must be entered, or the form won't be emailed. This server side validation actually does its job when I fill out the form with an improper email, so how is the spam still getting through? There is not another form or another site the spam is targeting, I know 100% that the form I'm putting in all these anti-spam measures in is the one that is attracting all the spam (also because it's the only form I put one of my email addresses on to submit to)

I even put this Custom Code event in under the On Submit action, after the Check Recaptcha but before the send email event:
<?php
$mainframe =& JFactory::getApplication();
$email =& JRequest::getString('input_text_2', '', 'post');
if (strpos($email, '@') === false)
$mainframe->redirect('index.php');
?>

So this code will essentially cause the form to not even go to the email event if a '@' character is not found in the email field (which has a name attribute of 'input_text_2'). This works flawlessly when I test the form myself, as in when I enter something without a '@' character, I get redirected to the home page and no email is sent from the form, yet spam is STILL getting through at the same pace as before. HOW? I am pulling my hair out over this.
GreyHead 14 Feb, 2014
Hi PhoenixEdge,

Hard to say, the code you have there and have tested should block any submissions without an '@'. I would have to suspect that the spam isn't coming through that form. Can you add an identifier (the form name for example) at the bottom to double-check.

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look and see if I can spot anything.

Bob
This topic is locked and no more replies can be posted.