Sarah Hoffmann
5464dec057
factor out parameter parsing into its own class
...
Allows to use the parsing functions in website/search.php and
utils/query.php as well.
2016-08-20 13:43:50 +02:00
Sarah Hoffmann
4f75f4cb6e
remove IP blocking and rate-limiting code
...
Closes #472 .
2016-07-18 21:33:09 +02:00
Sarah Hoffmann
d45524cbfb
introduce accessor function for URL parameter
...
These functions take care of type conversion and check that
the parameters contain legal values. The API now returns a
Bad Request error if the format is wrong.
2016-06-11 23:07:06 +02:00
Sarah Hoffmann
f9a488cd5a
remove 'closed for indexing' feature
...
Simultanous updates are fine these days.
2016-03-30 22:53:19 +02:00
Marc Tobias Metten
78a29b5a87
spaces-to-tabs for all *.php files
2016-02-27 00:02:20 +01:00
Brian Quinion
8ecd32b7dd
Return 429 Too Many Requests for rate limiting
2014-01-23 16:47:56 +00:00
Sarah Hoffmann
3470abad07
don't send blocked IPs to OSM's trac by default
2013-10-18 19:24:11 +02:00
Brian Quinion
490190b873
only add Access-Control-Allow-Headers if needed
2012-12-17 15:00:49 +00:00
Brian Quinion
0dd10c3fff
Change access control to implement more of CORS. Change so OPTIONS requests don't do an actual search/reverse request
2012-12-17 00:25:06 +00:00
Brian Quinion
01ea772255
restrict to one sleep per bucket. A second sleep while already sleeping results in a block.
2012-12-10 01:36:33 +00:00
Brian Quinion
fa90ece530
add an option for max number of sleeping threads
2012-12-08 18:55:17 +00:00
Brian Quinion
02e7cfd6f4
sort output of blocked list by block timestamp
2012-12-08 17:58:24 +00:00
Brian Quinion
a723b94291
remove debug
2012-12-08 17:43:18 +00:00
Brian Quinion
e03ae6d7eb
rate limiting using memcache
2012-12-08 17:38:10 +00:00
Brian Quinion
ab6a996772
nominatim refactoring
2010-10-23 23:12:37 +00:00