| 开发者 | braineetech |
|---|---|
| 更新时间 | 2026年11月30日 14:23 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp-config.php, debug.log and backup files, PHP files in uploads, the theme and plugin editors, the install script, REST API probing and wp-cron.php abuse. Plus built-in protection against the common web attacks (OWASP Top 10): SQL injection, cross-site scripting (XSS), command injection, path traversal, XXE, template injection and Log4Shell-style attacks.wp-login.php and locks out the source after repeated failures. A real login is not affected..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.https://sectora.io/api/shield/connector/v1/ (operated by Sectora, terms, privacy policy). 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.Yes. The firewall runs on Sectora's network, so a paid Sectora plan with Shield is required: the WordPress plans start at $29 a month for one site (pricing). The plugin connects your site to it and adds what only your server can do.
No. Sectora blocks attacks before they reach your site; it does not scan the files on your server. Keep your backups and updates, and use a malware scanner if you want one: they work alongside Sectora.
Yes. Sectora does not change how other plugins work, and they see the visitor's real IP address.
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.
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.
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.
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.
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.
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.