App

Changelog · — A new IP page with IP history, Monocle Health Alerts, AI traffic in Explorer, and edge access tokens.

Policies

Monocle policies define how traffic is evaluated and what decision is returned for it: Allow or Block.

Where the decision is enforced depends on your integration. With an SDK integration, your application or infrastructure enforces it. With an edge integration (Cloudflare, CloudFront or Fastly), Monocle enforces it for you on the paths you choose; see Assess & Enforce.

Policies are available on Team plans and above.


Policy overview

The Policy page summarizes your current policy configuration and how it's affecting traffic.

Monocle Policy page overview, with the strategy, the summary cards, Explore and the Allowed vs Blocked Over Time chart

From the Policy page, you can see:

  • Your current policy strategy
  • Sessions Evaluated, Sessions Blocked and Traffic Impacted
  • An Allowed vs Blocked Over Time chart

Use this page to understand how your policy is performing before you change its configuration.


Explore policy activity

Select Explore on the Policy page to open Explorer on its Policy tab, where you can filter and investigate which traffic was allowed or blocked. See Explorer.

Explorer on the Policy tab, with Policy Decisions Over Time and the Blocked and Allowed rows

Configuring a policy

Select Configure to open Configure Policy. It has these sections, from top to bottom:

SectionWhat it doesPlan
ScopeThe paths this policy protects. Edge integrations only.Team
Block StrategyA preset that configures the traffic rulesTeam (Custom is Pro)
Traffic typeWhich traffic types to block, and the Max TTLPro
ServiceOverride the strategy for specific providersPro
GeoRestrict or allow traffic by country of originPro

Select Save to apply your changes. They affect how future traffic is evaluated.

Configure Policy with Scope and Block Strategy on an edge integration

Scope

Edge integrations only. Scope sets the paths this policy protects, and connected integrations apply them at the edge. Add exact paths such as /login or sections such as /checkout/*.

For how enforced paths work alongside assessment, the path rules, and what visitors see, read Assess & Enforce.


Block Strategy

Choose a preset to configure the traffic rules automatically.

StrategyWhat it doesBest for
Allow allAllows all traffic, with no blocking rules appliedMonitoring only
NormalBlocks all traffic from Spur-identified anonymous servicesMost use cases
AggressiveBlocks all traffic from anonymous servicesHigh-risk environments
Custom (Pro)Configure each rule yourselfGranular control

The Traffic type (including Max TTL), Service and Geo sections can only be edited when the strategy is Custom.

If you switch away from Custom, your traffic type, Max TTL, blocked services and geo settings reset to the defaults of the strategy you chose, and Monocle asks you to confirm first. If you switch to Normal or Aggressive, services you added to Exempt services are kept and saved with the new strategy, alongside the strategy's own exempt services. Allow all clears them.

Block Strategy with Normal selected

Traffic type (Pro)

With the Custom strategy, choose which traffic types to block:

RuleWhat it blocks
Deny anonymousAll anonymous users; all other users are allowed
Deny anonymous namedAnonymous users, but excludes unlabeled proxies
Deny VPNsConnections coming from VPNs
Deny proxiesConnections coming from proxies
Deny datacenterConnections coming from datacenters
Deny RDPConnections from Remote Desktop Protocol (RDP) sessions
Deny IP mismatchRequests where there's a mismatch in IP information
Traffic type rules with the Custom strategy

Max TTL (Pro)

In the Traffic type section, Max TTL (seconds) is the maximum time a policy decision stays valid. Each preset strategy sets its own Max TTL. With Custom, you choose it yourself.


Service (Pro)

Override the strategy for specific providers:

ControlWhat it does
Blocked servicesBlock assessments from these services, ignoring all other rules
Exempt servicesAllow assessments from these services, ignoring all other rules

Services use Spur's identifiers, such as GOOGLE_ONE_VPN or ICLOUD_RELAY_PROXY. Start typing to search.

Service controls for blocked and exempt services

Geo (Pro)

Restrict or allow traffic by country of origin:

ControlWhat it does
BlocklistBlock assessments from these countries
AllowlistAllow assessments from only these countries

Countries use ISO codes, such as US, GB or DE. Start typing to search.

Geo blocklist and allowlist controls

Plan availability

FeatureCommunityTeamProEnterprise
View the Policy pageUpgrade promptYesYesYes
Configure a policy (Scope, Allow all, Normal, Aggressive)NoYesYesYes
Custom strategy, Traffic type, Max TTL, Service and GeoNoView onlyYesYes