Security

Divctor takes security seriously. This page explains the security features we provide and the best practices you should follow to keep your API keys and data safe.

HTTPS Encryption

All API requests are served over HTTPS (TLS 1.2 or 1.3, depending on client support). Your API keys and data are encrypted in transit and cannot be intercepted by third parties.

💡 Note: Never make requests over plain HTTP. The API rejects all non-HTTPS traffic.

API Key Security

Your API key is the primary way to authenticate requests. Treat it like a password.

Best Practices

⚠️ Warning: If you suspect your key has been compromised, delete it immediately from the Dashboard and create a new one.

Domain Restriction

You can restrict your API key to specific domains. Requests from other domains will be rejected with a 403 DOMAIN_NOT_ALLOWED error.

To set allowed domains, go to your app details page in the Dashboard.

Example
example.com, app.example.com

Request Signing (HMAC)

For POST requests, you can sign the request body using your signing secret and HMAC-SHA256. This ensures that the request has not been tampered with.

Include the signature in the X-Signature header as a hex string.

Header
X-Signature: a1b2c3d4e5f6...
💡 Note: Request signing is optional. You can enable it per app in the Dashboard.

Rate Limiting

All API keys are subject to rate limits. Each API key can send up to 60 requests per 60 seconds. If you exceed the limit, you will receive a 429 RATE_LIMITED error.

Data Storage

All data is stored in Cloudflare D1 databases, which are distributed globally and secured with industry-standard encryption.

Security Checklist

  • ✅ Use HTTPS for all requests.
  • ✅ Store API keys in environment variables.
  • ✅ Restrict keys to specific domains.
  • ✅ Rotate keys regularly.
  • ✅ Enable request signing (optional).
  • ✅ Monitor your usage in the Dashboard.