---
title: Protección
slug: es/proteccion
docTags: 
createdAt: 2022-06-21T12:46:04.000Z
---

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://api.fsflt.net/panel/protection/blacklist/add",
  "name": "Add personal blacklist",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "X-API-KEY",
        "type": "string",
        "description": "Your API key"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "customer_code",
        "type": "Number",
        "description": "Customer code"
      },
      {
        "kind": "required",
        "name": "domain",
        "type": "string",
        "children": [],
        "description": "ex. test-site.com"
      },
      {
        "kind": "required",
        "name": "profile_code",
        "type": "Number",
        "description": "Profile code"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "CjqCQMzH6_EbiapSBjpWz",
        "code": "{\n  \"code\": 200,\n  \"content\": \"Domain blacklisted successfully\"\n}",
        "language": "200",
        "customLabel": ""
      },
      {
        "id": "goj84CnWc1nEi6_5t7vAg",
        "code": "{\n  \"code\": 200,\n  \"content\": \"Domain already present in Personal Blacklists\"\n}",
        "language": "405",
        "customLabel": ""
      },
      {
        "id": "BpHbZ-LncaZMQq8I1cZ5B",
        "code": "",
        "language": "100",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "goj84CnWc1nEi6_5t7vAg"
  },
  "examples": {
    "languages": [
      {
        "id": "69vghA3RQvC7_wjxKGZ0J",
        "code": "curl -X 'POST' \\\r\n  'https://api.fsflt.net/panel/protection/blacklist/add' \\\r\n  -H 'accept: application/json' \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -H \"X-API-KEY: YOUR_API_KEY\" \\\r\n  -d '{YOUR_PARAM}'",
        "language": "shell",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "69vghA3RQvC7_wjxKGZ0J"
  },
  "description": "Add a domain to a personal blacklist",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "add-personal-blacklist",
  "legacyHash": "gUKe_Gl4JW2Z7vD8Nwiif"
}
```
:::

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://api.fsflt.net/panel/protection/whitelist/add",
  "name": "Add personal whitelist",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "X-API-KEY",
        "type": "string",
        "description": "Your API key"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "customer_code",
        "type": "Number",
        "description": "Customer Code"
      },
      {
        "kind": "required",
        "name": "domain",
        "type": "string",
        "children": [],
        "description": "ex. test-site.com"
      },
      {
        "kind": "required",
        "name": "profile_code",
        "type": "Number",
        "description": "Profile code"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "KyKxoaT7fBKUZB_IhYZ6_",
        "code": "{\n  \"code\": 200,\n  \"content\": \"Domain whitelisted successfully\"\n}",
        "language": "200",
        "customLabel": ""
      },
      {
        "id": "uZiCg2F6CA_TJ0Mhm7tUo",
        "code": "{\n  \"code\": 200,\n  \"content\": \"Domain already present in Personal Whitelist\"\n}",
        "language": "405",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "KyKxoaT7fBKUZB_IhYZ6_"
  },
  "examples": {
    "languages": [
      {
        "id": "jev1LjnnE3QqbmHuhVhmc",
        "code": "curl -X 'POST' \\\r\n  'https://api.fsflt.net/panel/protection/whitelist/add' \\\r\n  -H 'accept: application/json' \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -H \"X-API-KEY: YOUR_API_KEY\" \\\r\n  -d '{YOUR_PARAM}'",
        "language": "shell",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "jev1LjnnE3QqbmHuhVhmc"
  },
  "description": "Add a domain to a personal whitelist",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "add-personal-whitelist",
  "legacyHash": "eRODf5TrMP5wLytPxezqQ"
}
```
:::

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://api.fsflt.net/panel/protection/whitelist/remove",
  "name": "Remove personal whitelist",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "X-API-KEY",
        "type": "string",
        "description": "Your API key"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "customer_code",
        "type": "Number",
        "description": "Customer Code"
      },
      {
        "kind": "required",
        "name": "domain",
        "type": "string",
        "children": [],
        "description": "ex. test-site.com"
      },
      {
        "kind": "required",
        "name": "profile_code",
        "type": "Number",
        "description": "Profile code"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "KyKxoaT7fBKUZB_IhYZ6_",
        "code": "{\n  \"code\": 200,\n  \"content\": \"Domain whitelisted successfully\"\n}",
        "language": "200",
        "customLabel": ""
      },
      {
        "id": "uZiCg2F6CA_TJ0Mhm7tUo",
        "code": "{\n  \"code\": 200,\n  \"content\": \"Domain already present in Personal Whitelist\"\n}",
        "language": "405",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "KyKxoaT7fBKUZB_IhYZ6_"
  },
  "examples": {
    "languages": [
      {
        "id": "jev1LjnnE3QqbmHuhVhmc",
        "code": "curl -X 'POST' \\\r\n  'https://api.fsflt.net/panel/protection/whitelist/add' \\\r\n  -H 'accept: application/json' \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -H \"X-API-KEY: YOUR_API_KEY\" \\\r\n  -d '{YOUR_PARAM}'",
        "language": "shell",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "jev1LjnnE3QqbmHuhVhmc"
  },
  "description": "Remove a domain from a personal whitelist",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "remove-personal-whitelist",
  "legacyHash": "Sy-0K28ocR0NUysEEu0jJ"
}
```
:::

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://api.fsflt.net/panel/protection/blacklist/remove",
  "name": "Remove personal blacklist",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "X-API-KEY",
        "type": "string",
        "description": "Your API key"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "customer_code",
        "type": "Number",
        "description": "Customer Code"
      },
      {
        "kind": "required",
        "name": "domain",
        "type": "string",
        "children": [],
        "description": "ex. test-site.com"
      },
      {
        "kind": "required",
        "name": "profile_code",
        "type": "Number",
        "description": "Profile code"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "KyKxoaT7fBKUZB_IhYZ6_",
        "code": "{\n  \"code\": 200,\n  \"content\": \"Domain whitelisted successfully\"\n}",
        "language": "200",
        "customLabel": ""
      },
      {
        "id": "uZiCg2F6CA_TJ0Mhm7tUo",
        "code": "{\n  \"code\": 200,\n  \"content\": \"Domain already present in Personal Whitelist\"\n}",
        "language": "405",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "KyKxoaT7fBKUZB_IhYZ6_"
  },
  "examples": {
    "languages": [
      {
        "id": "jev1LjnnE3QqbmHuhVhmc",
        "code": "curl -X 'POST' \\\r\n  'https://api.fsflt.net/panel/protection/whitelist/add' \\\r\n  -H 'accept: application/json' \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -H \"X-API-KEY: YOUR_API_KEY\" \\\r\n  -d '{YOUR_PARAM}'",
        "language": "shell",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "jev1LjnnE3QqbmHuhVhmc"
  },
  "description": "Remove a domain from a personal blacklist",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "remove-personal-blacklist",
  "legacyHash": "_8knTh8207LJ4WzHBH64C"
}
```
:::

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://api.fsflt.net/panel/protection/category/block",
  "name": "Block a category",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "X-API-KEY",
        "type": "string",
        "description": "Your API key"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "customer_code",
        "type": "Number",
        "description": "Customer code"
      },
      {
        "kind": "required",
        "name": "category",
        "type": "string",
        "description": "Category ex. porn, warez, ecc"
      },
      {
        "kind": "required",
        "name": "profile_code",
        "type": "Number",
        "description": "Profile code"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "WjCpn6bQ7G5aGGMe7omst",
        "code": "{\n    \"code\": 200,\n    \"content\": \"Category blocked successfully\"\n}",
        "language": "200",
        "customLabel": ""
      },
      {
        "id": "sAdqA3p0LEw-EIXCM4u69",
        "code": "{\n    \"code\": 405,\n    \"content\": \"Category already blocked\"\n}",
        "language": "405",
        "customLabel": ""
      },
      {
        "id": "rdOItlgzDTyc5drBJKVhl",
        "language": "412",
        "code": "{\n    \"code\": 412,\n    \"content\": \"You cannot manage this category, you need a valid ProPlus License to handle this.\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "rdOItlgzDTyc5drBJKVhl"
  },
  "examples": {
    "languages": [
      {
        "id": "pp3wqBgKlwsYQ62rxwmwt",
        "code": "curl -X 'POST' \\\r\n  'https://api.fsflt.net/panel/protection/category/block' \\\r\n  -H 'accept: application/json' \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -H \"X-API-KEY: YOUR_API_KEY\" \\\r\n  -d '{YOUR_PARAM}'",
        "language": "shell",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "pp3wqBgKlwsYQ62rxwmwt"
  },
  "description": "Block a category for a given profile",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "block-a-category",
  "legacyHash": "bjO5YdJpvQ1HzSp416nzr"
}
```
:::

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://api.fsflt.net/panel/protection/category/allow",
  "name": "Allow a category",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "X-API-KEY",
        "type": "string",
        "description": "Your API key"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "customer_code",
        "type": "Number",
        "description": "Customer code"
      },
      {
        "kind": "required",
        "name": "category",
        "type": "string",
        "description": "Category ex. porn, warez, ecc"
      },
      {
        "kind": "required",
        "name": "profile_code",
        "type": "Number",
        "description": "Profile code"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "RZIe1UE8wTbkhH84yTTvt",
        "code": "{\n    \"code\": 200,\n    \"content\": \"Category allowed successfully\"\n}",
        "language": "200",
        "customLabel": ""
      },
      {
        "id": "vbWqsmPRMmRAmcYe4tPv-",
        "code": "{\n    \"code\": 405,\n    \"content\": \"Category already allowed\"\n}",
        "language": "405",
        "customLabel": ""
      },
      {
        "id": "Ek-lzxhf8cjczAbz8Kfgx",
        "language": "412",
        "code": "{\n    \"code\": 412,\n    \"content\": \"You cannot manage this category, you need a valid ProPlus License to handle this.\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "Ek-lzxhf8cjczAbz8Kfgx"
  },
  "examples": {
    "languages": [
      {
        "id": "KQ2IJh-ychjq_rltwkg8p",
        "code": "curl -X 'POST' \\\r\n  'https://api.fsflt.net/panel/protection/category/allow' \\\r\n  -H 'accept: application/json' \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -H \"X-API-KEY: YOUR_API_KEY\" \\\r\n  -d '{YOUR_PARAM}'",
        "language": "shell",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "KQ2IJh-ychjq_rltwkg8p"
  },
  "description": "Allow a category for a given profile",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "allow-a-category",
  "legacyHash": "0QGVFYgpiNiyCceMVx4gq"
}
```
:::

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://api.fsflt.net/panel/protection/safesearch/enable",
  "name": "Enable Safesearch",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "X-API-KEY",
        "type": "string",
        "description": "Your API key"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "customer_code",
        "type": "Number",
        "description": "Customer code"
      },
      {
        "kind": "required",
        "name": "profile_code",
        "type": "Number",
        "description": "Profile code"
      },
      {
        "name": "type",
        "kind": "required",
        "type": "string",
        "description": "Type: youtube, searchengines",
        "children": []
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "tjhsmJlZ0unPzaozyrX1Y",
        "code": "{\n    \"code\": 200,\n    \"content\": \"SafeSearch protection enabled successfully\"\n}",
        "language": "200",
        "customLabel": ""
      },
      {
        "id": "DCoW9lFPCaVoPkjf89ipj",
        "language": "409",
        "code": "{\n    \"code\": 409,\n    \"content\": \"Please provide a valid customer\"\n}",
        "customLabel": ""
      },
      {
        "id": "bbJQDfHTKk9ffXj5MJoQq",
        "language": "406",
        "code": "{\n    \"code\": 409,\n    \"content\": \"Profile not found\"\n}",
        "customLabel": ""
      },
      {
        "id": "Tfeoi8evTbBufG_NVRJLs",
        "language": "412",
        "code": "{\n    \"code\": 412,\n    \"content\": \"Please provide a correct type\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "Tfeoi8evTbBufG_NVRJLs"
  },
  "examples": {
    "languages": [
      {
        "id": "EcAYVjGDlVKbovIYiyff8",
        "code": "curl -X 'POST' \\\r\n  'https://api.fsflt.net/panel/protection/category/blocked' \\\r\n  -H 'accept: application/json' \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -H \"X-API-KEY: YOUR_API_KEY\" \\\r\n  -d '{YOUR_PARAM}'",
        "language": "shell",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "EcAYVjGDlVKbovIYiyff8"
  },
  "description": "Enable the safesearch option",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "enable-safesearch",
  "legacyHash": "lDGFsbecb3G2rA5TcZtNR"
}
```
:::

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://api.fsflt.net/panel/protection/safesearch/disable",
  "name": "Disable Safesearch",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "X-API-KEY",
        "type": "string",
        "description": "Your API key"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "customer_code",
        "type": "Number",
        "description": "Customer code"
      },
      {
        "kind": "required",
        "name": "profile_code",
        "type": "Number",
        "description": "Profile code"
      },
      {
        "name": "type",
        "kind": "required",
        "type": "string",
        "description": "Type: youtube, searchengines",
        "children": []
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "tjhsmJlZ0unPzaozyrX1Y",
        "code": "{\n    \"code\": 200,\n    \"content\": \"SafeSearch protection disabled successfully\"\n}",
        "language": "200",
        "customLabel": ""
      },
      {
        "id": "DCoW9lFPCaVoPkjf89ipj",
        "language": "409",
        "code": "{\n    \"code\": 409,\n    \"content\": \"Please provide a valid customer\"\n}",
        "customLabel": ""
      },
      {
        "id": "bbJQDfHTKk9ffXj5MJoQq",
        "language": "406",
        "code": "{\n    \"code\": 409,\n    \"content\": \"Profile not found\"\n}",
        "customLabel": ""
      },
      {
        "id": "Tfeoi8evTbBufG_NVRJLs",
        "language": "412",
        "code": "{\n    \"code\": 412,\n    \"content\": \"Please provide a correct type\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "tjhsmJlZ0unPzaozyrX1Y"
  },
  "examples": {
    "languages": [
      {
        "id": "EcAYVjGDlVKbovIYiyff8",
        "code": "curl -X 'POST' \\\r\n  'https://api.fsflt.net/panel/protection/category/blocked' \\\r\n  -H 'accept: application/json' \\\r\n  -H \"Content-Type: application/json\" \\\r\n  -H \"X-API-KEY: YOUR_API_KEY\" \\\r\n  -d '{YOUR_PARAM}'",
        "language": "shell",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "EcAYVjGDlVKbovIYiyff8"
  },
  "description": "Disable the safesearch option",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "disable-safesearch",
  "legacyHash": "-hDyEjBS5q33OoPaHwt5i"
}
```
:::

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://api.fsflt.net/panel/protection/country/block",
  "name": "Block a Country",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "X-API-KEY",
        "type": "string",
        "description": "Your API key"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "customer_code",
        "type": "Number",
        "description": "Customer code"
      },
      {
        "kind": "required",
        "name": "profile_code",
        "type": "Number",
        "description": "Profile code"
      },
      {
        "name": "country_code",
        "kind": "required",
        "type": "string",
        "description": "Country codes can be found in /countries/list/ Endpoint",
        "children": []
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "tjhsmJlZ0unPzaozyrX1Y",
        "code": "{\n    \"code\": 200,\n    \"content\": \"Country blocked successfully\"\n}",
        "language": "200",
        "customLabel": ""
      },
      {
        "id": "DCoW9lFPCaVoPkjf89ipj",
        "language": "409",
        "code": "{\n    \"code\": 409,\n    \"content\": \"Please provide a valid customer\"\n}",
        "customLabel": ""
      },
      {
        "id": "bbJQDfHTKk9ffXj5MJoQq",
        "language": "406",
        "code": "{\n    \"code\": 409,\n    \"content\": \"Profile not found\"\n}",
        "customLabel": ""
      },
      {
        "id": "Tfeoi8evTbBufG_NVRJLs",
        "language": "412",
        "code": "{\n    \"code\": 412,\n    \"content\": \"Country already blocked\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "tjhsmJlZ0unPzaozyrX1Y"
  },
  "examples": {
    "languages": [
      {
        "id": "cYQM4vFK9wekc_24OyjdB",
        "language": "curl",
        "code": "curl --location 'https://api.fsflt.net/panel/protection/country/block' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json' \\\n--data '{\"customer_code\":\"Number\",\"profile_code\":\"Number\",\"country_code\":\"string\"}'",
        "customLabel": ""
      },
      {
        "id": "kCWBl_cBmugBwiswBsCod",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'POST',\n   'url': 'https://api.fsflt.net/panel/protection/country/block',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   },\n   body: JSON.stringify({\n      \"customer_code\": \"Number\",\n      \"profile_code\": \"Number\",\n      \"country_code\": \"string\"\n   })\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "3esjHMNE93yACHHzCQOZE",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"customer_code\": \"Number\",\n   \"profile_code\": \"Number\",\n   \"country_code\": \"string\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.fsflt.net/panel/protection/country/block\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "Fth_-GUefP9xNYAUu-HWF",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://api.fsflt.net/panel/protection/country/block\"\n\npayload = json.dumps({\n   \"customer_code\": \"Number\",\n   \"profile_code\": \"Number\",\n   \"country_code\": \"string\"\n})\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "qp4Yt2LRhLkafCDD8Ithe",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.fsflt.net/panel/protection/country/block\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"customer_code\": \"Number\",\n   \"profile_code\": \"Number\",\n   \"country_code\": \"string\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "cYQM4vFK9wekc_24OyjdB"
  },
  "description": "Geoblocking => Block a country",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "block-a-country",
  "legacyHash": "5joG_PfblVkk6i2Rn2oP8"
}
```
:::

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://api.fsflt.net/panel/protection/country/allow",
  "name": "Allow a Country",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "X-API-KEY",
        "type": "string",
        "description": "Your API key"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "customer_code",
        "type": "Number",
        "description": "Customer code"
      },
      {
        "kind": "required",
        "name": "profile_code",
        "type": "Number",
        "description": "Profile code"
      },
      {
        "name": "country_code",
        "kind": "required",
        "type": "string",
        "description": "Country codes can be found in /countries/list/ Endpoint",
        "children": []
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "tjhsmJlZ0unPzaozyrX1Y",
        "code": "{\n    \"code\": 200,\n    \"content\": \"Country allowed successfully\"\n}",
        "language": "200",
        "customLabel": ""
      },
      {
        "id": "DCoW9lFPCaVoPkjf89ipj",
        "language": "409",
        "code": "{\n    \"code\": 409,\n    \"content\": \"Please provide a valid customer\"\n}",
        "customLabel": ""
      },
      {
        "id": "bbJQDfHTKk9ffXj5MJoQq",
        "language": "406",
        "code": "{\n    \"code\": 409,\n    \"content\": \"Profile not found\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "tjhsmJlZ0unPzaozyrX1Y"
  },
  "examples": {
    "languages": [
      {
        "id": "cYQM4vFK9wekc_24OyjdB",
        "language": "curl",
        "code": "curl --location 'https://api.fsflt.net/panel/protection/country/block' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json' \\\n--data '{\"customer_code\":\"Number\",\"profile_code\":\"Number\",\"country_code\":\"string\"}'",
        "customLabel": ""
      },
      {
        "id": "kCWBl_cBmugBwiswBsCod",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'POST',\n   'url': 'https://api.fsflt.net/panel/protection/country/block',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   },\n   body: JSON.stringify({\n      \"customer_code\": \"Number\",\n      \"profile_code\": \"Number\",\n      \"country_code\": \"string\"\n   })\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "3esjHMNE93yACHHzCQOZE",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"customer_code\": \"Number\",\n   \"profile_code\": \"Number\",\n   \"country_code\": \"string\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.fsflt.net/panel/protection/country/block\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "Fth_-GUefP9xNYAUu-HWF",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://api.fsflt.net/panel/protection/country/block\"\n\npayload = json.dumps({\n   \"customer_code\": \"Number\",\n   \"profile_code\": \"Number\",\n   \"country_code\": \"string\"\n})\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "qp4Yt2LRhLkafCDD8Ithe",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.fsflt.net/panel/protection/country/block\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"customer_code\": \"Number\",\n   \"profile_code\": \"Number\",\n   \"country_code\": \"string\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "cYQM4vFK9wekc_24OyjdB"
  },
  "description": "Geoblocking => Allow a country",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "allow-a-country",
  "legacyHash": "kYeGhbgvssTNOXG1DpYc1"
}
```
:::

