-geo $limit {
- default 1;
- 2001:978:2:2c::172:6 0;
- 2001:978:2:2c::172:7 0;
- 2001:978:2:2c::172:8 0;
- 2001:978:2:2c::172:b 0;
- 2001:978:2:2c::172:c 0;
- 2001:978:2:2c::172:d 0;
- 130.117.76.6 0;
- 130.117.76.7 0;
- 130.117.76.8 0;
- 89.16.162.21 0;
- 89.16.162.22 0;
- 46.235.224.148 0;
- 209.132.180.180 0;
- 209.132.180.168 0;
- 8.43.85.23 0; # gnome
-}
-
-map $http_user_agent $blocked_user_agent {
+geo $whitelisted {
+ default 0;
+<% @frontends.each do |frontend| -%>
+<% frontend.ipaddresses(:role => :external).sort.each do |address| -%>
+ <%= address %> 1;
+<% end -%>
+<% end -%>
+ 46.235.224.148 1;
+ 209.132.180.180 1;
+ 209.132.180.168 1;
+ 8.43.85.3 1; # gnome
+ 8.43.85.4 1; # gnome
+ 8.43.85.5 1; # gnome
+ 2620:52:3:1:5054:ff:fe0a:75a4 1; # gnome
+ 2620:52:3:1:5054:ff:fe0a:75a2 1; # gnome
+ 2620:52:3:1:5054:ff:fe0a:75aa 1; # gnome
+ 34.234.151.67 1; # gnome - https://github.com/openstreetmap/operations/issues/1160
+ 54.165.53.199 1; # gnome - https://github.com/openstreetmap/operations/issues/1160
+ 35.153.15.118 1; # gnome - https://github.com/openstreetmap/operations/issues/1160
+}
+
+map $server_protocol$http_user_agent $cleaned_user_agent {
+ default $http_user_agent;
+ "~^HTTP/1..Mozilla/" Script$http_user_agent;
+}
+
+map $missing_email$missing_referer$cleaned_user_agent $blocked_user_agent {