---
title: "\u653B\u6483\u9632\u6B62\u306E\u69CB\u6210"
description: "\u4EE5\u4E0B\u306EJSON\u306F\u3001\u3053\u306E\u6A19\u6E96\u5316\u3055\u308C\u305F\u69CB\u6210\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u4F8B\u3067\u3059\u3002"
language: ja
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ja/docs/application-setting-components/attack-prevention-configuration
original: https://documentation.invantive.eu/en/docs/application-setting-components/attack-prevention-configuration
updated: 2026-12-03T18:13:22Z
license: https://documentation.invantive.eu/ja/
---

## 例
以下のJSONは、この標準化された構成コンポーネントの例です:
```json
{ //
  // Whether a trusted proxy (such as AWS CloudFront) is running 
  // in front of the My App site.
  //
  "RunsBehindProxy": true
  //
  // Duration of an IP-address based blocks, started from the first hit.
  //
, "BlockDurationSec": 3600
  //
  // Number of hits before a block on IP-address is applied.
  //
, "MaxHitsBeforeBlock": 3
}
```

## 定義
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://invantive.com/schemas/defs/AttackPreventionConfig.schema.json",
  "title": "AttackPreventionConfig",
  "description": "Attack prevention middleware.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "RunsBehindProxy": {
      "type": "boolean",
      "description": "Whether the server runs behind a proxy.",
      "default": false
    },
    "BlockDurationSec": {
      "type": "integer",
      "description": "Duration of a block in seconds."
    },
    "MaxHitsBeforeBlock": {
      "type": "integer",
      "description": "Number of hits before a block is applied."
    }
  }
}
```
