Temporarily removed throttling section from readme
Andrew Kane
committed Aug 19, 2016
commit 0054f5a4e686ac47d892439962b62b8f7b5f9648
Showing 1
changed file with
0 additions
and 12 deletions
README.md
+0
-12
| @@ | @@ -530,18 +530,6 @@ Send a `POST` request as `Content-Type: application/json` to `/ahoy/events` with |
| Use an array to pass multiple events at once. | |
| - | ## Throttling |
| - | |
| - | To throttle requests to Ahoy endpoints, check out [Rack::Attack](https://github.com/kickstarter/rack-attack). Here’s a sample config: |
| - | |
| - | ```ruby |
| - | Rack::Attack.throttle("ahoy/ip", limit: 20, period: 1.minute) do |req| |
| - | if req.path.start_with?("/ahoy/") |
| - | req.ip |
| - | end |
| - | end |
| - | ``` |
| - | |
| ## Reference | |
| By default, Ahoy create endpoints at `/ahoy/visits` and `/ahoy/events`. To disable, use: | |