TPU: Detect and Block Spam Registrations

TPU: Detect and Block Spam Registrations 1.6.6

No permission to download
I added City detection by duplicating IPCountry.php (IPCity.php) and the options on the xml. It's working but in this way it will call the ip API two times
I just migrate from php5.6 to php7.1 in a new server and now my modified TPU addon stop to working. Users can't register. The error is:
Error: Call to undefined function geoip_city_code_by_name() - library/TPUDetectSpamReg/IPCity.php:16

Because geoip_city_code_by_name doesn't exist.

Before the migration was working, probably in the previous server in case of error php went forward to the next available method and in this new server it throw the error.
I solved commenting from row 10 to 19 in IPCity.php and now it's working again (thanks to @Xon for this message).
 
I'm using v1.6.6 and keep getting these two errors that stop new users from signing up. I have to turn it off completely to allow them to sign up. Anyone have an idea what's causing these?

ErrorException: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address - library/TPUDetectSpamReg/Hostname.php:11
ErrorException: Undefined variable: dns - library/TPUDetectSpamReg/AS.php:40
 
I'm using v1.6.6 and keep getting these two errors that stop new users from signing up. I have to turn it off completely to allow them to sign up. Anyone have an idea what's causing these?

ErrorException: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address - library/TPUDetectSpamReg/Hostname.php:11
ErrorException: Undefined variable: dns - library/TPUDetectSpamReg/AS.php:40
Did you provide your server address(s) in options?
 
Last edited:
Did you provide your server address(s) in options?
I am having the same issues since recently, but have been on 1.6.6 for quite some time. I do have our external IP addresses added to the options. Also behind CF, but not since recently, anything I need to change for that to work?

Or is there a way to just disable the hostname lookup otherwise? And still use the other features?
 
What is the country codes for USA, UK, Canada, Australia, New Zealand, France, Germany, Italy, Spain, Sweden, and other european countries?
 
If anyone needs it, here is the list of AS names I recommend blocking (VPNs)


