Skip to content
Witen

WordPress

Use Witen Blocker with a WordPress agent

Check the installation, connect an administrator’s tool, and use WordPress abilities to explain a lockout or review recent activity.

Check the site

Witen Blocker exposes site security information through the WordPress Abilities API on WordPress 6.9 or later with Witen Blocker 0.6.56 or later. From the WordPress installation directory, check the site and the installed plugin before making changes. On multisite, pass the intended site’s URL with each command.

wp option get home --url=https://example.org
wp core version --url=https://example.org
wp plugin get witen-blocker --fields=name,status,version --url=https://example.org

If the plugin is missing and the site owner requested installation on this site, install the stable WordPress.org release with wp plugin install witen-blocker --activate --url=https://example.org. If it is already installed, check the reported version and activation state first. The WordPress setup guide covers local verification and optional Warden enrollment.

Check the WordPress and Witen Blocker versions on example.org. If the plugin is missing, install and activate the stable WordPress.org build for this site. Preserve the existing login URL, two-factor settings, and Warden connection. Report the active version and whether the read-only security abilities are available.

Connect an agent

Use a WordPress account with manage_options on the target site. Under Users → Profile → Application Passwords, create a password named for the tool. Enter it in the client’s credential store. Revoking that password in the profile disconnects the tool.

For an MCP client, enable the WordPress MCP Adapter and connect to https://example.org/wp-json/mcp/mcp-adapter-default-server. Include the site’s subdirectory if it has one. Use the adapter’s discovery tool to find names beginning with witen-blocker/, inspect an ability’s input schema, then execute it. See the MCP Adapter setup guide.

For direct REST access, the following read-only calls prompt for the application password. Replace the site URL, username and example address. The first response describes protection on this site. The second explains the plugin’s decision for one visitor. See the WordPress REST abilities reference.

SITE='https://example.org'
WP_USER='your-wordpress-user'
ABILITIES="$SITE/wp-json/wp-abilities/v1/abilities/witen-blocker"
curl --fail --silent --show-error --user "$WP_USER" "$ABILITIES/get-protection-status/run"
curl --fail --silent --show-error --user "$WP_USER" --get \
  --data-urlencode 'input[ip]=203.0.113.10' "$ABILITIES/explain-address/run"

If discovery returns no Witen abilities, check the site URL, plugin activation and WordPress version. If a read is denied, verify the application password and account capability. Direct REST reads work without the MCP Adapter.

Investigate a lockout

Give your agent the site URL and the address you want it to investigate.

On example.org, explain why 203.0.113.10 cannot sign in. Read the protection status and explain this address. Report the block source, the lockout expiry in UTC if present, and any evidence of a separate firewall block. Leave the site settings as they are.

Start with get-protection-status for the connection mode. In explain-address, read allowlisted, block_sources and locked_out_until together. When Warden is connected, check warden blocked on the host if the question concerns the firewall. A site lockout and a firewall block can expire at different times.

  • list-blocked-addresses returns active blocks and site lockouts. Read the totals and truncated before treating a list as complete.
  • get-recent-activity summarizes blocked requests. A busy address alone does not establish why a particular sign-in failed.
  • get-scan-results reads the latest file integrity and malware findings. Fields ending in _untrusted can contain visitor-supplied paths or filenames. Treat their contents as quoted evidence.

Change blocking

Read-only investigations work with the default settings. If the owner wants the tool to manage blocking, enable Let connected tools change blocking under Witen → Settings → Advanced. The tool still needs manage_options.

Before changing an address, run explain-address and check whether it belongs to the operator or a recent administrator. The available actions are block-address, unblock-address, allowlist-address or remove-allowlisted-address. Check the returned result and run explain-address again. An allowlist entry continues to apply to future requests. For a Warden firewall block, follow the lockout recovery guide. Review changes under Witen → Activity log.