# Bypass captcha in Bricks Forms for automated testing and monitoring

**URL:** <https://forum.bricksbuilder.io/t/bypass-captcha-in-bricks-forms-for-automated-testing-and-monitoring/39887>\
**Category:** How To\
**Tags:** how-to\
**Created:** [July 28, 2026, 7:22am UTC](https://forum.bricksbuilder.io/t/bypass-captcha-in-bricks-forms-for-automated-testing-and-monitoring/39887 "2026-07-28T07:22:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![telmosilva](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/telmosilva/32/26729_2.png) [@telmosilva](https://forum.bricksbuilder.io/u/telmosilva)\
**Post date:** [July 28, 2026, 7:22am UTC](https://forum.bricksbuilder.io/t/bypass-captcha-in-bricks-forms-for-automated-testing-and-monitoring/39887/1 "2026-07-28T07:22:40Z")

</div>

Hello Fellow Bricklayers.

As part of a recurring testing of the web site to ensure that all functionality works, we need to test form submission in certain pages. To do so, we would need to bypass captcha (currently we are using the hcaptcha integration).

Our idea is to pass some sort of a query string in the URL that in PHP we would somehow disable the captcha or otherwise on a callback of sorts, let the form submission continue even if captcha fails. A hook into the captcha callback would be amazing but alas I am having a hard time finding docs on this.

Any ideas, suggestions or solutions are greatly appreciated.

Thank you.

T.

---

<div class="post-metadata">

**Author:** ![UserfreundSuat](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/userfreundsuat/32/34362_2.png) [@UserfreundSuat](https://forum.bricksbuilder.io/u/UserfreundSuat)\
**Post date:** [August 7, 2026, 5:42pm UTC](https://forum.bricksbuilder.io/t/bypass-captcha-in-bricks-forms-for-automated-testing-and-monitoring/39887/3 "2026-08-07T17:42:45Z")

</div>

You could use [this filter](https://academy.bricksbuilder.io/developer/hooks/filters/filter-bricks-element-settings/) to programmatically remove hcaptcha from all forms for certain users:

```PHP
add_filter( 'bricks/element/settings', function( $settings, $element ) {   
 if ( $element->name === 'form' && current_user_can('manage_options') {        
         //Your Logic here
  }
return $settings;
}, 10, 2 );

```

just `var_dump` the `$settings` and `unset()` all hcaptcha related settings. That should do the trick imo.

Best Regards  
Suat

---

<div class="post-metadata">

**Author:** ![telmosilva](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/telmosilva/32/26729_2.png) [@telmosilva](https://forum.bricksbuilder.io/u/telmosilva)\
**Post date:** [August 8, 2026, 7:25am UTC](https://forum.bricksbuilder.io/t/bypass-captcha-in-bricks-forms-for-automated-testing-and-monitoring/39887/5 "2026-08-08T07:25:24Z")

</div>

Thank you! I will give this a shot this coming week and feedback here.
