Rack Attack with black-listed IP's still letting those IPs in on Heroku #611
Replies: 4 comments
-
Same problem I am also getting? Which version of rails and redis version you are using ? |
Beta Was this translation helpful? Give feedback.
-
@Trimakas did you able to figure out this? |
Beta Was this translation helpful? Give feedback.
-
You can't really know the correct IP address of the client on Heroku, they do pass along it in the |
Beta Was this translation helpful? Give feedback.
-
I ran into this problem as well, and was able to sort it out. I could trigger a block in one browser, but then open up a different browser on the same machine only to find that I had access. It may be a similar problem for future lookers. I blindly copied the I highlighted the offending line. Rack Attack stops seeing your "real" IP and starts seeing the locally bound IPv6 address instead (i.e. -- port(ENV['PORT'] || 3000, "::")
++ port(ENV['PORT'] || 3000) Hopefully this helps someone! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've blacklisted a specific IP, setup the
rack-attack.rb
file in my initializers, and updated myapplication.rb
file. And I still am getting the following mess at around 30x a second.This is what I see in my logs:
But my
rack_attack.rb
which is inconfig/initializers
looks like this:And then I added this to my
application.rb
fileAnd this is all running in production on Heroku, What do you all think?
Beta Was this translation helpful? Give feedback.
All reactions