- Open Edge rules → Simulator and start from a template or write your own rules.
- Run the simulation on the last 24 hours, 7 or 30 days to see what would match.
- Save the rules, add the Crawler Protection add-on, connect Cloudflare or AWS WAF and turn on edge protection.
Simulator
Dashboard → Crawler Protection → Simulator (/dashboard/crawler-protection/simulator, Pro) replays candidate edge rules against the requests Valiron has observed for a website. Simulation is read-only: it never deploys rules or changes traffic.
Edge rules
A set of edge rules is an ordered list of up to 20 rules. Each rule has an ID, name, enabled flag, action and match:
| Field | Values |
|---|---|
action | block, or rate_limit with rate: { requests: 1–1000000, periodSeconds: 10 | 60 | 120 | 300 | 600 } counted per client IP |
who | { "kind": "everyone" }; { "kind": "declared", "agents": [...], "categories": [...] } (self-declared User-Agent, case-insensitive); { "kind": "verified", "crawlers": [...] } (claim plus the crawler's official IP ranges); { "kind": "claimed_unverified", "crawlers": [...] } (spoofed claims) |
paths | Up to 10 raw request paths, case-sensitive. * matches any characters including /. Empty means every path. |
methods | GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS. Empty means every method. |
Agent IDs come from GET /operator/crawlers/catalog. Verified and spoofed rules accept only crawlers with official evidence, and are never converted into User-Agent-only rules. A block rule that matches every path, method and client is refused. Saving a changed policy creates a new immutable revision (POST /operator/crawlers/policy?site=<id>); saving an unchanged policy returns the existing revision.
Results
Choose a period (24 hours, 7 or 30 days; at most 31 days) and the target edge. Results show:
- Observed requests in the window; Evaluated requests and coverage; Excluded requests that lack a field a rule needs (User-Agent, method, or client identity for rate limits); and Unknown outcomes where crawler evidence was unavailable at processing time.
- Simulated policy matches for block rules. Rules apply in order and the first matching block rule takes the request. Block rules are evaluated over every stored event, so these counts are exact for the stored data.
- Estimated rate-limited requests. Rate rules replay events in time order per hashed client IP, using the target's counting: Cloudflare's sliding window with a one-period mitigation, or AWS WAF's trailing window evaluated in 10-second steps. Results are always labeled estimates, because Cloudflare counts per data center and AWS evaluates rates periodically. Without client identities (
CRAWLER_LOG_HASH_SECRETunset when the events were stored) the result is Insufficient evidence. Replay stops after 2,000,000 events and is then marked partial. - Per rule: matches, undetermined requests, top routes and agents, and its enforceability at the target:
enforceable,requires_upgrade(Valiron add-on or your Cloudflare plan),requires_integration,unsupportedorinsufficient_evidence, with the reason. - Enforceable policy coverage: the share of simulated matches that come from rules the target can enforce today.
Matches are counts of observed requests. They are not verified savings or prevented server work. Runs with the same policy, window, target and evidence return the stored result. APIs: POST /operator/crawlers/simulations ({ site, policy | policyId, target, range | from/to }), GET /operator/crawlers/simulations?site=<id>, GET /operator/crawlers/simulations/:id.
Edge protection
Dashboard → Crawler Protection → Edge protection (/dashboard/crawler-protection/protection) deploys a saved policy as Valiron-managed rules in your own Cloudflare zone or AWS WAF web ACL. It requires the Crawler Protection add-on ($29.99/month on top of an active Pro subscription; included with Enterprise). Adding the add-on and turning Protection on are separate steps: paying deploys nothing.
-
Add-on. Pro owners add it from the page; the price is shown before purchase and prorated on the Pro subscription. Entitlement follows the Stripe subscription.
-
Connect your edge.
- Cloudflare: an API token scoped to the zone with Zone → Zone: Read and Zone → Zone WAF: Edit. Add Account → Account Filter Lists: Edit to enforce verified-crawler and spoofed-crawler rules, which use IP lists of the official ranges. Provide the zone ID.
- AWS WAF: an IAM role in the account that owns the web ACL. Its trust policy allows Valiron's AWS principal with the per-site external ID shown on the page. Its permissions policy lets Valiron manage only
valiron-<site>rule groups and IP sets, and update the web ACL. Provide the role ARN and web ACL ARN (CloudFront or regional). Web ACLs managed by AWS Firewall Manager are not supported.
Credentials are encrypted (AES-256-GCM) and never returned. Log-ingestion tokens cannot change rules, and WAF credentials cannot ingest logs. Connecting runs a permission check. It may create and immediately delete a disabled, non-matching Cloudflare rule, or an empty unattached AWS IP set; it never changes how traffic is handled.
-
Policy. Every enabled rule must be enforceable at the connected edge. Unsupported rules are never deployed: disable or change them first.
-
Turn Protection on. Valiron deploys the rules, reads them back from the provider, and shows Protecting only when the provider state matches the deployed revision.
What Valiron changes at the edge
All rules are scoped to the website's hostname (http.host, or the host header on AWS).
| Edge | Valiron-owned objects | Customer configuration |
|---|---|---|
| Cloudflare | Custom rules and rate limiting rules with ref valiron_<site>_<rule>, appended to the zone entry point rulesets; IP lists valiron_<site>_<crawler> | Other rules are never edited, reordered or removed |
| AWS WAF | One rule group (valiron-<site>-…) with block rules before rate-based rules, IPv4/IPv6 IP sets per verified crawler, and one rule Valiron-Managed-<site> appended after your rules in the web ACL | Every other web ACL rule and setting is preserved on update |
Plan limits are checked before deployment. Cloudflare custom rules: 5 (Free), 20 (Pro), 100 (Business), 1,000 (Enterprise). Rate limiting rules: 1, 2, 5 and 100. Rate periods: 10 s on Free, up to 60 s on Pro, up to 600 s on Business and Enterprise. Counting is per IP and per data center, and the mitigation lasts one period. Valiron counts your own rules against these limits. AWS WAF rate rules need a 60, 120, 300 or 600 second window and at least 10 requests. Verified Bing rules are not enforceable at either edge, because Bing is verified by reverse DNS.
States
| State | Meaning |
|---|---|
upgrade_required | The account does not have the add-on (or Enterprise). |
permissions_required | No edge is connected, or its permission check did not pass. |
observing | Connected, but no saved policy whose enabled rules are all enforceable. |
enforcement_ready | Ready to deploy. |
enabling / disabling | A deployment is running. |
protecting | Valiron rules are deployed and confirmed by provider read-back. |
deployment_failed | A first activation failed and anything partial was removed. |
rollback_required | The provider state does not match: an update or disable failed, or Valiron rules were changed outside Valiron (drift). Re-apply the deployed revision or turn Protection off. |
Turning Protection off removes only Valiron-owned rules, lists, groups and IP sets, keeps traffic insights and simulation running, and preserves the audit trail. The toggle shows off only after the provider confirms removal; a failed disable stays rollback_required. Turning off is always allowed, even after the add-on ends. Changing or disconnecting the integration requires Protection to be off.
Revisions and rollback. Each deployment records the policy revision, outcome and provider read-back. Deploy the latest revision or roll back to any previously deployed one from Deployment history.
Drift and evidence refresh. Every 10 minutes Valiron reads each protected site's Valiron-owned rules. A mismatch moves the site to rollback_required and is recorded. When a crawler's official IP ranges change, the same policy is re-applied with the new ranges.
Add-on ends. Rules stay deployed for a 7-day grace period, then Valiron turns Protection off.
Actual enforcement
Actual enforcement shows blocks and rate limits by Valiron-managed rules, by rule and policy revision, route and source, from your connected Cloudflare or AWS WAF logs. A request counts only when the provider rule ID in the log (Cloudflare SecurityRuleIDs, AWS WAF terminatingRuleId or rule-group rule) belongs to a Valiron-managed rule. A 403 or 429 response, or a block by one of your own rules, is never counted as a Valiron action. Keep log delivery connected to see enforcement.
APIs (dashboard session): GET /operator/crawlers/protection/entitlement; GET /operator/crawlers/edge/status|capabilities|history|actions?site=<id>; GET /operator/crawlers/edge/aws-setup?site=<id>; POST|DELETE /operator/crawlers/edge/integration?site=<id>; POST /operator/crawlers/edge/preflight|enable|rollback|reapply|disable?site=<id>. Enable and rollback accept { "policyId": "<revision id>" }. Errors: protection_upgrade_required (403), integration_required, permissions_required, rules_not_enforceable (with details), deployment_in_progress, disable_protection_first (409).