Debugging multiple scripts on a webpage can be overwhelming, especially when header bidding scripts interfere with other functionalities. This interference complicates identifying the root cause of issues and delays testing.
Requestly’s browser extension provides a simple solution to block header bidding scripts, allowing developers to test other scripts in isolation for more efficient troubleshooting.
Block a header bidding scripts
The Cancel Rule
in Requestly allows you to effortlessly block header bidding scripts on client websites, enabling isolated testing of other scripts. This is perfect for debugging and evaluating different configurations without interference from header bidding scripts, providing accurate insights into performance without altering the client’s production environment.
-
Source Condition: This is where you decide which requests to
Block
orcancel
. In the example, any request that containsexample.com/header-bidding.js
in the URL will be affected. - 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.
Install Requestly Browser Extension if not installed already
Or create your own Rule
by following the steps below
Here’s how to set up a rule to block header bidding scripts for isolated testing using Requestly’s Cancel Rule:
- Open Requestly: Open Requestly app.
-
Create a New Rule: Click on
New Rule
and select theCancel Request
option. - Define the URL Pattern: Enter the URL pattern of the header bidding script you want to block.
- Apply the Rule: Save the rule to block the specified header bidding script on the website.
Interactive Guide
Check this interactive and easy explanation of how to use Cancel Request Rule
Conclusion
Try this Cancel Rule to block header bidding scripts and test other scripts on production without affecting the live environment. This approach allows you to isolate and evaluate specific scripts without interference from header bidding, ensuring accurate testing. Requestly is trusted by over 200k developers and 1000+ companies for seamless network request management.
Explore More:
Top comments (0)