Available since: 1.9.3
Add one deny ip rule.
rule
- IP address filter rule, specify only the prefix, 127.0.1
, 127.0
, etc.Status reply.
ssdb 127.0.0.1:8888> list_allow_ip
key
-----------------
all
1 result(s) (0.000 sec)
(0.000 sec)
ssdb 127.0.0.1:8888> add_allow_ip 127.0.0.1
ok
(0.000 sec)
ssdb 127.0.0.1:8888> list_allow_ip
key
-----------------
127.0.0.1
1 result(s) (0.000 sec)
(0.000 sec)
ssdb 127.0.0.1:8888> del_allow_ip 1.1.1.1
ok
(0.000 sec)
ssdb 127.0.0.1:8888> list_allow_ip
key
-----------------
127.0.0.1
1 result(s) (0.000 sec)
(0.000 sec)
ssdb 127.0.0.1:8888> del_allow_ip 127.0.0.1
ok
(0.000 sec)
ssdb 127.0.0.1:8888> list_allow_ip
key
-----------------
0 result(s) (0.000 sec)
(0.000 sec)
ssdb 127.0.0.1:8888>