Class NetworkRestrictions
- Namespace
- PuppeteerSharp
- Assembly
- PuppeteerSharp.dll
Network restrictions that can be applied to a browser at runtime using RestrictNetworkAsync(NetworkRestrictions).
public class NetworkRestrictions
- Inheritance
-
NetworkRestrictions
Properties
Allowlist
A list of URLPattern strings to allow.
Mutually exclusive with BlockList.
Passing an empty array or null means no restriction.
public string[] Allowlist { get; set; }
Property Value
- string[]
BlockList
A list of URLPattern strings to block.
Mutually exclusive with Allowlist.
Passing an empty array or null means no restriction.
public string[] BlockList { get; set; }
Property Value
- string[]