It is possible to blacklist IP and IP prefixes by adding them to the database with:
./heroku run web/bin/blacklist-signup-ip 123.456.789.1
IP prefixes can also be added to block entire ranges e.g.:would block respectively all of:
./heroku run web/bin/blacklist-signup-ip 123.456.789
./heroku run web/bin/blacklist-signup-ip 123.456
./heroku run web/bin/blacklist-signup-ip 123
123.456.789.*
123.456.*
123.*
You can also add a note as:
./heroku run web/bin/blacklist-signup-ip 123.456.789.1 'IP blocked because asdf is ugly'
The list of blacklisted IPs can be obtained with:
./heroku psql -c 'SELECT * FROM "SignupBlacklistIp"'