• Resolved Howdy_McGee

    (@howdy_mcgee)


    Found while running Contact Form 7, the built-in Google ReCaptcha and Flamingo. It appears that if someone ( botnet ) has their javascript disabled they can attempt to submit the form and will receive the following error:

    There was an error trying to send your message. Please try again later.

    After some testing it doesn’t appear to actually send the email but Flamingo still records it in their records. Thus, our Flamingo has been slammed with spam recently. Can anyone confirm that this is an issue? If the devs need sites to test on feel free to slack me in WP @howdy_mcgee

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    By default, Flamingo stores submissions in the mail_sent, mail_failed, or spam status. You can use the wpcf7_flamingo_submit_if filter hook to change this setting.

    Thread Starter Howdy_McGee

    (@howdy_mcgee)

    As always, thanks for the quick response ?? !

    For anyone who needs the filter, please replace prefix_ with something unique.

    /**
     * Plugin: Flamingo
     * Dependant Plugin: Contact Form 7
     *
     * Prevents 'spam' submissions from being saved into Flamingo
     *
     * @param Array $acceptable - Acceptable flags which are saved into Flamingo
     *
     * @return Array $acceptable
     */
    function prefix_flamingo_stop_spam( $acceptable ) {
    	
    	/**
    	 * As of v1.8
    	 * $acceptable = array( 'spam', 'mail_sent', 'mail_failed' )
    	 */
    	return array_diff( $acceptable, array( 'spam' ) );
    	
    }
    add_filter( 'wpcf7_flamingo_submit_if', 'prefix_flamingo_stop_spam' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disabled Javascript Submission With ReCaptcha’ is closed to new replies.