Commit 4902f05
Eric Bower
·
2026-07-17 09:47:08 -0400 EDT
parent e87f1c0
chore: ban ip runbook
1 files changed,
+16,
-0
+16,
-0
1@@ -0,0 +1,16 @@
2+# How to ban an ip address from creating an account
3+
4+You also need to [delete the original account](./delete-account.md) because blocking ip only works for the signup flow in our TUI.
5+
6+Log into production db, then drop into psql
7+
8+```bash
9+cd pico
10+make psql
11+```
12+
13+```sql
14+insert into block_signups (ip, reason) values ('0.0.0.0', 'you spam too much');
15+```
16+
17+The IP column is an [inet data type](https://www.postgresql.org/docs/current/datatype-net-types.html#DATATYPE-INET) to enforce correct structure.