AntiSSRFPolicy.DenyAllUnspecifiedIPs Property

Definition

Determines whether all IP addresses should be blocked by default or only DeniedAddresses should be blocked.

To allow specific addresses, see addAllowedAddresses.

public bool DenyAllUnspecifiedIPs { get; set; }

Property Value

bool

  • true if all IP addresses NOT specified by AddAllowedAddresses should be blocked.
  • false if only addresses in DeniedAddresses should be blocked.

Default: false (unless using InternalOnly, which sets it to true)

Exceptions

AntiSSRFException Thrown when attempting to change the property after the policy has been used to create a handler via GetHandler().


Copyright © 2026 Microsoft Corporation. Distributed under the MIT license.