{"id":414257,"date":"2026-11-27T10:10:52","date_gmt":"2026-11-27T10:10:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/sectora-connector\/"},"modified":"2026-11-27T10:10:42","modified_gmt":"2026-11-27T10:10:42","slug":"sectora-connector","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/sectora-connector\/","author":23611940,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1.0","stable_tag":"0.1.0","tested":"7.1.5","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"Sectora Connector","header_author":"Sectora","header_description":"Connects this site to Sectora Shield: refuses requests that skipped Shield (origin lock), restores visitors' real IP addresses, and shows whether the site is actually protected.","last_updated":"2026-11-27 10:10:42","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/sectora.io\/docs\/shield\/wordpress","header_author_uri":"https:\/\/sectora.io","rating":0,"author_block_rating":0,"active_installs":0,"downloads":38,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1.0":{"tag":"0.1.0","author":"braineetech","date":"2026-11-27 10:10:42","revision":3829198}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3829198,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3829198,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3829198,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3829198,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3829198,"resolution":"1","location":"assets","locale":"","width":2560,"height":1520},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3829198,"resolution":"2","location":"assets","locale":"","width":2560,"height":1040},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3829198,"resolution":"3","location":"assets","locale":"","width":2560,"height":1520}},"screenshots":{"1":"Settings \u2192 Sectora Shield on a protected site: DNS, Shield mode, origin lock and Verify all pass, and WordPress sees the visitor's real IP.","2":"Connecting: paste the token from the Sectora dashboard.","3":"A site that is only partly protected: each warning says what is missing and links to the fix."}},"plugin_section":[],"plugin_tags":[1174,295857,52741,600,18199],"plugin_category":[54],"plugin_contributors":[295008],"plugin_business_model":[],"class_list":["post-414257","plugin","type-plugin","status-publish","hentry","plugin_tags-firewall","plugin_tags-origin-lock","plugin_tags-real-ip","plugin_tags-security","plugin_tags-waf","plugin_category-security-and-spam-protection","plugin_contributors-braineetech","plugin_committers-braineetech"],"banners":{"banner":"https:\/\/ps.w.org\/sectora-connector\/assets\/banner-772x250.png?rev=3829198","banner_2x":"https:\/\/ps.w.org\/sectora-connector\/assets\/banner-1544x500.png?rev=3829198","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/sectora-connector\/assets\/icon-128x128.png?rev=3829198","icon_2x":"https:\/\/ps.w.org\/sectora-connector\/assets\/icon-256x256.png?rev=3829198","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/sectora-connector\/assets\/screenshot-1.png?rev=3829198","caption":"Settings \u2192 Sectora Shield on a protected site: DNS, Shield mode, origin lock and Verify all pass, and WordPress sees the visitor's real IP."},{"src":"https:\/\/ps.w.org\/sectora-connector\/assets\/screenshot-2.png?rev=3829198","caption":"Connecting: paste the token from the Sectora dashboard."},{"src":"https:\/\/ps.w.org\/sectora-connector\/assets\/screenshot-3.png?rev=3829198","caption":"A site that is only partly protected: each warning says what is missing and links to the fix."}],"raw_content":"<!--section=description-->\n<p><a href=\"https:\/\/sectora.io\">Sectora Shield<\/a> is an edge web application firewall. It blocks attacks before they reach your server. This plugin adds the parts only your server can do:<\/p>\n\n<ul>\n<li><strong>Origin lock.<\/strong> 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.<\/li>\n<li><strong>Real visitor IP.<\/strong> On requests that came through Shield, WordPress and every other plugin see the visitor's IP address instead of Shield's.<\/li>\n<li><strong>Status at a glance.<\/strong> One screen shows whether DNS points to Shield, which protection layer is active, and whether Sectora could verify it from the outside.<\/li>\n<\/ul>\n\n<p>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.<\/p>\n\n<p>A Sectora account with a Shield site is required.<\/p>\n\n<h4>Two layers<\/h4>\n\n<ul>\n<li><strong>PHP layer<\/strong> (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.<\/li>\n<li><strong>Server layer<\/strong> (recommended): a rule at the top of <code>.htaccess<\/code> (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.<\/li>\n<\/ul>\n\n<p>With the PHP layer only, the plugin reports <strong>Partial<\/strong>, never Protected.<\/p>\n\n<h4>External services<\/h4>\n\n<p>This plugin connects to the Sectora API at <code>https:\/\/sectora.io\/api\/shield\/connector\/v1\/<\/code> (operated by Sectora, <a href=\"https:\/\/sectora.io\/legal\/terms\">terms<\/a>, <a href=\"https:\/\/sectora.io\/legal\/privacy\">privacy policy<\/a>). It sends nothing until you paste a connection token and click Connect. Every request carries that token in an <code>Authorization<\/code> header.<\/p>\n\n<ul>\n<li><code>GET config<\/code> (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.<\/li>\n<li><code>POST heartbeat<\/code> (after each config fetch and after you change a setting): sends the plugin version, WordPress version, PHP version, the web server name (<code>SERVER_SOFTWARE<\/code>), which layer is active (<code>none<\/code>, <code>php<\/code> or <code>server<\/code>), 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).<\/li>\n<li><code>GET status<\/code> (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).<\/li>\n<li><code>POST verify<\/code> (when you click Verify): asks Sectora to send test requests to your server, with and without the header, to the home page, <code>wp-includes\/js\/jquery\/jquery.min.js<\/code> and this plugin's <code>index.php<\/code>.<\/li>\n<li><code>POST disconnect<\/code> (when you click Disconnect or delete the plugin): revokes the token.<\/li>\n<\/ul>\n\n<p>No user accounts, posts, comments, options or other content are ever sent.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Add your site in Sectora Shield and point DNS at it.<\/li>\n<li>Install and activate this plugin.<\/li>\n<li>In Sectora, open the site, go to <strong>WordPress<\/strong>, and click <strong>Create connection token<\/strong>.<\/li>\n<li>In WordPress, go to <strong>Settings \u2192 Sectora Shield<\/strong>, paste the token and click <strong>Connect<\/strong>.<\/li>\n<li>Enable origin lock for the site in Sectora (on its Origin Lock page). You don't need to copy the secret.<\/li>\n<li>Open <strong>Settings \u2192 Sectora Shield<\/strong> through your public domain and click <strong>Enable origin lock<\/strong>. On Apache or LiteSpeed, also click <strong>Add .htaccess rule<\/strong>. On nginx, paste the snippet shown on the page.<\/li>\n<li>Click <strong>Verify<\/strong>.<\/li>\n<\/ol>\n\n<p>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.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"i%20am%20locked%20out.%20how%20do%20i%20turn%20it%20off%3F\"><h3>I am locked out. How do I turn it off?<\/h3><\/dt>\n<dd><p>Add this line to <code>wp-config.php<\/code>, above \"That's all, stop editing!\":<\/p>\n\n<pre><code>define( 'SECTORA_ORIGIN_LOCK', false );\n<\/code><\/pre>\n\n<p>That turns off the PHP layer. To turn off the server layer, delete everything from <code># BEGIN Sectora Shield<\/code> to <code># END Sectora Shield<\/code> in the <code>.htaccess<\/code> file in your WordPress folder (or remove the nginx snippet and reload nginx).<\/p>\n\n<p>WP-CLI is never blocked, so <code>wp option update sectora_connector_lock 0<\/code> also works.<\/p><\/dd>\n<dt id=\"does%20wp-cron%20still%20work%3F\"><h3>Does WP-Cron still work?<\/h3><\/dt>\n<dd><p>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 <code>wp-cron.php<\/code> over HTTP on the server itself is refused like any direct request; use <code>wp cron event run --due-now<\/code> instead.<\/p><\/dd>\n<dt id=\"can%20i%20keep%20the%20secret%20in%20wp-config.php%20instead%20of%20the%20database%3F\"><h3>Can I keep the secret in wp-config.php instead of the database?<\/h3><\/dt>\n<dd><p>Yes. Define <code>SECTORA_SHIELD_SECRET<\/code> in <code>wp-config.php<\/code> and the plugin uses it instead of the value it syncs. Rotations in Sectora are then not applied automatically: set <code>SECTORA_SHIELD_SECRET_PREVIOUS<\/code> to the old value while you switch over.<\/p><\/dd>\n<dt id=\"how%20does%20secret%20rotation%20work%3F\"><h3>How does secret rotation work?<\/h3><\/dt>\n<dd><p>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 <code>.htaccess<\/code> 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 <strong>Confirm rotation<\/strong>; Shield keeps the current secret until you do.<\/p><\/dd>\n<dt id=\"my%20host%20does%20not%20use%20.htaccess%20and%20i%20cannot%20edit%20nginx.\"><h3>My host does not use .htaccess and I cannot edit nginx.<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"what%20happens%20when%20i%20deactivate%20or%20delete%20the%20plugin%3F\"><h3>What happens when I deactivate or delete the plugin?<\/h3><\/dt>\n<dd><p>Deactivating removes the must-use plugin and the <code>.htaccess<\/code> 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.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>First release: connect, origin lock (PHP and server layers), real client IP, Verify, onboarding checklist.<\/li>\n<\/ul>","raw_excerpt":"Refuses requests that skipped Sectora Shield, restores visitors' real IP addresses, and shows whether your site is protected.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/414257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=414257"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/braineetech"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=414257"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=414257"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=414257"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=414257"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=414257"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=414257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}