The Replace Rule
in Requestly lets you seamlessly load your local RTB script into client websites, facilitating easy testing of RTB setups. This is ideal for evaluating different RTB configurations or versions in a live environment, delivering accurate performance insights without changing the client’s production environment.
Easily Test your Local RTB Scripts on Production Without Deploying
Kanishk Rawat
September 10, 2024
2MIN READ
Discover how to test your local RTB scripts directly on production without deploying. Learn a seamless method to validate ad setups using Requestly.

Introduction
When testing RTB scripts on production, constant deployments slow down the process and increase the risk of system disruptions. This makes it frustrating to quickly validate script changes, especially for minor adjustments.
With Requestly, you can bypass deployments altogether by injecting your local RTB scripts directly into the live environment. This allows you to test in real-time, saving time and reducing the risks associated with frequent deployments.
Test RTB Scripts on Production

- Replace: This allows you to specify which part of the URL you want to replace. In this case,
https://rtb.com
is the URL segment being modified. - Replace With: This indicates what the original URL should be replaced with. In this instance,
https://rtb.com
is replaced byhttp://localhost:3007
. - Source Condition: This allows you to set up specific conditions, such as URL patterns, to target particular domains or requests. For example, the URL is set to
https://rtb.com
- Test URL Condition: You can check if the rules you’ve set up work correctly by testing them on specific URLs.
- Filter Out Condition: You can apply
filters
to limit which requests are affected, making sure only the ones you want are modified.
Or create your own Rule
by following the steps below
Here’s how to set up a rule to test local RTB scripts on client websites using Requestly’s Replace Rule:
- Open Requestly:Open Requestly app.
- Create a New Rule: Click
New Rule
and choose theReplace Rule
option. - Define the URL Pattern: Enter the
URL
where you want to inject the local RTB script. - Configure the Replacement: Enter the URL of your
local RTB script
in the replacement field to swap it with theexisting script
. - Save the Rule: Click
Save
to apply the rule.
Interactive Guide
Check this interactive and easy explanation of how to use Replace String Rule
Conclusion
Try this Replace Rule to load and test a local RTB script on production without deploying. This approach ensures you can evaluate your script in the live environment without affecting the actual data. Requestly is used by over 200k developers and 1000+ companies for efficient network request management.
Explore More:
Written by
Kanishk Rawat
Kanishk Rawat, a tech enthusiast since childhood, has mastered programming through dedication. Whether solo or in a team, he thrives on challenges, crafting innovative solutions .
Contents
Subscribe for latest updates
Share this article
Related posts

How to use access token from another API response
Learn how to capture, store, and reuse API authentication tokens in Requestly. Simplify authentication by using environment variables and collection authorization.
Dinesh Thakur
February 24, 2025

Organized 125k APIs and improved productivity by 20% using the Requestly API Client: Cyrisma
Cyrisma improved API management with Requestly’s API client, boosting security, reducing errors, and accelerating development. Learn how they did it
Sagar Soni
February 19, 2025
How to Test FastAPI Efficiently with Requestly API Client
Learn how to test FastAPI APIs with Requestly API Client for easy debugging, request modifications, and automation. Take control over your API testing workflow!
Dinesh Thakur
February 13, 2025