Ban IPs (array)

API endpoint: POST /api/proxies/{PORT}/banips
*PORT : existing proxy port number
POST body
Required :
  • ips=["",""] [array] - IPs to ban
Optional :
  • domain="" [string] - Ban the IP for sending requests to the specified domain
  • ms=60000 [number] - Ban the IP for specified milliseconds
curl "{PORT}/banips" -H "Content-Type: application/json" -d "{\"ips\":[\"\",\"\"],\"domain\":\"\",\"ms\":60000}"


#!/usr/bin/env node
	method: 'POST',
	url: '{PORT}/banips',
	json: {'ips':['',''],'domain':'','ms':60000}
}).then(function(data){ console.log(data); },
	function(err){ console.error(err); });


package example;

import org.apache.http.HttpHost;
import org.apache.http.client.fluent.*;

public class Example {
  public static void main(String[] args) throws Exception {
String body = "{\"ips\":[\"\",\"\"],\"domain\":\"\",\"ms\":60000}"; String res = Executor.newInstance()

.bodyString(body, ContentType.APPLICATION_JSON))

System.out.println(res) }



using System;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;

public class Program {
  public static async Task Main() {
    var client = new HttpClient();
    var requestMessage = new HttpRequestMessage {
      Method = HttpMethod.Post,
RequestUri = new Uri("{PORT}/banips"),
Content = new StringContent(JsonConvert.SerializeObject(new {
ips = [ "","" ],
domain = "",
ms = 60000
}), Encoding.UTF8, "application/json")) }; var response = await client.SendAsync(requestMessage); var responseString = await response.Content.ReadAsStringAsync(); Console.WriteLine(responseString); } }


#!/usr/bin/env python
print('If you get error "ImportError: No module named requests", please install it:\n$ sudo pip install requests');
import requests

data = {'ips':['',''],'domain':'','ms':60000} r ='{PORT}/banips', data=data) print(r.content)

Was this article helpful?