WP Manifestindependent plugin directory
manifest / security / revokegpt-wordpress

RevokeGPT

RevokeGPT for WordPress: bot protection for login, comments, WooCommerce and forms

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/zaeemsattar/revokegpt-wordpress/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

RevokeGPT for WordPress (developer notes)

The WordPress plugin that protects login, registration, lost password and comments with RevokeGPT. It is built and tested here; it is not published on WordPress.org yet, so install it from source (below). The text WordPress.org shows is readme.txt; this file is for developers. The plugin verifies every response token on your server with the RevokeGPT PHP SDK, which the build bundles under its own namespace prefix (RevokeGPT\WP\Vendor) so it cannot clash with another plugin's copy.

Install from source

composer install
composer build            # writes dist/revokegpt (PHP 8.2 or later for the build tools, see build/composer.json)

Copy dist/revokegpt into wp-content/plugins/, activate it, then open Settings, RevokeGPT: site key, secret key and the endpoint of your RevokeGPT service, "Test connection", and choose the forms. The plugin runs on PHP 8.1 or later.

Settings in code

Constant (wp-config.php) Effect
REVOKEGPT_SECRET_KEY The secret key. When it is set the admin never shows or stores it.
REVOKEGPT_DISABLE true turns every check off: the way back in if you lock yourself out.

The plugin fails closed: when the check cannot run, the request is refused. The only exception is the setting "allow login when RevokeGPT is unreachable", which is off by default and applies to login only.

Filters

Filter Default Use
revokegpt_client_ip REMOTE_ADDR Return the visitor address when a proxy sits in front. A value that is not an IP address is dropped, and nothing is sent.
revokegpt_timeout_ms 5000 Deadline of the verification call in milliseconds, 1 to 60000; anything else gives 5000.
revokegpt_verifier null Return an object with check( string $action, ?string $token ): Verdict to replace the verifier (tests and advanced setups). Anything else is ignored.

Development

composer phpcs            # WordPress coding standards
composer test:unit        # PHPUnit
composer test:wp          # smoke test inside wp-env (needs Docker and a .wp-env.json)
composer pot              # writes languages/revokegpt.pot

The release zip is built by bin/build-zip.sh and published by the mirror's release workflow after the owner's first WordPress.org submission; see docs/runbooks/sdk-release.md.