Title: kai1's Replies | WordPress.org

---

# kai1

  [  ](https://wordpress.org/support/users/kai1/)

 *   [Profile](https://wordpress.org/support/users/kai1/)
 *   [Topics Started](https://wordpress.org/support/users/kai1/topics/)
 *   [Replies Created](https://wordpress.org/support/users/kai1/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/kai1/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/kai1/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/kai1/engagements/)
 *   [Favorites](https://wordpress.org/support/users/kai1/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] contact form 7, recaptcha 3 and automated tests](https://wordpress.org/support/topic/contact-form-7-recaptcha-3-and-automated-tests/)
 *  [kai1](https://wordpress.org/support/users/kai1/)
 * (@kai1)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/contact-form-7-recaptcha-3-and-automated-tests/#post-13522050)
 * Thanks, Takayuki!
    We created a small plugin which checks the user agent and 
   that works pretty well.
 *     ```
       <?php
   
       // define the callback function, the arguments are optional
       function dz1_skip_spam_ghost_check( $skip ) {	
       	$user_agent = $_SERVER['HTTP_USER_AGENT'];
       	if (preg_match( "/xyz/i", $user_agent )) {
       		return true;
       	}
       	return $skip;
       }
   
       // hook the callback function to the 'example_action'
       add_filter( 'wpcf7_skip_spam_check', 'dz1_skip_spam_ghost_check', 100, 1 );
       ?>
       ```
   

Viewing 1 replies (of 1 total)