How to block an IP or IP segment from accessing your site via IIS settings

  
                                                                                                                                                                                         

Recently, I found that one of my websites posted a new article every day, and was immediately removed by a “black claw” and was advertised on other websites. This will inevitably lead to the quality of the website content. Falling and even affecting the weight of the entire site, in this case, I want to stop him from visiting my site. Do you also want to let an IP or IP segment access your website? Then let's stop him through IIS settings!

In fact, very simple, Microsoft has already helped us think of a good way:

1, open IIS, select the website to be set, open “properties & rdquo;-“ directory security ”, find & ldquo; IP address and domain name restrictions & rdquo;, point & ldquo; edit & rdquo;, Figure 1:
Figure 1

2, click & ldquo; add & rdquo;, if you want to block a If an IP accesses your website, then select <; a computer
”, enter the IP you want to block below, such as 192.168.1.1, as shown in Figure 2:
Figure 2 Br>

3. If you want to block a piece of IP access, then select “a group of computers>, as detailed below: If you want to block the IP segment 128.XXX at the beginning of 128, then in the “ Network
Identification" enter 128.1.1.1, "Subnet Mask" into 255.0.0.0; if you want to block the IP segment 137.25.XX at the beginning of 137.25, then in “ Network
Logo & rdquo; enter 137.25.1.1, & ldquo; subnet mask & rdquo; enter 255.255.0.0, as shown in Figure 3:
Figure 3

Through the above three simple steps, You can To easily block an IP or IP segment from accessing your site, don't try to stop the attack in this way. It looks like it can't resist the attack. . .



Copyright © Windows knowledge All Rights Reserved