Is there a way to implement IP filtering or IP access rules much like I would with nginx/apache to restrict or block certain IPs on Heroku?
Note: I
You should check out rack-attack
. Looks like it does the same as rack-block, but is much more widely used and updated frequently. To block a specific IP you can do this:
# Block requests from 1.2.3.4
Rack::Attack.blacklist('block 1.2.3.4') do |req|
# Requests are blocked if the return value is truthy
'1.2.3.4' == req.ip
end