Daily Russian spam

Home Forums Quform PHP Daily Russian spam

This topic is: resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28704
    swollavg
    Participant

    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?

    #28713
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #29108
    waubain
    Participant

    This 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;
        }
    }
    
    #29125
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy