Title: Sectora Connector
Author: braineetech
Published: <strong>November 27, 2026</strong>
Last modified: November 27, 2026

---

Search plugins

![](https://ps.w.org/sectora-connector/assets/banner-772x250.png?rev=3829198)

![](https://ps.w.org/sectora-connector/assets/icon-256x256.png?rev=3829198)

# Sectora Connector

 By [braineetech](https://profiles.wordpress.org/braineetech/)

[Download](https://downloads.wordpress.org/plugin/sectora-connector.0.1.0.zip)

 * [Details](https://wordpress.org/plugins/sectora-connector/#description)
 * [Reviews](https://wordpress.org/plugins/sectora-connector/#reviews)
 *  [Installation](https://wordpress.org/plugins/sectora-connector/#installation)
 * [Development](https://wordpress.org/plugins/sectora-connector/#developers)

 [Support](https://wordpress.org/support/plugin/sectora-connector/)

## Description

[Sectora Shield](https://sectora.io) is an edge web application firewall. It blocks
attacks before they reach your server. This plugin adds the parts only your server
can do:

 * **Origin lock.** Shield adds a secret header to every request it forwards. The
   plugin refuses requests without it, so someone who finds your server’s IP address
   cannot go around Shield.
 * **Real visitor IP.** On requests that came through Shield, WordPress and every
   other plugin see the visitor’s IP address instead of Shield’s.
 * **Status at a glance.** One screen shows whether DNS points to Shield, which 
   protection layer is active, and whether Sectora could verify it from the outside.

All blocking stays at Shield. The plugin does not run firewall rules and never executes
code sent from Sectora: it only fetches a secret and a few settings.

A Sectora account with a Shield site is required.

#### Two layers

 * **PHP layer** (on whenever origin lock is on): a small must-use plugin checks
   the header before any other plugin loads, and answers 404 when it is missing 
   or wrong. It only sees requests that load WordPress.
 * **Server layer** (recommended): a rule at the top of `.htaccess` (Apache, LiteSpeed),
   or a snippet you paste into your nginx configuration. It also covers static files
   and plugin PHP files requested directly, which never load WordPress.

With the PHP layer only, the plugin reports **Partial**, never Protected.

#### External services

This plugin connects to the Sectora API at `https://sectora.io/api/shield/connector/
v1/` (operated by Sectora, [terms](https://sectora.io/legal/terms), [privacy policy](https://sectora.io/legal/privacy)).
It sends nothing until you paste a connection token and click Connect. Every request
carries that token in an `Authorization` header.

 * `GET config` (on connect, then every 5 minutes, and when you open the settings
   page): receives the origin-lock secret(s), the header name and the Shield mode.
   Sends nothing else.
 * `POST heartbeat` (after each config fetch and after you change a setting): sends
   the plugin version, WordPress version, PHP version, the web server name (`SERVER_SOFTWARE`),
   which layer is active (`none`, `php` or `server`), whether the lock is on, the
   site URL, and the first 16 hex characters of the SHA-256 hash of each secret 
   it holds (so Sectora knows a new secret has arrived before switching Shield to
   it).
 * `GET status` (when you open the settings page, at most once a minute): receives
   Shield’s view of the site (DNS, mode, verification result, time of the last request).
 * `POST verify` (when you click Verify): asks Sectora to send test requests to 
   your server, with and without the header, to the home page, `wp-includes/js/jquery/
   jquery.min.js` and this plugin’s `index.php`.
 * `POST disconnect` (when you click Disconnect or delete the plugin): revokes the
   token.

No user accounts, posts, comments, options or other content are ever sent.

## Screenshots

[⌊Settings → Sectora Shield on a protected site: DNS, Shield mode, origin lock and
Verify all pass, and WordPress sees the visitor's real IP.⌉⌊Settings → Sectora Shield
on a protected site: DNS, Shield mode, origin lock and Verify all pass, and WordPress
sees the visitor's real IP.⌉[

Settings  Sectora Shield on a protected site: DNS, Shield mode, origin lock and 
Verify all pass, and WordPress sees the visitor’s real IP.

[⌊Connecting: paste the token from the Sectora dashboard.⌉⌊Connecting: paste the
token from the Sectora dashboard.⌉[

Connecting: paste the token from the Sectora dashboard.

[⌊A site that is only partly protected: each warning says what is missing and links
to the fix.⌉⌊A site that is only partly protected: each warning says what is missing
and links to the fix.⌉[

A site that is only partly protected: each warning says what is missing and links
to the fix.

## Installation

 1. Add your site in Sectora Shield and point DNS at it.
 2. Install and activate this plugin.
 3. In Sectora, open the site, go to **WordPress**, and click **Create connection token**.
 4. In WordPress, go to **Settings  Sectora Shield**, paste the token and click **Connect**.
 5. Enable origin lock for the site in Sectora (on its Origin Lock page). You don’t
    need to copy the secret.
 6. Open **Settings  Sectora Shield** through your public domain and click **Enable
    origin lock**. On Apache or LiteSpeed, also click **Add .htaccess rule**. On nginx,
    paste the snippet shown on the page.
 7. Click **Verify**.

The plugin only lets you enable the lock when the settings page itself came through
Shield with the right secret, so you cannot lock yourself out by enabling it before
DNS points to Shield.

## FAQ

### I am locked out. How do I turn it off?

Add this line to `wp-config.php`, above “That’s all, stop editing!”:

    ```
    define( 'SECTORA_ORIGIN_LOCK', false );
    ```

That turns off the PHP layer. To turn off the server layer, delete everything from`#
BEGIN Sectora Shield` to `# END Sectora Shield` in the `.htaccess` file in your 
WordPress folder (or remove the nginx snippet and reload nginx).

WP-CLI is never blocked, so `wp option update sectora_connector_lock 0` also works.

### Does WP-Cron still work?

Yes. WordPress’s requests to its own address (WP-Cron, Site Health, REST loopback)
get the header added, only for your site’s own host and never across a redirect.
A server cron job that requests `wp-cron.php` over HTTP on the server itself is 
refused like any direct request; use `wp cron event run --due-now` instead.

### Can I keep the secret in wp-config.php instead of the database?

Yes. Define `SECTORA_SHIELD_SECRET` in `wp-config.php` and the plugin uses it instead
of the value it syncs. Rotations in Sectora are then not applied automatically: 
set `SECTORA_SHIELD_SECRET_PREVIOUS` to the old value while you switch over.

### How does secret rotation work?

Rotate from the site’s WordPress page in Sectora. The new secret is staged: the 
plugin fetches it and accepts both, Shield switches only after the plugin confirms,
and the old secret stays accepted for two more hours. No request is rejected during
the switch. The `.htaccess` rule is updated automatically, and the plugin confirms
only once the rule holds the new secret. On nginx, paste the updated snippet, reload
nginx and click **Confirm rotation**; Shield keeps the current secret until you 
do.

### My host does not use .htaccess and I cannot edit nginx.

Then only the PHP layer is possible and the site shows Partial. Pages, logins, the
REST API and admin-ajax are protected; static files and plugin files requested directly
are not.

### What happens when I deactivate or delete the plugin?

Deactivating removes the must-use plugin and the `.htaccess` rule, so nothing is
refused any more. The connection is kept for when you reactivate. Deleting the plugin
also revokes the token and deletes its settings.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Sectora Connector” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ braineetech ](https://profiles.wordpress.org/braineetech/)

[Translate “Sectora Connector” into your language.](https://translate.wordpress.org/projects/wp-plugins/sectora-connector)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/sectora-connector/),
check out the [SVN repository](https://plugins.svn.wordpress.org/sectora-connector/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/sectora-connector/)
by [RSS](https://plugins.trac.wordpress.org/log/sectora-connector/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.1.0

 * First release: connect, origin lock (PHP and server layers), real client IP, 
   Verify, onboarding checklist.

## Meta

 *  Version **0.1.0**
 *  Last updated **5 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [firewall](https://wordpress.org/plugins/tags/firewall/)[real ip](https://wordpress.org/plugins/tags/real-ip/)
   [security](https://wordpress.org/plugins/tags/security/)[WAF](https://wordpress.org/plugins/tags/waf/)
 *  [Advanced View](https://wordpress.org/plugins/sectora-connector/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/sectora-connector/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/sectora-connector/reviews/)

## Contributors

 *   [ braineetech ](https://profiles.wordpress.org/braineetech/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/sectora-connector/)