# Browser monitors: Unable to block specific requests (owing to limitations on the length of regular expressions)

**URL:** <https://community.dynatrace.com/t/browser-monitors-unable-to-block-specific-requests-owing-to-limitations-on-the-length-of-regular-expressions/43396>\
**Category:** Troubleshooting\
**Tags:** browser-monitors, synthetic-monitoring\
**Created:** [January 9, 2024, 12:20pm UTC](https://community.dynatrace.com/t/browser-monitors-unable-to-block-specific-requests-owing-to-limitations-on-the-length-of-regular-expressions/43396 "2024-01-09T12:20:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nandini\_balakri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nandini_balakri/32/13262_2.png) [@nandini\_balakri](https://community.dynatrace.com/u/nandini_balakri)\
**Post date:** [January 9, 2024, 12:20pm UTC](https://community.dynatrace.com/t/browser-monitors-unable-to-block-specific-requests-owing-to-limitations-on-the-length-of-regular-expressions/43396/1 "2024-01-09T12:20:00Z")

</div>

## **Summary**

This article explains why Dynatrace Browser monitors may fail to block specific requests and how to resolve it.The issue is caused by a limitation in the Chrome Extension platform (MV3), which restricts the length of regular expressions used in request-blocking rules

## **Problem**

When configuring **Block specific requests** in a Dynatrace Browser monitor:

- Requests aren’t blocked as expected
- Configuration can’t be saved
- Validation or changes fail silently

* * *

## **Error Behavior**

You may observe:

- Blocking rules not applied
- Unable to save monitor configuration changes
- Only partial edits allowed (e.g., name or frequency updates)

* * *

## **Cause**

The Dynatrace Synthetic Recorder (a Chrome extension) is subject to **Manifest V3 (MV3) limitations**.As a result:

- Regular expressions used in **Block specific requests**
- Cannot exceed **90 characters**

If the limit is exceeded:

- The rule is ignored
- Configuration changes can’t be saved fully

* * *

## **Resolution**

### ✅ **Fix – Reduce the regex or match pattern length**

Ensure your blocking rule:

- Is **≤ 90 characters**
- Uses simplified or more efficient matching

* * *

### ✅ **Example**

❌ Too long (will fail)

```auto
https://example.com/api/very-long-path-with-multiple-query-parameters-and-dynamic-values

```

✅ Shortened pattern

```auto
example.com/api/*

```

* * *

### ✅ **What to expect after fixing**

Once the pattern is shortened:

- Blocking rules are applied correctly
- Full configuration becomes editable again
- Save operation succeeds

* * *

## **Important Notes**

- This is a **platform limitation** , not a Dynatrace bug
- Applies specifically to:
  - Browser monitors
  - Request-blocking rules using regex or match patterns

* * *

## **Limitations**

If the rule exceeds the length:

- 🚫 Blocking does not work
- 🚫 Some monitor settings cannot be saved
- ✅ Only basic properties (name, thresholds, frequency) can still be modified

* * *

## **Best Practices**

- ✅ Use **short, wildcard-based patterns** instead of long regex
- ✅ Avoid including full URLs with query strings
- ✅ Break complex rules into simpler patterns where possible
- ✅ Validate pattern length before saving

* * *

## **When to Use This Guide**

Use this troubleshooting when:

- Blocking requests doesn’t work
- Monitor configuration fails to save
- You are using long regex or URL match strings

* * *

## **What’s Next**

If the issue persists

- Review all request-blocking patterns
- Confirm each is within the 90-character limit
- Open a chat and provide
  - a link to the browser monitor that you’re troubleshooting.
  - an explanation of the behavior you’re seeing, and what you’re expecting.
  - the troubleshooting steps you have already completed.

### Related reading

📖&nbsp;&nbsp;[Configure browser monitors](https://docs.dynatrace.com/docs/shortlink/browser-monitors-config#block-requests)

📖&nbsp;&nbsp;[Synthetic Troubleshooting Map](https://community.dynatrace.com/topic/250426)
