Skip to content

Commit ef20385

Browse files
committed
Send black tiles to requests with "flutter_map (unknown)"
1 parent 2f3cdd2 commit ef20385

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ansible/group_vars/tileservers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ apache:
201201
202202
# Requests with invalid URLs (missing style name), 300k requests per day, user-agent is a Samsung TV
203203
RewriteCond "%{HTTP_USER_AGENT}" "SMART-TV; Linux; Tizen 4.0"
204+
# Generic user-agent
205+
RewriteCond "%{HTTP_USER_AGENT}" "^flutter_map \(unknown\)$" [OR]
204206
RewriteRule "^/[0-9]" "/tile-util/black.png" [PT]
205207
206208
# Embedded, unpatched software
@@ -250,8 +252,6 @@ apache:
250252
RewriteCond "%{HTTP_USER_AGENT}" "^Go-http-client/" [OR]
251253
# Go-Tiles-API client, cannot find what this user-agent means, looks like a default user agent
252254
RewriteCond "%{HTTP_USER_AGENT}" "^Go-Tiles-API/" [OR]
253-
# map client for Flutter
254-
RewriteCond "%{HTTP_USER_AGENT}" "^flutter_map \(unknown\)$" [OR]
255255
# generic osmdroid user agent
256256
RewriteCond "%{HTTP_USER_AGENT}" "^com.osmdroid.maps$" [OR]
257257
# WindowsPowerShell (more than 40k requests/day from a single IP)

0 commit comments

Comments
 (0)