Jump to content

block xhr requests with specific content in the header (ublock or other blocking program)

babadoctor

 

hi

 

i want to block xhr requests from my browser using ublock or another program like umatrix

 

https://this.website.com/api/*/test/*/specificad/*/specifictrackerrequest

 

the /specfictrackerrequest has a JSON request payload with content like...

 

foobar1:[

{

"event_type": "ad_tracker1",
 "client_timestamp": "..."

}

],

foobar2:[

{

"event_type": "ad_tracker2",
 "client_timestamp": "..."

}

],

 

 

 

in order for the website to work properly, i need to ONLY block the requests with specific words

 

 

for example, i want to block only the event types with "ad_tracker1" in them

 

Is there any easy way to do this?

 

 


 

 

 

OFF TOPIC: I suggest every poll from now on to have "**CK EA" option instead of "Other"

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×