Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

Firefox DevToiols block all requests

  • 5 отговора
  • 1 има този проблем
  • 1 изглед
  • Последен отговор от fdoywugozklvsndgax

more options

Hi!

When you open network tab on Firefox devtools there is request blocking option. The hint below text box says "Add URL patterns here to block matching requests" but there is no documentation how to write patterns. I tried to google it like 10 different ways and did not find any documentation.

Hi! When you open network tab on Firefox devtools there is request blocking option. The hint below text box says "Add URL patterns here to block matching requests" but there is no documentation how to write patterns. I tried to google it like 10 different ways and did not find any documentation.

Всички отговори (5)

more options

This is merely about the URL you want to block. This can be the full URL to only block one specific file or only block files on a specific path or block everything from a server. You can possibly drag a specific request to the "block resource when the URL contains" bar and then remove trailing text until you are satisfied.

more options

You didnt read my question. I asked about patterns. For example how do I block every request that goes to let's say any subdomain of google.com (but not google.com itself)?

Or other example, how do I block any request? For example I dont know in advance what url/uri will be posted when I click submit button. I want to click button anyways to see request it makes but I dont want server to get that request.

So the question is how do I write patterns? Does it use regex? Does it have some custom syntax?

Any example patterns?

Променено на от fdoywugozklvsndgax

more options

I don't think that there is any pattern supported like you mean.

You can check the action on the form in the inspector to see what request will be send and block that URL.

more options

I cant accept it as answer. The text in devtools says "Start by adding a pattern or dragging a row from the network table"

It has word pattern.

more options

I cant accept it as answer. The text in devtools says "Start by adding a pattern or dragging a row from the network table"

It has word pattern.

Also the simplest pattern that blocks everything is *. This already proves that there is at least 1 pattern.