Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 781 Bytes

api.rest

File metadata and controls

29 lines (21 loc) · 781 Bytes

@host = http://127.0.0.1:15000

### Returns lists of LOADED and ENABLED rules GET {{host}}/api/rules/list

### Enables ONLY specified set of rules (others will be disabled) PUT {{host}}/api/rules/set/enabled ?rule=all &rule=school

### Performs a check for a specified HOST and PATH over a set of currently ENABLED rules GET {{host}}/api/rules/check ?host=vk.com &path=/im/sel?id=123456789

### Returns last activity GET {{host}}/api/log/recent

### Enables logging of BLOCKED requests PUT {{host}}/api/log/set/blocked?record=true

### Disables logging of BLOCKED requests PUT {{host}}/api/log/set/blocked?record=0

### SAVES and then CLEARS the firewall log contents PUT {{host}}/api/log/save-and-clear

### Cleans-up the contents of the firewall's log PUT {{host}}/api/log/clear