-
Notifications
You must be signed in to change notification settings - Fork 0
/
ip-check.py
7 lines (7 loc) · 8.97 KB
/
ip-check.py
1
2
3
4
5
6
7
import requests
us_chicago = ["188.215.95.1", "188.215.95.2", "188.215.95.3", "188.215.95.4", "188.215.95.5", "188.215.95.6", "188.215.95.7", "188.215.95.8", "188.215.95.9", "188.215.95.10", "188.215.95.11", "188.215.95.12", "188.215.95.13", "188.215.95.14", "188.215.95.15", "188.215.95.16", "188.215.95.17", "188.215.95.18", "188.215.95.19", "188.215.95.20", "188.215.95.21", "188.215.95.22", "188.215.95.23", "188.215.95.24", "188.215.95.25", "188.215.95.26", "188.215.95.27", "188.215.95.28", "188.215.95.29", "188.215.95.30", "188.215.95.31", "188.215.95.32", "188.215.95.33", "188.215.95.34", "188.215.95.35", "188.215.95.36", "188.215.95.37", "188.215.95.38", "188.215.95.39", "188.215.95.40", "188.215.95.41", "188.215.95.42", "188.215.95.43", "188.215.95.44", "188.215.95.45", "188.215.95.46", "188.215.95.47", "188.215.95.48", "188.215.95.49", "188.215.95.50", "188.215.95.51", "188.215.95.52", "188.215.95.53", "188.215.95.54", "188.215.95.55", "188.215.95.56", "188.215.95.57", "188.215.95.58", "188.215.95.59", "188.215.95.60", "188.215.95.61", "188.215.95.62", "188.215.95.63", "188.215.95.64", "188.215.95.65", "188.215.95.66", "188.215.95.67", "188.215.95.68", "188.215.95.69", "188.215.95.70", "188.215.95.71", "188.215.95.72", "188.215.95.73", "188.215.95.74", "188.215.95.75", "188.215.95.76", "188.215.95.77", "188.215.95.78", "188.215.95.79", "188.215.95.80", "188.215.95.81", "188.215.95.82", "188.215.95.83", "188.215.95.84", "188.215.95.85", "188.215.95.86", "188.215.95.87", "188.215.95.88", "188.215.95.89", "188.215.95.90", "188.215.95.91", "188.215.95.92", "188.215.95.93", "188.215.95.94", "188.215.95.95", "188.215.95.96", "188.215.95.97", "188.215.95.98", "188.215.95.99", "188.215.95.100", "188.215.95.101", "188.215.95.102", "188.215.95.103", "188.215.95.104", "188.215.95.105", "188.215.95.106", "188.215.95.107", "188.215.95.108", "188.215.95.109", "188.215.95.110", "188.215.95.111", "188.215.95.112", "188.215.95.113", "188.215.95.114", "188.215.95.115", "188.215.95.116", "188.215.95.117", "188.215.95.118", "188.215.95.119", "188.215.95.120", "188.215.95.121", "188.215.95.122", "188.215.95.123", "188.215.95.124", "188.215.95.125", "188.215.95.126", "188.215.95.127", "188.215.95.128", "188.215.95.129", "188.215.95.130", "188.215.95.131", "188.215.95.132", "188.215.95.133", "188.215.95.134", "188.215.95.135", "188.215.95.136", "188.215.95.137", "188.215.95.138", "188.215.95.139", "188.215.95.140", "188.215.95.141", "188.215.95.142", "188.215.95.143", "188.215.95.144", "188.215.95.145", "188.215.95.146", "188.215.95.147", "188.215.95.148", "188.215.95.149", "188.215.95.150", "188.215.95.151", "188.215.95.152", "188.215.95.153", "188.215.95.154", "188.215.95.155", "188.215.95.156", "188.215.95.157", "188.215.95.158", "188.215.95.159", "188.215.95.160", "188.215.95.161", "188.215.95.162", "188.215.95.163", "188.215.95.164", "188.215.95.165", "188.215.95.166", "188.215.95.167", "188.215.95.168", "188.215.95.169", "188.215.95.170", "188.215.95.171", "188.215.95.172", "188.215.95.173", "188.215.95.174", "188.215.95.175", "188.215.95.176", "188.215.95.177", "188.215.95.178", "188.215.95.179", "188.215.95.180", "188.215.95.181", "188.215.95.182", "188.215.95.183", "188.215.95.184", "188.215.95.185", "188.215.95.186", "188.215.95.187", "188.215.95.188", "188.215.95.189", "188.215.95.190", "188.215.95.191", "188.215.95.192", "188.215.95.193", "188.215.95.194", "188.215.95.195", "188.215.95.196", "188.215.95.197", "188.215.95.198", "188.215.95.199", "188.215.95.200", "188.215.95.201", "188.215.95.202", "188.215.95.203", "188.215.95.204", "188.215.95.205", "188.215.95.206", "188.215.95.207", "188.215.95.208", "188.215.95.209", "188.215.95.210", "188.215.95.211", "188.215.95.212", "188.215.95.213", "188.215.95.214", "188.215.95.215", "188.215.95.216", "188.215.95.217", "188.215.95.218", "188.215.95.219", "188.215.95.220", "188.215.95.221", "188.215.95.222", "188.215.95.223", "188.215.95.224", "188.215.95.225", "188.215.95.226", "188.215.95.227", "188.215.95.228", "188.215.95.229", "188.215.95.230", "188.215.95.231", "188.215.95.232", "188.215.95.233", "188.215.95.234", "188.215.95.235", "188.215.95.236", "188.215.95.237", "188.215.95.238", "188.215.95.239", "188.215.95.240", "188.215.95.241", "188.215.95.242", "188.215.95.243", "188.215.95.244", "188.215.95.245", "188.215.95.246", "188.215.95.247", "188.215.95.248", "188.215.95.249", "188.215.95.250", "188.215.95.251", "188.215.95.252", "188.215.95.253", "188.215.95.254", "192.101.67.1", "192.101.67.2", "192.101.67.3", "192.101.67.4", "192.101.67.5", "192.101.67.6", "192.101.67.7", "192.101.67.8", "192.101.67.9", "192.101.67.10", "192.101.67.11", "192.101.67.12", "192.101.67.13", "192.101.67.14", "192.101.67.15", "192.101.67.16", "192.101.67.17", "192.101.67.18", "192.101.67.19", "192.101.67.20", "192.101.67.21", "192.101.67.22", "192.101.67.23", "192.101.67.24", "192.101.67.25", "192.101.67.26", "192.101.67.27", "192.101.67.28", "192.101.67.29", "192.101.67.30", "192.101.67.31", "192.101.67.32", "192.101.67.33", "192.101.67.34", "192.101.67.35", "192.101.67.36", "192.101.67.37", "192.101.67.38", "192.101.67.39", "192.101.67.40", "192.101.67.41", "192.101.67.42", "192.101.67.43", "192.101.67.44", "192.101.67.45", "192.101.67.46", "192.101.67.47", "192.101.67.48", "192.101.67.49", "192.101.67.50", "192.101.67.51", "192.101.67.52", "192.101.67.53", "192.101.67.54", "192.101.67.55", "192.101.67.56", "192.101.67.57", "192.101.67.58", "192.101.67.59", "192.101.67.60", "192.101.67.61", "192.101.67.62", "192.101.67.63", "192.101.67.64", "192.101.67.65", "192.101.67.66", "192.101.67.67", "192.101.67.68", "192.101.67.69", "192.101.67.70", "192.101.67.71", "192.101.67.72", "192.101.67.73", "192.101.67.74", "192.101.67.75", "192.101.67.76", "192.101.67.77", "192.101.67.78", "192.101.67.79", "192.101.67.80", "192.101.67.81", "192.101.67.82", "192.101.67.83", "192.101.67.84", "192.101.67.85", "192.101.67.86", "192.101.67.87", "192.101.67.88", "192.101.67.89", "192.101.67.90", "192.101.67.91", "192.101.67.92", "192.101.67.93", "192.101.67.94", "192.101.67.95", "192.101.67.96", "192.101.67.97", "192.101.67.98", "192.101.67.99", "192.101.67.100", "192.101.67.101", "192.101.67.102", "192.101.67.103", "192.101.67.104", "192.101.67.105", "192.101.67.106", "192.101.67.107", "192.101.67.108", "192.101.67.109", "192.101.67.110", "192.101.67.111", "192.101.67.112", "192.101.67.113", "192.101.67.114", "192.101.67.115", "192.101.67.116", "192.101.67.117", "192.101.67.118", "192.101.67.119", "192.101.67.120", "192.101.67.121", "192.101.67.122", "192.101.67.123", "192.101.67.124", "192.101.67.125", "192.101.67.126", "192.101.67.127", "192.101.67.128", "192.101.67.129", "192.101.67.130", "192.101.67.131", "192.101.67.132", "192.101.67.133", "192.101.67.134", "192.101.67.135", "192.101.67.136", "192.101.67.137", "192.101.67.138", "192.101.67.139", "192.101.67.140", "192.101.67.141", "192.101.67.142", "192.101.67.143", "192.101.67.144", "192.101.67.145", "192.101.67.146", "192.101.67.147", "192.101.67.148", "192.101.67.149", "192.101.67.150", "192.101.67.151", "192.101.67.152", "192.101.67.153", "192.101.67.154", "192.101.67.155", "192.101.67.156", "192.101.67.157", "192.101.67.158", "192.101.67.159", "192.101.67.160", "192.101.67.161", "192.101.67.162", "192.101.67.163", "192.101.67.164", "192.101.67.165", "192.101.67.166", "192.101.67.167", "192.101.67.168", "192.101.67.169", "192.101.67.170", "192.101.67.171", "192.101.67.172", "192.101.67.173", "192.101.67.174", "192.101.67.175", "192.101.67.176", "192.101.67.177", "192.101.67.178", "192.101.67.179", "192.101.67.180", "192.101.67.181", "192.101.67.182", "192.101.67.183", "192.101.67.184", "192.101.67.185", "192.101.67.186", "192.101.67.187", "192.101.67.188", "192.101.67.189", "192.101.67.190", "192.101.67.191", "192.101.67.192", "192.101.67.193", "192.101.67.194", "192.101.67.195", "192.101.67.196", "192.101.67.197", "192.101.67.198", "192.101.67.199", "192.101.67.200", "192.101.67.201", "192.101.67.202", "192.101.67.203", "192.101.67.204", "192.101.67.205", "192.101.67.206", "192.101.67.207", "192.101.67.208", "192.101.67.209", "192.101.67.210", "192.101.67.211", "192.101.67.212", "192.101.67.213", "192.101.67.214", "192.101.67.215", "192.101.67.216", "192.101.67.217", "192.101.67.218", "192.101.67.219", "192.101.67.220", "192.101.67.221", "192.101.67.222", "192.101.67.223", "192.101.67.224", "192.101.67.225", "192.101.67.226", "192.101.67.227", "192.101.67.228", "192.101.67.229", "192.101.67.230", "192.101.67.231", "192.101.67.232", "192.101.67.233", "192.101.67.234", "192.101.67.235", "192.101.67.236", "192.101.67.237", "192.101.67.238", "192.101.67.239", "192.101.67.240", "192.101.67.241", "192.101.67.242", "192.101.67.243", "192.101.67.244", "192.101.67.245", "192.101.67.246", "192.101.67.247", "192.101.67.248", "192.101.67.249", "192.101.67.250", "192.101.67.251", "192.101.67.252", "192.101.67.253", "192.101.67.254"]
current_ip = requests.get('https://checkip.amazonaws.com').text.strip()
if current_ip in us_chicago:
print("Your IP, " + current_ip + ", is not leaking.")
else:
print("Your IP, " + current_ip + ", is leaking.")