Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows Server 2008 IIS 7 設定 IP 位址與網域限制封鎖特定 IP

編輯:Windows 2003 常見問題解答

操作步驟

  1. 開啟「系統管理工具」→「Internet Information Services (IIS) 管理員」。
  2. 展開伺服器節點 → 「網站」→ 選取目標站台。
  3. 功能視圖中雙擊「IP 位址與網域限制」。
  4. 右側「動作」面板 → 「新增拒絕項目」。
  5. 輸入欲封鎖的 IP 位址或 IP 範圍 (CIDR 格式) → 確定。

補充說明

  • 預設行為為「允許」,新增拒絕項目後符合條件的用戶端將收到 HTTP 403.6 回應。
  • 若需「僅允許特定 IP」,可在「編輯功能設定」將預設存取行為改為「拒絕」,再新增「允許項目」。
  • 設定即時生效,無需重新啟動 IIS。
  • 搭配動態 IP 封鎖 (Dynamic IP Restrictions) 模組可自動封鎖短時間內大量請求的 IP。
Copyright © Windows教程網 All Rights Reserved