Code:
+3|3223
+3|3561
+3|3842
+3|4250
+3|4323
+3|4694
+3|5577
+3|6724
+3|6870
+3|6939
+3|7203
+3|7489
+3|7506
+3|7850
+3|7979
+3|8075
+3|8100
+3|8455
+3|8560
+3|8972
+3|9009
+3|9370
+3|10297
+3|10439
+3|10929
+3|11588
+3|11831
+3|11878
+3|12586
+3|12876
+3|12989
+3|13213
+3|13739
+3|13926
+3|14061
+3|14127
+3|14618
+3|15003
+3|15083
+3|15169
+3|15395
+3|15497
+3|15510
+3|15626
+3|15734
+3|16125
+3|16262
+3|16276
+3|16284
+3|16397
+3|16509
+3|16628
+3|17216
+3|18450
+3|18779
+3|18978
+3|19084
+3|19318
+3|19437
+3|19531
+3|19624
+3|19844
+3|19871
+3|19969
+3|20021
+3|20264
+3|20454
+3|20473
+3|20598
+3|20738
+3|20773
+3|20836
+3|20860
+3|21100
+3|21159
+3|21321
+3|21859
+3|22363
+3|22552
+3|22781
+3|23033
+3|23342
+3|23352
+3|24482
+3|24768
+3|24875
+3|24940
+3|24961
+3|24971
+3|25163
+3|25369
+3|25379
+3|25780
+3|25820
+3|27257
+3|28753
+3|29066
+3|29073
+3|29182
+3|29302
+3|29354
+3|29465
+3|29550
+3|29691
+3|29802
+3|29838
+3|29854
+3|30083
+3|30176
+3|30475
+3|30633
+3|30693
+3|30900
+3|30998
+3|31034
+3|31103
+3|32097
+3|32181
+3|32244
+3|32475
+3|32489
+3|32613
+3|32780
+3|33070
+3|33083
+3|33182
+3|33302
+3|33330
+3|33387
+3|33438
+3|33480
+3|33724
+3|33785
+3|33891
+3|34305
+3|34971
+3|34989
+3|35017
+3|35366
+3|35415
+3|35470
+3|35662
+3|35908
+3|35916
+3|36024
+3|36114
+3|36290
+3|36351
+3|36352
+3|36666
+3|36873
+3|36887
+3|36920
+3|36970
+3|37018
+3|37088
+3|37153
+3|37170
+3|37209
+3|37230
+3|37248
+3|37269
+3|37280
+3|37308
+3|37347
+3|37377
+3|37472
+3|37506
+3|37521
+3|37540
+3|37643
+3|37661
+3|37692
+3|37714
+3|38001
+3|39020
+3|39326
+3|39351
+3|39392
+3|39572
+3|40156
+3|40244
+3|40676
+3|40824
+3|40861
+3|41653
+3|41665
+3|42160
+3|42331
+3|42473
+3|42695
+3|42708
+3|42730
+3|42831
+3|43146
+3|49505
+3|43289
+3|43317
+3|43350
+3|44050
+3|44066
+3|45102
+3|45187
+3|45470
+3|45671
+3|45815
+3|46261
+3|46430
+3|46475
+3|46562
+3|46664
+3|46805
+3|46816
+3|46844
+3|47328
+3|47447
+3|47588
+3|49349
+3|49367
+3|49453
+3|49532
+3|49544
+3|49981
+3|50297
+3|50613
+3|50673
+3|51159
+3|51167
+3|51191
+3|51395
+3|51430
+3|51731
+3|51765
+3|51852
+3|52048
+3|52173
+3|52219
+3|53013
+3|53340
+3|53559
+3|53597
+3|53667
+3|53755
+3|53850
+3|53889
+3|54104
+3|54203
+3|54455
+3|54489
+3|54500
+3|54540
+3|55225
+3|55286
+3|55536
+3|55933
+3|55967
+3|56322
+3|56630
+3|56934
+3|57043
+3|57169
+3|57230
+3|57858
+3|58073
+3|58305
+3|59253
+3|59349
+3|59432
+3|59504
+3|59729
+3|59764
+3|60011
+3|60068
+3|60118
+3|60404
+3|60485
+3|60505
+3|60558
+3|60567
+3|60781
+3|61102
+3|61157
+3|61317
+3|61440
+3|62217
+3|62240
+3|62282
+3|62370
+3|62471
+3|62540
+3|62567
+3|63008
+3|63018
+3|63119
+3|63128
+3|63199
+3|63473
+3|63949
+3|64245
+3|64484
+3|132816
+3|133296
+3|133480
+3|133752
+3|134451
+3|136258
+3|197155
+3|197328
+3|198310
+3|199653
+3|199883
+3|200019
+3|200039
+3|201011
+3|201525
+3|202053
+3|202836
+3|203523
+3|203629
+3|204196
+3|327705
+3|327784
+3|327813
+3|327942
+3|328035
+3|394256
+3|394330
+3|394380
+3|395089
+3|395111
+3|395978
+3|20248
+3|44901
+3|200904
+3|53057
+3|200532
+3|50968
+3|135822
+3|55293
+3|57286
+3|201200
+3|24549
+3|39458
+3|200000
+3|14576
+3|54290
+3|206898
+3|60117
+3|20448
+3|201553
+3|54825
+3|31472
+3|8556
+3|29119
+3|60476
+3|25532
+3|49949
+3|51698
+3|42442
+3|11274
+3|57345
+3|54817
+3|53342
+3|33569
+3|201983
+3|132425
+3|197395
+3|42699
+3|31698
+3|42612
+3|29311
+3|54527
+3|63213
+3|27175
+3|13209
+3|29140
+3|27223
+3|31659
+3|49834
+3|49693
+3|30152
+3|19133
+3|198414
+3|45201
+3|31981
+3|62605
+3|61280
+3|53332
+3|61147
+3|51109
+3|19234
+3|40438
+3|58797
+3|26978
+3|29748
+3|35974
+3|262990
+3|43021
+3|39704
+3|62899
+3|53281
+3|59615
+3|55761
+3|52335
+3|16973
+3|196827
+3|32647
+3|14992
+3|198968
+3|196745
+3|62071
+3|132869
+3|56106
+3|32911
+3|24931
+3|57669
+3|48896
+3|45481
+3|132509
+3|39839
+3|63129
+3|53370
+3|25048
+3|28747
+3|46433
+3|55051
+3|18570
+3|13955
+3|16535
+3|22903
+3|9823
+3|46945
+3|263032
+3|36536
+3|50986
+3|199733
+3|48825
+3|35914
+3|33552
+3|52236
+3|28855
+3|198347
+3|40728
+3|18120
+3|53914
+3|55720
+3|27640
+3|62563
+3|202118
+3|9290
+3|45887
+3|51050
+3|20068
+3|49485
+3|40374
+3|14415
+3|46873
+3|14384
+3|54555
+3|263237
+3|53918
+3|4851
+3|32306
+3|133229
+3|28216
+3|36236
+3|42210
+3|51248
+3|49815
+3|34649
+3|41562
+3|33260
+3|24220
+3|52347
+3|45486
+3|53055
+3|51290
+3|132225
+3|133120
+3|42776
+3|55799
+3|48446
+3|263093
+3|56732
+3|42399
+3|47385
+3|40539
+3|42244
+3|47549
+3|200147
+3|393326
+3|198171
+3|57773
+3|47583
+3|43472
+3|32338
+3|9166
+3|62082
+3|198651
+3|24725
+3|29067
+3|197902
+3|42418
+3|29097
+3|196645
+3|56110
+3|23535
+3|29869
+3|62756
+3|26484
+3|25926
+3|15189
+3|20401
+3|24679
+3|25128
+3|39756
+3|32400
+3|9412
+3|9667
+3|51294
+3|23052
+3|28099
+3|45693
+3|17881
+3|17669
+3|17918
+3|50926
+3|201634
+3|22611
+3|54641
+3|132071
+3|10207
+3|45577
+3|132070
+3|262603
+3|29883
+3|24558
+3|38279
+3|199997
+3|50465
+3|14120
+3|11235
+3|50655
+3|17019
+3|31240
+3|199481
+3|16862
+3|47161
+3|56784
+3|59791
+3|59677
+3|202023
+3|199990
+3|50872
+3|54839
+3|58936
+3|11230
+3|62310
+3|38894
+3|47172
+3|262287
+3|46260
+3|14442
+3|133143
+3|197648
+3|39451
+3|58922
+3|27589
+3|42400
+3|133393
+3|201597
+3|28997
+3|60800
+3|33322
+3|199129
+3|197372
+3|57752
+3|201670
+3|14244
+3|22152
+3|34541
+3|196678
+3|43198
+3|47625
+3|62049
+3|35295
+3|42311
+3|53589
+3|59705
+3|36791
+3|14160
+3|34432
+3|41062
+3|59135
+3|201630
+3|25260
+3|23108
+3|40281
+3|31590
+3|10532
+3|22720
+3|27357
+3|7595
+3|26481
+3|29713
+3|62651
+3|62838
+3|30849
+3|14987
+3|47577
+3|54334
+3|63916
+3|50915
+3|21217
+3|59816
+3|23273
+3|59632
+3|29452
+3|59795
+3|60739
+3|15919
+3|49313
+3|57879
+3|56617
+3|62088
+3|45179
+3|27597
+3|201702
+3|32740
+3|58667
+3|12617
+3|199847
+3|25642
+3|14567
+3|35278
+3|197914
+3|41079
+3|1442
+3|43620
+3|197439
+3|198313
+3|42705
+3|44398
+3|13909
+3|34745
+3|24958
+3|17971
+3|47143
+3|59854
+3|57682
+3|3722
+3|13647
+3|20450
+3|30235
+3|47205
+3|23881
+3|198047
+3|14986
+3|17920
+3|32275
+3|50608
+3|199213
+3|262170
+3|201862
+3|43541
+3|24381
+3|10200
+3|14708
+3|27229
+3|48093
+3|42465
+3|7598
+3|55229
+3|7349
+3|33251
+3|52465
+3|52270
+3|45152
+3|8477
+3|198153
+3|52925
+3|61412
+3|262978
+3|53225
+3|41427
+3|53101
+3|41369
+3|35467
+3|59554
+3|52674
+3|24611
+3|48812
+3|40715
+3|201449
+3|52321
+3|29331
+3|201709
+3|53221
+3|198432
+3|51241
+3|56799
+3|26277
+3|58113
+3|28333
+3|42120
+3|6718
+3|20692
+3|17439
+3|132717
+3|9925
+3|132779
+3|42622
+3|6188
+3|40819
+3|24997
+3|38107
+3|36408
+3|57363
+3|46177
+3|62026
+3|61107
 
+3|14061
+3|39572
+3|24940
+3|4837
+3|37963
+3|58453
+3|17964
+3|45090
+3|45899
+3|9299
+3|10439
+3|38814
+3|16276
+3|15895
+3|29182
+3|50113
+3|9009
+3|46606
+3|38814
+3|15149
+3|14618
+3|26496
 
Even though this is unmaintained.
I was getting around 30 requests from other countries every few days, so I install it,
the next day I only had 2, the following day only one
now None.
Great Addon.
 
I have a legit user that have post moderate cause of the detected city.
How can I "white list" him?

edit:
SOLVED!
Page:
admin.php?user-permissions/
Permission:
"TPU: Detect Spam Reg - Moderate all posts:"
 
Last edited:
Top Bottom