How to unblock your or any ip
- First connect to the specific server console (Heroku)
heroku run rails console -a powr-staging
- Destroy the record in the Blocklisted Table (Hint: IP-ADDRESS is the actual ip value)
Blocklisted.find_by(word: 'IP-ADDRESS').destroy
- Then delete the cache for blocklisted ips
Fallback::Cache.delete('blocklisted_ips')
- Remove from the Rack Redis
RACK_REDIS.flushall
Tags: Unblock IP, Rack Attack
If user was blocked while making several payment attempts - then user will not be in db, only in redis, so flush the cache.