chenwardT / lol_stats2

Website to perform match aggregation and analysis for Riot Games' League of Legends.
2 stars 0 forks source link

Prevent unlimited querying for unknown summoners #24

Open chenwardT opened 8 years ago

chenwardT commented 8 years ago

If a summoner is not in the database, a request gets sent to Riot's API. However, a user shouldn't be able to spam search the site for an invalid summoner.

One solution is to keep a list of recently queried summoner names (standardized names) plus their region and shortcut to a summoner-not-found page until the name-region combination expires from said list.

chenwardT commented 8 years ago

Solution being implemented via InvalidSummonerQuery model.