OpenPorte Spam Protection source code
By J-C Berthon, on WordPress.org since 2026. 600+ active installs.
OpenPorte is a free and open-source WordPress plugin that protects forms, comments, logins, registrations, and WooCommerce from spam and bots using lightweight Proof-of-Work challenges instead of CAPTCHAs. Below is its source code for every one of its 11 releases, what changed in the latest one, and how often it ships.
What changed in 1.30.3
Released Nov 13, 2026, 4 days after 1.30.2- Security: any visitor could run any shortcode registered on the site through a Contact Form 7 or HTML Forms form (GHSA-hvr5-q69x-jp62). To show the widget in those forms, OpenPorte expanded every shortcode in the displayed form, including text visitors had typed into its fields or put in the page’s URL. Depending on the plugins installed, this could expose private content or open the way to flaws in other plugins’ shortcodes. Neither the integration toggles nor the CAPTCHA prevented it. OpenPorte now renders only its own [openporte]/[altcha] tags, and only from the form as you wrote it. Present since ALTCHA Spam Protection 1.6.0 (Contact Form 7) and 1.7.0 (HTML Forms). Thanks to Erik Debye for the report.
- Behaviour change: other plugins’ shortcodes placed in a Contact Form 7 or HTML Forms form are no longer rendered. Neither form plugin renders them itself; it only worked as a side effect of OpenPorte. If you relied on it, see the FAQ entry “Shortcodes in my Contact Form 7 or HTML Forms form stopped working”.
- Contact Form 7: [openporte] and [altcha] are now Contact Form 7 form-tags. Write the widget language as [openporte language:de_DE]; the old [openporte language="de_DE"] keeps working.
5 files changed since 1.30.2: 5 modified, 0 added, 0 removed.
- includes/helpers.php modified, +1,411 bytes
- integrations/contact-form-7.php modified, +2,625 bytes
- integrations/html-forms.php modified, +1,794 bytes
- openporte.php modified, -721 bytes
- readme.txt modified, +2,511 bytes
Release history
11 releases since June 2026- 1.30.3 Nov 13, 2026 Security: any visitor could run any shortcode registered on the site through a Contact Form 7 or HTML Forms form (GHSA-hvr5-q69x-jp62). To show the widget in those forms, OpenPorte expanded every shortcode in the displayed form, including text visitors had typed into its fields or put in the page’s URL. Depending on the plugins installed, this could expose private content or open the way to flaws in other plugins’ shortcodes. Neither the integration toggles nor the CAPTCHA prevented it. OpenPorte now renders only its own [openporte]/[altcha] tags, and only from the form as you wrote it. Present since ALTCHA Spam Protection 1.6.0 (Contact Form 7) and 1.7.0 (HTML Forms). Thanks to Erik Debye for the report.
- 1.30.2 Nov 8, 2026 Fix: on WooCommerce sites with registration protection on, creating an account at checkout (classic or block), on the order confirmation page, through the REST API or from code was refused with “Could not verify you are not a robot.” Only the My Account registration form is now checked; accounts created at checkout are not challenged yet. Thanks to studio10h10 for the report.
- 1.30.1 Oct 31, 2026 Security: in Gravity Forms, an OpenPorte field placed before the last page of a multi-page form was not checked when the form was submitted. Such a form now refuses submissions until the field is moved to the last page; the form editor shows a notice on the field. Present since ALTCHA Spam Protection 0.3.2.
- 1.30.0 Oct 29, 2026 Security: solved challenges are now always refused once expired; until now, a submitted challenge could be altered so that its expiry was ignored. Present since ALTCHA Spam Protection 0.3.2.
- 1.29.1 Sep 16, 2026 Front-end links now use rel="noopener noreferrer" on target="_blank" (settings page links and the “Protected by ALTCHA” footer text). Two equivalent links inside the bundled third-party altcha.min.js remain as shipped upstream; see #118 for details.