First method: Through the IP address and domain name restrictions in IIS
On the Web site you want to set the right key property directory security
IP address and Domain name restrictions
Authorization access and denial of access instructions
If you are authorized to access, the following is a denial of access to the IP
If you are denying access to the following filled in is an accessible IP
The second approach: through IP Security Policy
Step one: Open Start, program, admin tools, local Security policy
Step Two: Point "IP Security Policy, in
Local computer, then right-click in the right column and click "Create IP Security Policy (C)" In the pop-up menu.
Step three: In the IP Security Policy Wizard, next
Fourth Step: Enter the name, click Next
Step Fifth: Select "Activate default response rule" and click Next
Sixth step, default option, direct point next
Seventh step: In the warning indicated, select "Yes (Y)"
Eighth step: Select Edit Properties, click Finish
Step Nineth: Remove the security rule for < dynamic > Default response, and click "Add (D)"
Tenth step: In the Security Rule Wizard, click Next
11th Step: Direct point to next in tunnel endpoint
12th step: Select all network Connections in the network type and click Next
13th step: In the IP filter list, click "Add (A)"
14th Step: Click "Add (A)" In the IP Filter list that pops up
15th step: In the Welcome to use the IP Filter wizard, click Next directly
Step 16th: Enter a description and select the mirror in the IP filter description and Mirror properties. And then click Next.
Step 17th: Select "My IP Address" from the source address in the IP communication source, and click Next
The 18th step: in the target address of IP communication target Select "a specific IP address", the IP address as you want to limit the IP, such as 192.168.0.199, and then point next
Step 19th: Select TCP in the IP protocol type and click Next
Step 20th: Select this port from the IP protocol port and fill in the port you want to restrict, such as 80, and then click Next
Step 21st: Do not select the Edit property in the complete IP filter, and then click Finish
22nd step: OK at the IP filter list point, then select New IP Filter list (just created), point to Next
23rd Step: In the filter action, point add
24th Step: On the Welcome page, click Next, then enter a name, click Next
Step 25th: Select Block (L) in the behavior of the set filter action, and then click Next
Step 26th: Click Finish, skip to filter action, select "New Filter Action" (newly established), point next
27th Step: Finish the page point, and then jump out of the new rule
property, click OK, and then eject the new IP Security Policy
property, click OK, and then right-click on the new IP Security Policy, point to assign (A), and end