< Back

Add-PodeLimitRule

Sat Jan 18, 2020 7:12 pm

NAME Add-PodeLimitRule



SYNOPSIS

Adds rate limiting rules for an IP address.





SYNTAX

Add-PodeLimitRule [-Type] <String> [-Values] <String[]> [-Limit] <Int32> [-Seconds] <Int32> [-Group]

[<CommonParameters>]





DESCRIPTION

Adds rate limiting rules for an IP address.





PARAMETERS

-Type <String>

What type of request are we limiting?



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Values <String[]>

A single, or an array of values.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Limit <Int32>

The maximum number of requests to allow.



Required? true

Position? 3

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Seconds <Int32>

The number of seconds to count requests before restarting the count.



Required? true

Position? 4

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-Group [<SwitchParameter>]

If supplied, groups of IPs in a subnet will be concidered as one IP.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Add-PodeLimitRule -Type IP -Values '127.0.0.1' -Limit 10 -Seconds 1













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Add-PodeLimitRule -Type IP -Values @('192.168.1.1', '10.10.1.0/24') -Limit 50 -Seconds 1 -Group















RELATED LINKS