I will be implementing a filter to block request URLs that do not match a specific pattern.
To achieve this, you can utilize the request blocking feature within Google Chrome's network tab. Simply right click on the request Row and select "block request URL".
For instance, in the request blocking tab, I have 7 XMLHttpRequest(XHR) URLs sent with Ajax:
You can add a pattern (e.g., *family*
) and block requests with that specific pattern by clicking the plus sign.
Remember: Patterns are case sensitive.
Looking to block requests without the word "family"? Here's how:
Is it possible to use regular expressions for this purpose?