-
Notifications
You must be signed in to change notification settings - Fork 0
IP Filter API
YuanPad uses IP Filter to block IPs which were abused to send junk comments, IP filter is an important part of the anti-spam system.
-
GET
index.php?controller=badip&action=list
Receive a list of all IPs in the black list.
-
POST
index.php?controller=badip&action=create
Add an IP address to the black list.
-
POST
index.php?controller=badip&action=update
Remove one or more IPs from the black list.
-
GET
index.php?controller=badip&action=list
Receive a list of all IPs in the black list.
Request:
Request Header Type Description RequestVerificationToken string Required Response:
{ "statusCode": 200, "statusText": "OK", "response": [{ "ip": "192.168.1.251" }, { "ip": "192.168.1.15" }] }
-
POST
index.php?controller=badip&action=create
Add an IP address to the black list, and receive the list of all blocked IPs.
Request:
Request Header Type Description RequestVerificationToken string Required Query String Parameter Type Description ip string Required. The IP address to be added into the black list
Response:
{ "statusCode": 200, "statusText": "OK", "response": [{ "ip": "210.78.137.46" }] }
-
POST
index.php?controller=badip&action=update
Remove one or more IPs from the black list.
Request:
Request Header Type Description RequestVerificationToken string Required Query String Parameter Type Description select_ip array Required. The IP addresses to be removed from the black list
Response:
{ "statusCode": 200, "statusText": "OK", "response": [{ "ip": "192.168.1.54" }] }