Sign In
Access your IPWhois.net account
No account? Create one
Home / Blacklist / Docs / Ruby Integration

Ruby Integration

Rack middleware for Rails and Sinatra. Step-by-step setup guide with code examples.
186,817 IPs 8,269 reports Free API
Ruby Integration
Ruby 3.0+ Rails Sinatra

Rack middleware for Ruby on Rails and Sinatra that blocks blacklisted IPs and reports brute-force attempts.

Block
Check visitor IPs against the blacklist and return 403 for threats.
Report
Report detected attacks back to the IPWhois.net Blacklist community.
Coming Soon

This integration guide is being written. In the meantime, you can use the Blacklist API directly:

Check if an IP is blacklisted
GET https://bl.ipwhois.net/api/check?ip=1.2.3.4
Report a malicious IP
POST https://bl.ipwhois.net/api/report ip=1.2.3.4&type=brute-force&message=Description

Need this integration? Contact us and we'll prioritize it.