You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 6, 2020. It is now read-only.
It seems the SetIdentity method includes the port that the client has made the request from. So the ClientIP would look like this 192.168.1.1:32456. This port will change with different requests, especially when requests are coming from scrapers/spiders. This means the request gets a different identity key so previous requests are ignored, meaning the rate limit isn’t applied.
There may be a more obvious way to fix this issue? But my solution was to add the following to my custom filter implementation.
It seems the SetIdentity method includes the port that the client has made the request from. So the ClientIP would look like this
192.168.1.1:32456
. This port will change with different requests, especially when requests are coming from scrapers/spiders. This means the request gets a different identity key so previous requests are ignored, meaning the rate limit isn’t applied.There may be a more obvious way to fix this issue? But my solution was to add the following to my custom filter implementation.
The text was updated successfully, but these errors were encountered: