

**推出 的新主控台體驗 AWS WAF**

您現在可以使用更新後的體驗，在主控台的任何位置存取 AWS WAF 功能。如需詳細資訊，請參閱[使用 主控台](https://docs.aws.amazon.com/waf/latest/developerguide/working-with-console.html)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 機器人控制範例：封鎖已驗證的機器人
<a name="waf-bot-control-example-block-verified-bots"></a>

若要封鎖已驗證的機器人，您必須新增規則來封鎖在 AWS WAF Bot Control 受管規則群組之後執行的機器人。若要這樣做，請識別您要封鎖的機器人名稱，並使用標籤比對陳述式來識別和封鎖它們。如果您想要只封鎖所有已驗證的機器人，您可以省略與`bot:name:`標籤的比對。

下列規則只會封鎖`bingbot`已驗證的機器人。此規則必須在 Bot Control 受管規則群組之後執行。

```
{
    "Name": "match_rule",
    "Statement": {
      "AndStatement": {
        "Statements": [
          {
            "LabelMatchStatement": {
              "Scope": "LABEL",
              "Key": "awswaf:managed:aws:bot-control:bot:name:bingbot"
            }
          },
          {
            "LabelMatchStatement": {
              "Scope": "LABEL",
              "Key": "awswaf:managed:aws:bot-control:bot:verified"
            }
          }
        ]
      }
    },
    "RuleLabels": [],
    "Action": {
      "Block": {}
    }
  }
```

下列規則會封鎖所有已驗證的機器人。

```
{
    "Name": "match_rule",
    "Statement": {
      "LabelMatchStatement": {
        "Scope": "LABEL",
        "Key": "awswaf:managed:aws:bot-control:bot:verified"
      }
    },
    "RuleLabels": [],
    "Action": {
      "Block": {}
    }
}
```