> ## Documentation Index
> Fetch the complete documentation index at: https://interceptor-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

> [card] [Modify Request Body](https://interceptor-docs.requestly.com/http-rules/rule-types/modify-request-body.md)
>
> Adjust outgoing API request payloads to meet testing and development requirements. Add static or dynamic data to refine request structures.

> [card] [Modify API Response](https://interceptor-docs.requestly.com/http-rules/rule-types/modify-response-body.md)
>
> Simulate API responses to test scenarios and edge cases. Use static data or dynamic transformations to validate application behavior

> [card] [Modify Headers](https://interceptor-docs.requestly.com/http-rules/rule-types/modify-headers.md)
>
> Add, remove, or modify HTTP headers for debugging and control

> [card] [Cancel Request Rule](https://interceptor-docs.requestly.com/http-rules/rule-types/cancel-rule.md)
>
> Block specific network calls or simulate failure scenarios

> [card] [Modify Query Params](https://interceptor-docs.requestly.com/http-rules/rule-types/modify-query-params.md)
>
> Add, remove, or modify query parameters to refine API requests.

> [card] [Modify User Agents](https://interceptor-docs.requestly.com/http-rules/rule-types/modify-user-agents.md)
>
> Test different browser and device environments by customizing User-Agent headers.

> [card] [Redirect requests](https://interceptor-docs.requestly.com/http-rules/rule-types/redirect-rule.md)
>
> Redirect requests to different URLs to switch environments or resources during development.

> [card] [Replace String Rule](https://interceptor-docs.requestly.com/http-rules/rule-types/replace-strings.md)
>
> Modify URLs or paths by replacing specific substrings.

> [card] [Insert Script](https://interceptor-docs.requestly.com/http-rules/rule-types/insert-scripts.md)
>
> Inject JavaScript or CSS into web pages for advanced customization.

> [card] [Delay Network Requests](https://interceptor-docs.requestly.com/http-rules/rule-types/delay-network-requests.md)
>
> Simulate real-world network latencies by introducing delays.

> [card] [Map Local](https://interceptor-docs.requestly.com/http-rules/rule-types/map-local.md)
>
> Serve files from your local environment to test offline changes.

> [card] [Map Remote](https://interceptor-docs.requestly.com/http-rules/rule-types/map-remote.md)
>
> Redirect requests to different servers or environments for advanced testing.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.