Home › Forums › Quform PHP › Daily Russian spam
- This topic has 3 replies, 3 voices, and was last updated 5 years, 7 months ago by Ally.
- AuthorPosts
- March 7, 2019 at 7:54 am #28704swollavgParticipant
Hello,
I am getting non stop Russian spam from this form.
I was using the default captcha and then recently switched to the random number generated captcha.
I’m still getting daily spam even with the random number captcha.
I would like to avoid re captcha if possible but is there anyway to stop this?
March 7, 2019 at 10:58 am #28713AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 19, 2019 at 1:33 pm #29108waubainParticipantThis may or may not apply to your situation. I also was getting a lot of spam. One common denominator of all the spam that I received is that it contained a URL link. Since my users would have no reason so submit a URL, I created a Validator that check the textarea for a URL and prevented the form from being submitted, and alerted the users of no URLs.
Since doing this, I have not gotten any spam submitted. I am not a programmer, but this code worked for me.
/** * Quform_Validator_URL * * Checks that the text block does not have a embedded URL * * @package Quform * @subpackage Validator * @copyright Copyright (c) 2009-2015 ThemeCatcher (http://www.themecatcher.net) */ class Quform_Validator_Url extends Quform_Validator_Abstract { /** * Error message templates * @var array */ protected $_messageTemplates = array( 'empty' => 'URLs not allowed' ); /** * Checks whether the given value is empty. * * @param $value The value to check * @return boolean True if valid false otherwise */ public function isValid($value) { $valid = true; if (stristr($value, 'http')||stristr($value, 'www.') !== false) { $this->addMessage($this->_messageTemplates['empty']); $valid = false; } return $valid; } }
April 22, 2019 at 1:06 pm #29125AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.