Cancel Rule

Category
HTTP Rules (Modify Traffic)
API Client
FAQ
File Server
Getting Started
Guides
HTTP Rules (Modify Traffic)
Inspect Traffic
Installation
Mock Server
New Section
Public API
Sessions Replay
Setup
TroubleShooting
Workspace
Getting Started
Installation
Setup
Inspect Traffic
API Client
HTTP Rules (Modify Traffic)
Mock Server
File Server
Workspace
Public API
Sessions Replay
FAQ
Guides
New Section
TroubleShooting
Β 

Cancel Rule

Cancel Rule is primarily used for blocking requests to avoid distraction.
notion image
  1. Source Condition:Β Source condition is where you set criteria for the rules. You can useΒ URL,Β HostΒ orΒ PathΒ withΒ Regex,Β Contains,Β WildcardΒ orΒ EqualsΒ to match the source request. Learn more about source conditionsΒ here.
  1. Source FiltersΒ : You can define better targeting conditions and restrict rules to be applied on specific webpages (or domains), request types, request methods, or request payload. Learn more about source filtersΒ here.

Popular Use Cases

  • Blocking WebsitesΒ β€” You can use Cancel Rule to avoid distraction by blocking websites e.g. youtube, twitter, facebook.
  • Testing error scenariosΒ - Test your app when certain resource is not loaded. You can use Cancel rule to block a certain request which is not mandatory in your app and test how your app behaves without that specific resource.
Β