summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-06-18 14:36:46 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-06-18 14:36:46 +0800
commit716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a (patch)
treee4788ca9ad9ef5fd0ff849588200d52625060c88
parent7ca0e08f3bb2419e7aea55740c672a88fe9c62bd (diff)
downloadpttbbs-716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a.tar
pttbbs-716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a.tar.gz
pttbbs-716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a.tar.bz2
pttbbs-716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a.tar.lz
pttbbs-716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a.tar.xz
pttbbs-716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a.tar.zst
pttbbs-716e41fb8d8e2f7faa06ba26c6eea8fc19c5712a.zip
build banned ip list on compile
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3374 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/Makefile6
-rw-r--r--mbbsd/mbbsd.c8
-rw-r--r--util/banip.pl151
3 files changed, 161 insertions, 4 deletions
diff --git a/mbbsd/Makefile b/mbbsd/Makefile
index a635cb48..fb7d1638 100644
--- a/mbbsd/Makefile
+++ b/mbbsd/Makefile
@@ -47,6 +47,12 @@ $(PROG): $(OBJS)
../include/var.h: var.c
perl ../util/parsevar.pl < var.c > ../include/var.h
+../include/banip.h: ../util/banip.pl
+ perl ../util/banip.pl > $@
+
+mbbsd.o: mbbsd.c ../include/var.h ../include/banip.h
+ $(CCACHE) $(DIETCC) $(CC) $(CFLAGS) -c $<
+
test: $(PROG)
killall -9 testmbbsd || true
cp mbbsd testmbbsd
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 792f75ca..73978d7b 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -2,6 +2,7 @@
#define TELOPTS
#define TELCMDS
#include "bbs.h"
+#include "banip.h"
#ifdef __linux__
# ifdef CRITICAL_MEMORY
@@ -1483,7 +1484,7 @@ bind_port(int port)
static int shell_login(int argc, char *argv[], char *envp[]);
static int daemon_login(int argc, char *argv[], char *envp[]);
static int check_ban_and_load(int fd);
-static int check_badip(char *host);
+static int check_banip(char *host);
int
main(int argc, char *argv[], char *envp[])
@@ -1709,7 +1710,7 @@ daemon_login(int argc, char *argv[], char *envp[])
close(csock);
getremotename(&xsin, fromhost, remoteusername);
- if( check_badip(fromhost) ){
+ if( check_banip(fromhost) ){
sleep(10);
exit(0);
}
@@ -1775,9 +1776,8 @@ check_ban_and_load(int fd)
return 0;
}
-static int check_badip(char *host)
+static int check_banip(char *host)
{
- const unsigned int banip[] = {633,1009038678,1032298394,1039296018,1045135817,1045141443,1045146522,1045149950,1045149967,1045158608,1045159629,1048125300,1050904631,1051859979,1052940049,1053108379,1054112077,1054347447,1056043094,1062584838,1066794770,1070836110,1071923537,1071944402,1074063250,1074083292,1074083326,1075489208,1076016227,1076025623,1077853822,1078644530,1079076048,1079111824,1079113446,1079682122,1079685996,1079984214,1081740395,1082040402,1082453889,1082705931,1083053580,1083053581,1083055955,1083068136,1083073255,1083344605,1088831409,1089876581,1093025996,1096807575,1097163377,1101977914,1103421984,1107176915,1108063014,1110721050,1111466648,1111886389,1113217442,1113224772,1113322479,1113373922,1113382114,1113402741,1113425461,1113434866,1113636908,1113753649,1113772075,1114581897,1115848067,1117774152,1120256468,1120399410,1120402490,1121085691,1121663927,1121690022,1122271003,1122767540,1128530064,1134500635,1135012794,1135293538,1135447854,1135676771,1141170741,1142207674,1143515970,1143521285,1143584363,1144641674,1144959489,1146133398,1146747656,1147064262,1148294836,1148474651,1149196598,1150419377,1150601044,1151748065,1151813564,1151849048,1151849110,1151849155,1151849163,1152070561,1152290181,1153487012,1154098255,1154961799,1155750501,1155911402,1158451621,1158458362,1159670411,1160359620,1161353354,1161590883,1161731083,1164841069,1165040476,1165690270,1166598860,1167362328,1168255657,1168318604,1170378561,1170937115,1171701362,1173973384,1175490060,1175722981,1176278139,1179754272,1179939481,1180480034,1181632238,1182759416,1182804112,1184649196,1185963443,1186682872,1189258321,1189822561,1190540230,1193343820,1194912669,1199054851,1199489002,1199956953,1203817101,1206213296,1207073874,1207268119,1207310646,1208012760,1208219991,1209270694,1209344458,1210356342,1216501158,1218825340,1219581753,1222765174,1222831034,1223175530,1223175531,1241522546,1245917176,1250010691,1258759116,1259420513,1344441061,134689259,1347065008,1347862379,1347912607,1350444388,1350494747,1350517410,1351178913,1351327225,1351728327,1354384237,1354690934,1354691194,1354691202,1354692815,1354693400,1355442311,1355535118,1356673683,1356745546,1356784504,1356818896,1357746750,1357762141,1358086980,1358230143,1358745862,1359012275,1359326305,1359717269,1362631599,1362718537,1362730517,1370063490,1370065057,1370070630,1370074748,1370075271,1370075314,1370075526,1370075863,1370076340,1371458017,1373150675,1373891156,1374114496,1376151807,1377345932,1378751004,1379405935,1380096800,1380132259,1380774425,1381124029,1381818786,1381956558,1382895970,1384173743,1385515093,1385963901,1386582185,1386591344,1386609993,1387109136,1387687283,1390541681,1390625644,1390885676,1391134513,1391377452,1391387013,1391705656,1392042618,1396737916,1396792174,1398107099,1402700662,1403060026,1403755034,1403756911,1403758503,1405269447,1406546563,1406915685,1407151212,1407404039,1407787703,1407803901,1408456837,1408586424,1408948426,1409885092,1409891674,1409924377,1410394415,1410394777,1410395023,1410577730,1410577943,1411548633,1412009828,1412448398,1412913033,1412990513,1413004313,1413038539,1413243236,1413246708,1413292245,1413360537,1414031437,1414073003,1414116862,1417115591,1418566923,1418996608,1419217241,1419276187,1419413080,1419624980,1419796983,1420590936,1421026659,1421075170,1421129130,1423729645,1423787962,1423793480,1423822132,1424887638,1425659230,1426622565,1426768501,1426768746,1426776764,1426780410,1427037310,1427114872,1427706994,1427735671,1427736711,1428142618,1428142678,1428142932,1428142938,1431092705,1437600178,1437745942,1437759009,1437794010,1437996446,1439826300,1439996840,1440092857,1440094857,1440095497,1440095549,1440099454,1440100783,1440103150,1440103182,1440852132,1440899938,1440942724,1441432107,1446517409,1446712614,1455681014,1460597147,1465475993,1466513117,1467616278,1467706444,1467716930,1473854283,1481195590,1481933482,1481935866,1483751335,1483797428,1483810039,1485203105,1488915656,1488918078,1489435922,1500418228,2088298776,2147648687,2147650849,2148549201,2149456915,2151508644,2152952383,2156580657,2158918784,2165674195,2165695574,2176554627,2186911923,2191631745,2209603717,2256681234,2259262604,2259264684,2261779264,2261781242,2306389042,2306389057,2310910653,2313336213,2328543442,2353946503,2356154951,2356418826,2356424963,2356475572,2356898650,2357619472,2365013056,2365013568,2365013623,2370580058,2375385285,2386256229,2386288280,2482713740,2488852665,2500395033,2500401630,2500418754,2500430233,2500447561,2525806444,2533894179,2585994258,2585997115,2586003679,2586006801,2614063587,2677356814,2736247813,2789658370,2789664852,2792301837,2792356135,2828466980,307102044,311952114,314245444,317980786,317980860,318112160,3224007160,3225632660,3239090875,3243817332,3245234951,3250063682,3250996780,3251263491,3252362485,3256170502,3256715587,3261063369,3261951341,3261964705,3261976276,3276235734,3276275718,3277185425,3281954691,3281954907,3282671061,3283221348,3286673503,3287678731,3289080340,3301701415,3332463556,3343745550,3363387287,3375509188,3390899768,3393566277,3396407413,3396486214,3400371611,3402453129,3402616932,3409686647,3409690370,3420075024,3423569323,3423588416,3439174155,3467514649,3470660094,3475813379,3476545746,3482756931,3486665298,3486668144,3486668148,3486672370,3486673433,3490586373,3492338307,3492338312,3492338320,3492338327,3494035974,3496202123,3506972849,3507087555,3509823830,3513220865,3513960577,3517723726,3520956962,3520971047,3520974450,3522299190,3526605869,3545245990,3546201313,3546343681,3549911410,3549913020,3557231659,3558386406,3560741982,3564169059,3564170062,3564170067,3564171657,3564171679,3564171797,3564171935,3564305148,3567828488,3569037497,3570019295,3570028202,3570067714,3572463187,3572677652,3576144460,3579063043,3579076168,3579101268,3580101950,3580165827,3580892904,3580959557,3580991262,3580995315,3581025585,3581063558,3582233947,3582288825,3583144544,3586905730,3587875322,3588024591,3588551055,3589259951,3589262056,3589263022,3589264300,3589264429,3589264517,3589265810,3590181994,3624489557,3625693853,3625996363,3626471961,3627521301,3628797756,3632873814,3638227149,3639060658,3639447343,3639563198,3640550083,3641589830,3641996784,3642543759,3645851707,3645879670,3645917495,3646166834,3646195501,3646245964,3646256112,3648466694,3650310217,3650747396,3650866781,3651166069,3651169389,3651169576,3651175574,3651184412,3651185284,3651186737,3651187062,3651193626,3651197710,3651197980,3651205907,3651940697,3651974682,3651975131,3653517517,3655379603,3658026618,3658875414,3661255580,3669873169,3679337157,3680442328,3682154618,3715546252,3716744875,3738451558,403091818,403290595,403341299,403433871,404032416,404080998,404097098,404457344,405045610,405429290,406546379,406620913,407938789,408660381,409972402,411036682,411572343,412832289,413808504,414371179,414658013,414816791,415745688,415892806,416994429,418260068,418265481,419086569,419367087,644039254,998641561,0};
unsigned int thisip = 0;
char *ptr, *myhost = strdup(host);
diff --git a/util/banip.pl b/util/banip.pl
new file mode 100644
index 00000000..50374d81
--- /dev/null
+++ b/util/banip.pl
@@ -0,0 +1,151 @@
+#!/usr/bin/perl
+# $Id$
+
+@list = (
+#bbsnet
+'140.116.49.3', '163.23.212.5', '140.134.107.16', '134.208.3.64', '137.189.178.189',
+'140.134.107.16', '134.208.10.250', '211.151.95.188', '140.112.18.71', '140.123.107.90',
+'166.111.37.13', '206.222.17.254', '61.135.159.154', '210.51.188.45', '202.114.68.70',
+'140.116.49.3', '163.23.212.5', '140.116.246.180', '140.116.25.10', '202.207.208.100',
+'163.23.212.5', '211.151.89.114', '211.96.233.1', '202.205.80.137', '202.113.16.117',
+# tor
+'86.59.21.38', '149.9.137.153', '88.134.102.161', '24.170.55.120', '64.90.179.108',
+'88.112.243.180', '209.51.169.86', '213.114.29.49', '82.56.16.111', '141.76.46.90',
+'72.226.235.186', '64.5.53.220', '82.67.37.163', '83.243.88.133', '81.11.163.149',
+'85.178.254.218', '84.48.64.142', '69.136.226.204', '196.203.247.39', '66.91.243.239',
+'68.148.199.84', '84.172.127.88', '60.36.181.86', '71.32.251.76', '209.9.232.195',
+'83.233.97.253', '62.75.185.15', '80.202.104.135', '68.171.51.161', '67.68.0.144',
+'80.186.67.109', '217.119.47.6', '83.250.216.202', '207.210.101.242', '80.145.188.199',
+'68.202.36.79', '84.61.32.213', '81.57.158.21', '70.246.51.198', '208.40.218.136',
+'149.9.92.194', '219.95.23.216', '80.126.234.27', '221.118.188.140', '82.248.226.122',
+'213.84.94.72', '80.126.37.100', '24.36.129.106', '64.136.200.11', '213.239.217.146',
+'84.119.119.199', '66.90.118.68', '84.60.97.100', '213.132.141.91', '149.9.0.25',
+'208.40.218.131', '213.228.241.143', '128.2.141.33', '18.187.1.68', '72.232.45.106',
+'209.103.127.1', '213.112.22.232', '70.110.70.238', '140.78.95.135', '71.246.25.54',
+'212.202.78.170', '24.111.174.178', '209.242.5.54', '81.169.176.135', '64.74.207.50',
+'217.85.115.240', '62.75.218.208', '64.5.53.254', '87.105.54.221', '81.169.180.180',
+'131.179.224.133', '82.66.155.32', '80.221.50.147', '194.29.137.67', '24.42.92.42',
+'128.30.28.19', '217.160.109.40', '64.132.239.129', '212.114.250.252', '68.94.207.198',
+'62.75.184.254', '207.44.180.3', '68.40.192.5', '217.160.167.28', '87.123.149.66',
+'24.9.185.227', '68.174.141.133', '149.9.205.73', '217.160.203.26', '64.81.100.208',
+'72.177.87.57', '81.169.158.102', '196.11.98.20', '69.41.174.196', '66.197.193.212',
+'66.93.45.117', '70.156.79.236', '84.73.10.171', '59.134.15.153', '212.112.235.78',
+'195.245.255.11', '213.133.99.185', '84.152.111.155', '81.216.157.211', '195.85.225.145',
+'154.35.72.223', '85.16.11.120', '88.84.130.170', '88.113.36.247', '69.194.143.65',
+'24.255.8.175', '150.140.191.108', '217.155.206.93', '128.2.132.175', '213.239.194.175',
+'154.35.36.18', '84.34.133.217', '61.242.102.18', '217.84.135.45', '72.232.45.107',
+'85.214.49.175', '84.9.35.164', '68.62.178.1', '70.92.178.34', '208.14.31.5',
+'137.226.181.149', '69.249.105.136', '154.35.85.17', '72.20.1.166', '68.215.81.135',
+'66.159.225.72', '66.236.18.180', '85.31.186.26', '69.31.42.139', '83.219.212.101',
+'24.60.138.241', '213.113.166.243', '154.35.47.59', '80.222.227.120', '69.214.190.114',
+'64.246.50.101', '217.172.49.89', '86.195.237.246', '24.27.135.128', '208.40.218.144',
+'208.40.218.151', '83.64.135.124', '194.95.224.201', '216.231.168.178', '84.238.15.86',
+'81.169.136.161', '68.166.71.225', '24.238.36.100', '84.57.65.203', '24.22.8.74',
+'166.70.207.2', '82.46.18.28', '217.79.181.118', '24.155.82.33', '217.84.23.50',
+'213.84.94.72', '149.9.25.222', '71.192.202.141', '89.110.144.180', '74.67.47.248',
+'142.59.222.152', '213.84.192.84', '62.75.151.195', '213.239.206.174', '213.84.43.3',
+'69.56.216.138', '70.187.87.248', '64.81.246.230', '80.252.209.6', '83.171.167.167',
+'62.178.28.11', '83.171.154.26', '65.196.226.32', '85.31.187.84', '68.57.216.138',
+'84.221.205.52', '65.174.217.58', '203.59.176.119', '217.20.117.240', '219.78.58.197',
+'80.139.157.249', '87.14.241.155', '69.123.5.158', '83.194.181.199', '85.176.9.178',
+'82.238.188.44', '84.16.234.153', '203.218.52.16', '81.169.130.130', '81.231.82.192',
+'138.202.192.210', '217.147.80.73', '219.121.56.122', '81.5.172.97', '67.166.235.186',
+'64.146.134.221', '72.0.207.216', '82.238.225.133', '64.90.164.74', '66.98.136.49',
+'216.55.149.21', '198.161.91.196', '68.167.210.203', '192.42.113.248', '69.60.120.99',
+'82.76.242.25', '212.112.242.21', '80.86.191.107', '129.21.228.86', '85.10.194.117',
+'85.214.29.9', '24.250.192.233', '84.9.189.25', '72.165.204.124', '66.92.220.226',
+'66.70.10.53', '82.165.180.112', '217.79.72.59', '129.187.150.131', '66.93.134.53',
+'85.25.20.114', '62.194.151.17', '84.9.61.90', '85.10.226.188', '216.239.83.190',
+'64.95.64.86', '195.72.0.6', '66.228.127.27', '68.167.210.88', '72.36.146.118',
+'85.226.99.98', '80.203.211.14', '85.10.240.250', '72.3.249.87', '24.183.45.221',
+'62.75.129.201', '70.28.148.123', '134.169.164.172', '84.221.71.186', '207.210.106.25',
+'24.218.212.125', '213.203.214.130', '124.120.233.24', '62.163.136.55', '203.59.191.2',
+'18.244.0.188', '69.110.16.109', '166.111.249.39', '85.214.26.137', '81.169.176.178',
+'218.189.210.17', '216.237.143.47', '83.85.107.219', '216.9.82.85', '38.99.66.86',
+'85.25.136.135', '129.21.144.211', '81.169.174.124', '212.239.118.83', '141.149.128.197',
+'87.122.12.22', '82.231.59.44', '67.173.143.46', '80.242.195.68', '81.169.177.134',
+'68.227.90.101', '216.39.146.25', '69.162.42.169', '82.82.71.189', '68.116.85.27',
+'193.184.9.66', '84.56.188.25', '217.14.64.70', '217.160.170.132', '83.155.131.118',
+'213.253.212.106', '80.137.90.161', '217.172.182.26', '68.113.150.180', '193.110.91.7',
+'68.167.210.195', '20 6.174.19.25', '68.167.210.150', '66.52.66.26', '217.160.108.109',
+'83.65.91.110', '85.25.132.119', '84.16.235.143', '24.6.177.106', '148.88.224.185',
+'80.190.242.130', '84.179.37.99', '212.112.241.159', '207.210.85.116', '85.182.21.158',
+'85.178.67.22', '81.227.234.84', '85.214.59.14', '80.237.146.62', '194.109.109.109',
+'84.16.233.47', '64.142.31.83', '75.7.35.204', '64.126.160.82', '68.40.171.66',
+'80.190.241.118', '142.59.97.101', '194.109.161.161', '84.55.87.137', '83.227.72.7',
+'128.174.124.128', '216.32.80.75', '200.121.55.151', '195.158.167.131', '67.159.27.27',
+'68.4.226.53', '217.153.252.4', '66.11.179.38', '70.128.40.144', '66.219.161.166',
+'80.222.75.74', '83.171.161.111', '66.93.170.242', '66.210.104.251', '62.216.16.183',
+'81.0.225.179', '64.34.180.99', '66.98.208.43', '84.73.181.254', '18.78.1.92',
+'74.129.166.67', '213.220.233.15', '211.94.188.225', '24.91.169.157', '84.221.93.72',
+'8.7.49.235', '84.157.194.20', '24.80.166.229', '82.156.33.125', '134.169.156.140',
+'85.14.220.126', '71.245.115.23', '66.130.125.131', '82.165.253.73', '82.243.190.56',
+'84.151.137.89', '88.191.22.62', '216.75.15.60', '80.74.148.176', '24.21.201.102',
+'84.19.182.23', '69.148.137.24', '211.80.41.38', '70.235.64.97', '68.89.251.8',
+'84.60.110.244', '81.190.201.225', '212.242.188.20', '201.50.46.196', '82.6.104.255',
+'66.96.192.44', '70.226.164.81', '82.109.81.98', '65.101.98.113', '207.210.85.112',
+'218.22.2.22', '62.197.40.155', '70.16.142.12', '64.122.12.107', '74.0.33.114',
+'213.239.212.133', '84.154.134.88', '209.8.40.177', '212.112.241.137', '63.85.194.6',
+'128.83.114.63', '24.178.205.107', '81.169.178.215', '72.225.234.118', '24.59.103.203',
+'80.34.138.229', '140.247.60.64', '140.247.62.119', '18.152.2.242', '69.62.156.11',
+'134.130.57.18', '80.190.251.24', '71.242.124.82', '80.190.242.122', '85.214.18.185',
+'194.21.56.6', '85.178.118.33', '24.136.24.119', '85.227.10.132', '64.142.98.231',
+'151.8.40.35', '88.73.64.70', '69.12.171.250', '71.133.227.217', '213.239.202.232',
+'24.10.127.243', '217.28.206.143', '84.56.134.49', '216.137.65.86', '80.87.131.159',
+'195.230.168.95', '88.84.139.250', '128.138.207.49', '88.191.12.200', '84.19.181.66',
+'64.26.169.184', '71.120.32.3', '217.160.219.14', '84.220.99.237', '63.149.255.18',
+'64.142.22.13', '80.127.66.162', '84.41.143.100', '82.165.144.169', '202.29.6.56',
+'85.214.44.126', '72.21.33.202', '68.20.180.186', '85.10.195.106', '82.225.251.113',
+'82.128.208.175', '204.253.162.11', '62.241.240.86', '70.127.121.248', '18.246.1.160',
+'207.150.167.67', '155.207.113.227', '213.239.211.172', '81.56.27.175', '217.160.220.28',
+'213.39.162.76', '80.244.242.127', '66.63.162.152', '70.84.114.153', '193.202.88.3',
+'67.171.52.98', '87.89.99.153', '217.160.95.117', '69.113.27.92', '85.212.155.168',
+'212.60.156.94', '217.160.177.118', '84.72.104.77', '85.31.186.86', '66.199.240.50',
+'85.234.130.43', '71.56.235.157', '128.61.106.164', '62.75.171.154', '195.169.149.213',
+'212.112.231.99', '212.112.235.83', '217.172.183.219', '69.163.32.140', '202.173.141.155',
+'66.219.59.183', '82.94.251.206', '137.120.180.50', '70.81.159.32', '213.113.151.30',
+'82.235.7.49', '213.114.177.134', '193.16.154.187', '64.230.63.177', '218.58.83.156',
+'209.172.52.78', '69.12.145.165', '216.27.178.157', '64.62.190.126', '216.218.240.205',
+'221.137.6.171', '209.221.193.39', '82.92.225.162', '82.149.72.85', '83.223.108.108',
+'195.71.99.214', '208.99.207.139', '81.57.111.73', '195.158.168.91', '85.225.168.164',
+'64.142.22.12', '213.100.254.195', '82.24.161.140', '66.199.252.58', '193.219.28.245',
+'207.210.74.82', '68.146.1.177', '83.245.82.184', '204.15.133.171', '199.77.130.14',
+'212.24.170.230', '212.202.233.2', '62.121.31.116', '147.251.52.140', '195.177.251.100',
+'209.221.138.34', '209.114.200.129', '82.227.67.108', '88.198.253.18', '83.160.255.58',
+'193.88.185.116', '24.11.233.143', '194.109.206.212', '85.214.29.61', '213.239.212.45',
+'62.75.222.205', '212.112.242.159', '159.149.57.14', '66.92.188.226', '71.229.90.176',
+'64.34.217.23', '18.244.0.114', '193.198.70.44', '18.244.0.188', '137.120.180.65',
+'85.76.189.225', '88.112.63.167', '192.67.63.148', '140.247.62.64', '212.168.190.8',
+'82.182.109.115', '213.146.114.96', '66.90.89.162', '80.223.105.208', '84.249.213.94',
+'72.130.85.166', '85.8.136.101', '84.141.157.11', '217.160.132.150', '217.196.64.205',
+'70.20.27.229', '217.160.176.49', '70.176.93.179', '208.66.194.6', '65.254.45.211',
+'24.238.57.137', '80.237.206.93', '62.212.121.77', '68.229.206.234', '24.199.198.152',
+'85.31.187.90', '64.142.78.232', '64.81.240.144', '213.113.27.69', '63.211.169.142',
+'66.111.43.137', '222.212.62.102', '68.80.155.150', '130.161.165.129', '65.38.64.204',
+'24.21.11.160', '67.177.13.99', '84.179.226.226', '24.202.5.70', '130.89.160.179',
+'82.173.155.16', '86.56.26.161', '85.214.58.238', '166.70.232.84', '217.160.251.19',
+'63.228.65.81', '68.127.89.54', '217.80.73.55', '69.203.21.27', '207.210.106.25',
+'217.224.170.147', '216.254.98.195', '82.238.188.44', '168.150.251.36', '75.17.59.97',
+'68.192.208.164', '207.55.224.210', '212.187.48.185', '24.185.154.23', '204.15.208.64',
+'68.41.182.107', '24.127.236.10', '68.167.71.188', '64.4.231.146', '209.221.206.114',
+'65.95.244.151', '212.7.12.43', '71.126.191.234', '217.85.76.76', '83.214.50.131',
+'128.16.66.81', '87.123.108.76', '218.9.14.122', '212.202.43.223', '87.217.59.75',
+'84.180.181.170', '83.233.34.183', '213.218.161.250', '84.160.97.247', '213.100.5.62',
+'63.228.146.210', '85.210.1.124', '84.62.43.153', '69.148.137.24', '80.190.248.207',
+'212.202.43.223', '84.148.43.128', '202.69.182.69');
+
+print "const unsigned int banip[] = {";
+
+foreach( @list ){
+ $hash{(($1 * 256 + $2) * 256 + $3) * 256 + $4} = 1
+ if( /^(\d+)\.(\d+)\.(\d+)\.(\d+)/ );
+
+}
+print scalar keys %hash, ",\n";
+
+foreach (sort keys %hash) {
+ print "${_}U,\t";
+ print "\n" if ++$i % 4 == 0;
+}
+
+print "0};\n";