Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Feature Idea: How to block specific request in synthetic script not entire domain

synthetics
script
feature-idea

#1

we have specific request/ resource to block in synthetic script. , so please advise on this .

example
domain : ancestrycdn.com
resource : ancestrycdn.com/core.js , ancestrycdn.com/at.js

block ancestrycdn.com/at.js

thanks


New Relic Edit

  • I want this too
  • I have more info to share (reply below)
  • I have a solution for this

0 voters

We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team.


#2

Hi @pmohite -

I’m afraid that’s not possible! There is the function in Synthetics scripting to $browser.addHostnameToBlackList(), and that does support /*/wildcards.

However, this is only valid on the hostname, not specific endpoints.

So you’d need to add:

$browser.addHostnameToBlackList('ancestrycdn.com')

which will block core.js as well as at.js

I’m going to convert this post into a feature idea, for the ability to add specific endpoints to the blacklist.