> ## Documentation Index
> Fetch the complete documentation index at: https://docs.requestly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# HTTP Rules

> Learn about Requestly Interceptor's rule types like Redirect, Modify Headers, and Insert Script to customize and control your web requests effectively.

***

HTTP Rules in Requestly Interceptor enable you to efficiently control web traffic. With these rules, you can modify requests and responses, redirect or block network calls, insert custom scripts, and manage headers. These powerful tools help you customise and optimise your browsing experience for testing, debugging, or development purposes.

### Types of Rules

<CardGroup cols={2}>
  <Card title="Modify Request Body" href="/http-interception/http-rules/rule-types/modify-request-body">
    Adjust outgoing API request payloads to meet testing and development requirements. Add static or dynamic data to refine request structures.
  </Card>

  <Card title="Modify API Response" href="/http-interception/http-rules/rule-types/modify-response-body">
    Simulate API responses to test scenarios and edge cases. Use static data or dynamic transformations to validate application behavior
  </Card>

  <Card title="Modify Headers" href="/http-interception/http-rules/rule-types/modify-headers">
    Add, remove, or modify HTTP headers for debugging and control
  </Card>

  <Card title="Cancel Request Rule" href="/http-interception/http-rules/rule-types/cancel-rule">
    Block specific network calls or simulate failure scenarios
  </Card>

  <Card title="Modify Query Params" href="/http-interception/http-rules/rule-types/modify-query-params">
    Add, remove, or modify query parameters to refine API requests.
  </Card>

  <Card title="Modify User Agents" href="/http-interception/http-rules/rule-types/modify-user-agents">
    Test different browser and device environments by customizing User-Agent headers.
  </Card>

  <Card title="Redirect requests" href="/http-interception/http-rules/rule-types/redirect-rule">
    Redirect requests to different URLs to switch environments or resources during development.
  </Card>

  <Card title="Replace String Rule" href="/http-interception/http-rules/rule-types/replace-strings">
    Modify URLs or paths by replacing specific substrings.
  </Card>

  <Card title="Insert Script" href="/http-interception/http-rules/rule-types/insert-scripts">
    Inject JavaScript or CSS into web pages for advanced customization.
  </Card>

  <Card title="Delay Network Requests" href="/http-interception/http-rules/rule-types/delay-network-requests">
    Simulate real-world network latencies by introducing delays.
  </Card>

  <Card title="Map Local" href="/http-interception/http-rules/rule-types/map-local">
    Serve files from your local environment to test offline changes.
  </Card>

  <Card title="Map Remote" href="/http-interception/http-rules/rule-types/map-remote">
    Redirect requests to different servers or environments for advanced testing.
  </Card>
</CardGroup>
