Skip to content

Commit e0e673b

Browse files
committed
Ban Russing scraping IPs on Apache level
1 parent bed1855 commit e0e673b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ansible/group_vars/tileservers.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ ufw:
2525
russian_slow_scraper:
2626
from_ip: 95.27.93.166
2727
to_port: 443
28-
# more than one day until they got HTTP 503 scraping zoom level <= 12
29-
OJSC_Rostelecom_scraping:
30-
from_ip: "95.179.120.0/21"
31-
to_port: 443
3228

3329
apache:
3430
modules:
@@ -276,6 +272,10 @@ apache:
276272
RewriteCond expr "%{REMOTE_ADDR} -ipmatch '78.94.48.98'" [OR]
277273
# Vodafone West, QGIS, 45k per day
278274
RewriteCond expr "%{REMOTE_ADDR} -ipmatch '95.223.72.184'" [OR]
275+
# tile scraping from Rostelecom, about 1 million requests per day
276+
RewriteCond expr "%{REMOTE_ADDR} -ipmatch '95.179.116.0/22'" [OR]
277+
# tile scraping from Rostelecom, about 1 million requests per day
278+
RewriteCond expr "%{REMOTE_ADDR} -ipmatch '95.179.120.0/21'" [OR]
279279
# More than 20k tile request per IP and day but strange user agents and no referers
280280
RewriteCond "%{HTTP_USER_AGENT}" "Mozilla/4.7[35]"
281281
RewriteRule "." "-" [R=429,L]

0 commit comments

Comments
 (0)