Lock your origin

If your server still accepts requests from anyone, an attacker who finds its real address simply goes around SecOps. Locking the origin closes that gap: SecOps adds a secret header to every request it forwards, and your server refuses any request without it.

Get your header and value

Open Settings › Websites › Lock your origin. It shows:

ItemExample
HeaderX-SecOps-Origin-Auth
ValueA long random secret, one per account. Copy it with the Copy button
SecOps edge IPsThe addresses the edge connects from, when your platform supports an IP allowlist

The same panel has How to set this up on your origin, which fills your real value and edge IPs into the snippets below. Here they show placeholders.

Snippets for your server or host

Compare the header in constant time where the language offers it (the Express, Flask, Django and PHP snippets do), and keep the value in an environment variable or secret store rather than in source control.

WordPress plugin

On self-hosted WordPress you can use the plugin instead of a snippet. In Settings › Websites › Lock your origin, click Download the WordPress plugin, then in WordPress:

  1. Plugins › Add New › Upload Plugin, choose the zip, then Activate.
  2. Settings › SecOps Origin Lock: paste the value and save.
  3. Set Lock to Monitor for a day. It counts requests that went around SecOps and blocks nothing.
  4. Set Lock to On. This only works from a page that came through SecOps with the right value, so you can't lock yourself out.

If you ever are locked out, add define( 'SECOPS_ORIGIN_LOCK_OFF', true ); to wp-config.php. To keep the value out of the database, put define( 'SECOPS_ORIGIN_LOCK_SECRET', '...' ); there instead. WP-CLI and WordPress cron run from the server itself keep working. The plugin only covers pages WordPress builds, not files the web server sends directly, such as images in wp-content/uploads: firewall the edge IPs to cover those.

Shopify

Shopify doesn't support putting its stores behind a third-party proxy, and a Shopify store can't be made to refuse requests that skip SecOps, so there is no Shopify origin lock. SecOps can still protect what you run yourself next to the shop, such as your own app, API or a headless storefront on your own server.

Test the lock

Click Test lock. SecOps sends a request to each origin without the header and reports one of:

ResultMeaning
LockedThe origin refused the request. Done
Not lockedThe origin answered a request without the header. Anyone can bypass SecOps: apply a snippet
The origin refused SecOps tooIt refuses requests with the header as well. The value on the origin doesn't match; copy it again
SecOps couldn't reach this originThe origin didn't answer. Check the origin URL and that it is online
Not checkedThe origin isn't a public HTTPS address, so it was skipped

Only public HTTPS origins are tested, redirects are not followed, and you can run the test once every 15 seconds.

Also allow only the edge IPs (optional)

On servers you run yourself, also firewall the origin so it only accepts connections from the SecOps edge IPs. The header still works where that is impossible, such as Netlify, Vercel or other shared hosting.

Rotate the secret

Click Rotate secret if the value ever leaks (for example, an origin debug page that echoes request headers). From that moment SecOps sends the new value, and your origin refuses SecOps until you update it, so do it when you can change the origin straight away. Then click Test lock.