mysociety / fms-endpoint

basic problem-reports database and Open311 server, suitable for use with http://fixmystreet.org
Other
14 stars 29 forks source link

allow IP-restriction on clients/API keys #11

Open davewhiteland opened 12 years ago

davewhiteland commented 12 years ago

Add ability to check $_SERVER['REMOTE_ADDR'] for incoming post requests (submitting new reports over Open311) against the IP address for the API key or client -- reject unless match.

Get comma-separated IP address lists from both api_keys and clients table, and use that as a whitelist?

This is in anticipation of FMS-endpoint sometimes not being run over https+htauth for example; it's not equivalent, but it potentially lessens abuse.