NetworkRestrictions
Namespace: PuppeteerSharp
public class NetworkRestrictionsNetwork restrictions that can be applied to a browser at runtime using RestrictNetworkAsync(NetworkRestrictions).
Inheritance: object
Properties
Section titled “Properties”Allowlist
Section titled “Allowlist”public string[] Allowlist { get; set; }A list of <a href=“https://urlpattern.spec.whatwg.org/">URLPattern</a> strings to allow.
Mutually exclusive with BlockList.
Passing an empty array or null means no restriction.
Value: string[]
BlockList
Section titled “BlockList”public string[] BlockList { get; set; }A list of <a href=“https://urlpattern.spec.whatwg.org/">URLPattern</a> strings to block.
Mutually exclusive with Allowlist.
Passing an empty array or null means no restriction.
Value: string[]
Made with love by Dario Kondratiuk