Eytch
Eytch

Reputation: 743

Block IP range on asp.net

I am using this code to block ip addresses on iis.

<ipSecurity allowUnlisted="false">
    <add ipAddress="1.1.1.1" allowed="true" />
    <add ipAddress="2.2.2.2" allowed="true" />
</ipSecurity>

Now, is it possible to block an iprange? thanks in advance

Upvotes: 0

Views: 346

Answers (1)

Migol
Migol

Reputation: 8448

You can use something like this:

<add ipAddress="169.254.0.0" subnetMask="255.255.0.0" />

Upvotes: 4

Related Questions