⚙️API Integrazione
Pannello
Protection
5 min
{ "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" } } { "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" } } { "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" } } { "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" } } { "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" } } { "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" } } { "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" } } { "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" } } { "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" } } { "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" } }