start blocking 101soundboards IPs too
This commit is contained in:
parent
43a33a00ee
commit
ac28ff8a39
|
|
@ -54,7 +54,7 @@ total_count = 21925602
|
|||
def get_user_tokens(cursor):
|
||||
query = f"""
|
||||
SELECT
|
||||
r.maybe_creator_user_token
|
||||
r.maybe_creator_user_token, r.creator_ip_address
|
||||
FROM
|
||||
tts_results as r
|
||||
LEFT OUTER JOIN
|
||||
|
|
@ -63,24 +63,38 @@ def get_user_tokens(cursor):
|
|||
r.maybe_creator_user_token = u.token
|
||||
WHERE
|
||||
r.raw_inference_text LIKE '%bulbarawr%'
|
||||
AND r.created_at > ( CURDATE() - INTERVAL 10 HOUR )
|
||||
AND r.created_at > ( CURDATE() - INTERVAL 1 HOUR )
|
||||
"""
|
||||
cursor.execute(query)
|
||||
results = cursor.fetchall()
|
||||
|
||||
user_tokens = [row[0] for row in results]
|
||||
user_tokens = [token for token in user_tokens if token is not None]
|
||||
user_tokens = set(user_tokens)
|
||||
return user_tokens
|
||||
|
||||
user_tokens = get_user_tokens(cursor)
|
||||
ip_addresses = [row[1] for row in results]
|
||||
ip_addresses = [ip for ip in ip_addresses if ip is not None]
|
||||
ip_addresses = set(ip_addresses)
|
||||
|
||||
return (user_tokens, ip_addresses)
|
||||
|
||||
(user_tokens, ip_addresses) = get_user_tokens(cursor)
|
||||
|
||||
print(user_tokens)
|
||||
print(len(user_tokens))
|
||||
print(len(ip_addresses))
|
||||
|
||||
with open('101_user_tokens.txt', 'w') as f:
|
||||
for user_token in user_tokens:
|
||||
f.write(user_token)
|
||||
f.write("\n")
|
||||
|
||||
with open('101_ip_addresses.txt', 'w') as f:
|
||||
for ip in ip_addresses:
|
||||
f.write(ip)
|
||||
f.write("\n")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ WHERE
|
|||
|
||||
--- Search for 101soundboards.com using us
|
||||
SELECT
|
||||
r.maybe_creator_user_token
|
||||
r.maybe_creator_user_token, r.creator_ip_address
|
||||
FROM
|
||||
tts_results as r
|
||||
LEFT OUTER JOIN
|
||||
|
|
|
|||
|
|
@ -0,0 +1,48 @@
|
|||
# It looks like 101soundboards has fewer IP addresses they can use.
|
||||
|
||||
104.143.54.63
|
||||
141.98.84.147
|
||||
141.98.84.44
|
||||
147.78.183.60
|
||||
174.107.171.93
|
||||
176.119.141.136
|
||||
178.20.30.32
|
||||
185.102.113.94
|
||||
185.152.92.89
|
||||
185.61.216.111
|
||||
185.61.221.200
|
||||
185.81.144.108
|
||||
185.81.144.90
|
||||
185.81.145.102
|
||||
185.81.145.168
|
||||
185.96.37.100
|
||||
193.203.11.59
|
||||
193.31.126.43
|
||||
194.156.124.101
|
||||
204.116.214.102
|
||||
212.119.46.69
|
||||
212.60.20.209
|
||||
213.108.0.114
|
||||
213.108.0.140
|
||||
213.108.0.157
|
||||
213.108.0.179
|
||||
213.108.0.235
|
||||
213.108.3.14
|
||||
45.10.164.163
|
||||
45.138.100.15
|
||||
45.66.208.149
|
||||
45.66.208.222
|
||||
5.181.169.143
|
||||
5.181.169.167
|
||||
5.181.169.83
|
||||
72.219.85.206
|
||||
76.0.25.232
|
||||
83.142.55.165
|
||||
98.143.187.29
|
||||
|
||||
# They have a few IPv6 addresses as well
|
||||
2600:6c64:4c7f:f11f:4171:9854:beed:6dde
|
||||
2601:205:c380:6810:5860:82ac:f25c:81de
|
||||
2601:300:4400:3290:1864:2e36:fdab:dd9b
|
||||
2601:648:8300:4cc0:a9c7:d8bc:9614:c76d
|
||||
2603:9001:3f00:4e29:e4e9:56c0:ffc:f1d5
|
||||
Loading…
Reference in New Issue