-
Notifications
You must be signed in to change notification settings - Fork 2
/
globalblacklist.conf
5044 lines (4929 loc) · 131 KB
/
globalblacklist.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
### **********************************
### THE ULTIMATE NGINX BAD BOT BLOCKER
### **********************************
### Created By: https://github.com/mitchellkrogza/
### Copyright Mitchell Krog - <[email protected]>
### Version Information #
############################################
### Version: V3.2017.06.419
### Updated: Sat Jun 24 11:45:45 SAST 2017
### Generated In: 0.00308203697205 seconds
############################################
### Version Information ##
### This file implements a checklist / blacklist for good user agents, bad user agents and
### bad referrers. It also has whitelisting for your own IP's and known good IP Ranges
### and also has rate limiting functionality for bad bots who you only want to rate limit
### and not actually block out entirely. It is powerful and also flexible.
### Tested on: nginx/1.10.x (Ubuntu 16.04)
### This list was developed and is in use on a live Nginx server running some very busy web sites.
### It was built from the ground up using real data from daily logs and is updated almost daily.
### It has been extensively tested for false positives and all additions to the lists of bad user agents,
### spam referers, rogue IP address, scanners, scrapers and domain hijacking sites are extensively checked
### before they are added. It is monitored extensively for any false positives.
### *********
### Features:
### *********
### Clear formatting for Ease of Maintenance.
### Alphabetically ordered lists for Ease of Maintenance.
### Extensive Commenting for Ease of Reference.
### Extensive bad_bot list
### Extensive bad_referer list (please excuse the nasty words and domains)
### Simple regex patterns versus complicated messy regex patterns.
### Checks regardless of http / https urls or the lack of any protocol sent.
### IP range blocking / whitelisting.
### Rate Limiting Functions.
### *** PLEASE READ ALL INLINE NOTES ON TESTING !!!!
### I have this set up as an include in nginx.conf as
### Include /etc/nginx/conf.d/globalblacklist.conf
### This is loaded and available for any vhost to use in its config
### Each vhost then just needs the include file mentioned below for it to take effect.
### In Most cases your nginx.conf should already have an include statement as follows
### Include /etc/nginx/conf.d/*
### If that is the case then you can ignore the above include statement as Nginx will
### load anything in the conf.d folder and make it available to all sites.
### All you then need to do is use the include statements below in the server {} block of a vhost file for it to take effect.
# server {
# #Config stuff here
# include /etc/nginx/bots.d/blockbots.conf
# include /etc/nginx/bots.d/ddos.conf
# #Other config stuff here
# }
### Need I say, please don't just copy and paste this without reviewing what bots and
### referers are being blocked, you may want to exclude certain of them
### Also make SURE to whitelist your own IP's in the geo $bad_referer section.
### Know why you are using this or why you want to use it before you do, the implications
### are quite severe.
### *** PLEASE READ INLINE NOTES ON TESTING !!!!
### Note that:
### 0 = allowed - no limits
### 1 = allowed or rate limited less restrictive
### 2 = rate limited more
### 3 = block completely
### NEED I say do a "sudo nginx -t" to test the config is okay after adding these
### and if so then "sudo service nginx reload" for it to take effect.
### *** MAKE SURE TO ADD to your nginx.conf ***
### server_names_hash_bucket_size 64;
### server_names_hash_max_size 4096;
### limit_req_zone $binary_remote_addr zone=flood:50m rate=90r/s;
### limit_conn_zone $binary_remote_addr zone=addr:50m;
### to allow it to load this large set of domains into memory and to set the rate limiting zones for the DDOS filter.
### ADDING YOUR OWN BAD REFERERS
### Fork your own local copy and then
### Send a Pull Request by following the instructions in the Pull_Requests_Here_Please folder.
# *********************************
# FIRST BLOCK BY USER-AGENT STRINGS
# *********************************
# ***************
# PLEASE TEST !!!
# ***************
# ALWAYS test any User-Agent Strings you add here to make sure you have it right
# Use a Chrome Extension called "User-Agent Switcher for Chrome" where you can create your
# own custom lists of User-Agents and test them easily against your rules below.
# You can also use Curl to test user-agents as per example below
# curl -I http://www.yourdomain.com -A "GoogleBot" << 200 OK
# curl -I http://www.yourdomain.com -A "80legs" <<< 444 Dropped Connection
# Here we also allow specific User Agents to come through that we want to allow
# PLEASE NOTE: In all lists below I use Nginx case-insensitive matching ~*
# This means regardless of how you type the word, upper or lowercase or mixed it will
# be detected by Nginx Regex. Some Names are Capitalised simply for Ease of Reading.
# Especially important for both Googlebot and googlebot to be allowed through no?
# Now we map all good and bad user agents to a variable called $bad_bot
map $http_user_agent $bad_bot {
default 0;
# ***********************************************
# Allow Good User-Agent Strings We Know and Trust
# ***********************************************
# START GOOD BOTS ### DO NOT EDIT THIS LINE AT ALL ###
"~adidxbot" 0;
"~AdsBot-Google" 0;
"~aolbuild" 0;
"~bingbot" 0;
"~bingpreview" 0;
"~DoCoMo" 0;
"~duckduckgo" 0;
"~facebookexternalhit" 0;
"~Feedfetcher-Google" 0;
"~Googlebot" 0;
"~Googlebot-Image" 0;
"~Googlebot-Mobile" 0;
"~Googlebot-News" 0;
"~Googlebot/Test" 0;
"~Googlebot-Video" 0;
"~Google-HTTP-Java-Client" 0;
"~gsa-crawler" 0;
"~Jakarta\ Commons" 0;
"~Kraken/0.1" 0;
"~LinkedInBot" 0;
"~Mediapartners-Google" 0;
"~msnbot" 0;
"~msnbot-media" 0;
"~SAMSUNG" 0;
"~slurp" 0;
"~teoma" 0;
"~TwitterBot" 0;
"~Wordpress" 0;
"~yahoo" 0;
# END GOOD BOTS ### DO NOT EDIT THIS LINE AT ALL ###
# **************************************************
# User-Agent Strings Allowed Throug but Rate Limited
# **************************************************
# Some people block libwww-perl, it us widely used in many valid (non rogue) agents
# I allow libwww-perl as I use it for monitoring systems with Munin but it is rate limited
# START ALLOWED BOTS ### DO NOT EDIT THIS LINE AT ALL ###
"~jetmon" 1;
"~libwww-perl" 1;
"~Lynx" 1;
"~munin" 1;
"~Wget/1.15" 1;
# END ALLOWED BOTS ### DO NOT EDIT THIS LINE AT ALL ###
# **************************************************************
# Rate Limited User-Agents who get a bit aggressive on bandwidth
# **************************************************************
# START LIMITED BOTS ### DO NOT EDIT THIS LINE AT ALL ###
"~Alexa" 2;
"~archive.org" 2;
"~Baidu" 2;
"~FlipboardProxy" 2;
"~ia_archiver" 2;
"~Mozilla/4.0" 2;
"~MSIE\ 7.0" 2;
"~Presto" 2;
"~R6_CommentReader" 2;
"~R6_FeedFetcher" 2;
"~RPT-HTTPClient" 2;
"~sfFeedReader/0.9" 2;
"~Spaidu" 2;
"~UptimeRobot/2.0" 2;
"~YandexBot" 2;
"~YandexImages" 2;
# END LIMITED BOTS ### DO NOT EDIT THIS LINE AT ALL ###
# *********************************************
# Bad User-Agent Strings That We Block Outright
# *********************************************
# This includes:
# Known Vulnerability Scanners (now merged into one section)
# ***********************************************
# Include your Own Custom List of Bad User Agents
# ***********************************************
# use the include file below to further customize your own list of additional
# user-agents you wish to permanently block
# START BLACKLISTED USER AGENTS ### DO NOT EDIT THIS LINE AT ALL ###
include /etc/nginx/bots.d/blacklist-user-agents.conf;
# END BLACKLISTED USER AGENTS ### DO NOT EDIT THIS LINE AT ALL ###
# START BAD BOTS ### DO NOT EDIT THIS LINE AT ALL ###
"~*360Spider" 3;
"~*80legs" 3;
"~*Abonti" 3;
"~*Aboundex" 3;
"~*Acunetix" 3;
"~*AhrefsBot" 3;
"~*AIBOT" 3;
"~*AiHitBot" 3;
"~*Aipbot" 3;
"~*Alexibot" 3;
"~*Alligator" 3;
"~*AllSubmitter" 3;
"~*Anarchie" 3;
"~*Apexoo" 3;
"~*ASPSeek" 3;
"~*Asterias" 3;
"~*Attach" 3;
"~*autoemailspider" 3;
"~*BackDoorBot" 3;
"~*BackStreet" 3;
"~*BackWeb" 3;
"~*Badass" 3;
"~*Bandit" 3;
"~*BatchFTP" 3;
"~*Battleztar\ Bazinga" 3;
"~*BBBike" 3;
"~*BDFetch" 3;
"~*BetaBot" 3;
"~*Bigfoot" 3;
"~*Bitacle" 3;
"~*Black\ Hole" 3;
"~*BlackWidow" 3;
"~*BLEXBot" 3;
"~*Blow" 3;
"~*BlowFish" 3;
"~*Boardreader" 3;
"~*Bolt" 3;
"~*BotALot" 3;
"~*Brandprotect" 3;
"~*Brandwatch" 3;
"~*Bubing" 3;
"~*Buddy" 3;
"~*BuiltBotTough" 3;
"~*BuiltWith" 3;
"~*Bullseye" 3;
"~*BunnySlippers" 3;
"~*BuzzSumo" 3;
"~*Calculon" 3;
"~*CazoodleBot" 3;
"~*CCBot" 3;
"~*Cegbfeieh" 3;
"~*CheeseBot" 3;
"~*CherryPicker" 3;
"~*ChinaClaw" 3;
"~*Chlooe" 3;
"~*Claritybot" 3;
"~*Cliqzbot" 3;
"~*Cogentbot" 3;
"~*Collector" 3;
"~*Copier" 3;
"~*CopyRightCheck" 3;
"~*Copyscape" 3;
"~*Cosmos" 3;
"~*Craftbot" 3;
"~*CrazyWebCrawler" 3;
"~*Crescent" 3;
"~*CSHttp" 3;
"~*Curious" 3;
"~*Custo" 3;
"~*DBLBot" 3;
"~*Demon" 3;
"~*Deusu" 3;
"~*Devil" 3;
"~*DIIbot" 3;
"~*Dirbuster" 3;
"~*Disco" 3;
"~*Discobot" 3;
"~*Discoverybot" 3;
"~*DittoSpyder" 3;
"~*DomainAppender" 3;
"~*DomainSigmaCrawler" 3;
"~*Dotbot" 3;
"~*Download\ Demon" 3;
"~*Download\ Devil" 3;
"~*Download\ Wonder" 3;
"~*Dragonfly" 3;
"~*Drip" 3;
"~*DTS\ Agent" 3;
"~*EasyDL" 3;
"~*Ebingbong" 3;
"~*eCatch" 3;
"~*ECCP/1.0" 3;
"~*Ecxi" 3;
"~*EirGrabber" 3;
"~*EMail\ Collector" 3;
"~*EMail\ Extractor" 3;
"~*EMail\ Siphon" 3;
"~*EMail\ Wolf" 3;
"~*EroCrawler" 3;
"~*Evil" 3;
"~*Exabot" 3;
"~*Express\ WebPictures" 3;
"~*Extractor" 3;
"~*ExtractorPro" 3;
"~*EyeNetIE" 3;
"~*Ezooms" 3;
"~*FHscan" 3;
"~*Fimap" 3;
"~*Findxbot" 3;
"~*Firefox/7.0" 3;
"~*FlashGet" 3;
"~*Flunky" 3;
"~*Foobot" 3;
"~*Freeuploader" 3;
"~*FrontPage" 3;
"~*GalaxyBot" 3;
"~*Genieo" 3;
"~*Getintent" 3;
"~*GetRight" 3;
"~*GetWeb" 3;
"~*Gigablast" 3;
"~*Gigabot" 3;
"~*Go-Ahead-Got-It" 3;
"~*Gotit" 3;
"~*GoZilla" 3;
"~*Go!Zilla" 3;
"~*Grabber" 3;
"~*GrabNet" 3;
"~*Grafula" 3;
"~*GrapeFX" 3;
"~*GrapeshotCrawler" 3;
"~*GridBot" 3;
"~*GT::WWW" 3;
"~*GuzzleHttp" 3;
"~*HaosouSpider" 3;
"~*Harvest" 3;
"~*Havij" 3;
"~*Heritrix" 3;
"~*Hloader" 3;
"~*HMView" 3;
"~*HTMLparser" 3;
"~*HTTP::Lite" 3;
"~*HTTrack" 3;
"~*Humanlinks" 3;
"~*Iblog" 3;
"~*IDBot" 3;
"~*Id-search" 3;
"~*IlseBot" 3;
"~*Image\ Fetch" 3;
"~*Image\ Stripper" 3;
"~*Image\ Sucker" 3;
"~*Indy\ Library" 3;
"~*InfoNaviRobot" 3;
"~*InfoTekies" 3;
"~*Intelliseek" 3;
"~*InterGET" 3;
"~*Internet\ Ninja" 3;
"~*InternetSeer" 3;
"~*internetVista\ monitor" 3;
"~*Iria" 3;
"~*IRLbot" 3;
"~*Iskanie" 3;
"~*JamesBOT" 3;
"~*Jbrofuzz" 3;
"~*JennyBot" 3;
"~*JetCar" 3;
"~*JikeSpider" 3;
"~*JOC\ Web\ Spider" 3;
"~*Joomla" 3;
"~*JustView" 3;
"~*Jyxobot" 3;
"~*Kenjin\ Spider" 3;
"~*Keyword\ Density" 3;
"~*Lanshanbot" 3;
"~*Larbin" 3;
"~*LeechFTP" 3;
"~*LeechGet" 3;
"~*LexiBot" 3;
"~*Lftp" 3;
"~*LibWeb" 3;
"~*Libwhisker" 3;
"~*Lightspeedsystems" 3;
"~*Likse" 3;
"~*Linkdexbot" 3;
"~*LinkextractorPro" 3;
"~*LinkpadBot" 3;
"~*LinkScan" 3;
"~*LinksManager" 3;
"~*LinkWalker" 3;
"~*LinqiaMetadataDownloaderBot" 3;
"~*LinqiaRSSBot" 3;
"~*LinqiaScrapeBot" 3;
"~*Lipperhey" 3;
"~*Litemage_walker" 3;
"~*Lmspider" 3;
"~*LNSpiderguy" 3;
"~*Ltx71" 3;
"~*lwp-request" 3;
"~*LWP::Simple" 3;
"~*lwp-trivial" 3;
"~*Magnet" 3;
"~*Mag-Net" 3;
"~*magpie-crawler" 3;
"~*Mail.ru" 3;
"~*Majestic12" 3;
"~*MarkMonitor" 3;
"~*MarkWatch" 3;
"~*Masscan" 3;
"~*Mass\ Downloader" 3;
"~*Mata\ Hari" 3;
"~*Meanpathbot" 3;
"~*MegaIndex.ru" 3;
"~*Metauri" 3;
"~*MFC_Tear_Sample" 3;
"~*Microsoft\ Data\ Access" 3;
"~*Microsoft\ URL\ Control" 3;
"~*MIDown\ tool" 3;
"~*MIIxpc" 3;
"~*Mister\ PiX" 3;
"~*MJ12bot" 3;
"~*Mojeek" 3;
"~*MSFrontPage" 3;
"~*MSIE\ 6.0" 3;
"~*MSIECrawler" 3;
"~*Msrabot" 3;
"~*MS\ Web\ Services\ Client\ Protocol" 3;
"~*Musobot" 3;
"~*Name\ Intelligence" 3;
"~*Nameprotect" 3;
"~*Navroad" 3;
"~*NearSite" 3;
"~*Needle" 3;
"~*Nessus" 3;
"~*NetAnts" 3;
"~*Netcraft" 3;
"~*netEstate\ NE\ Crawler" 3;
"~*NetLyzer" 3;
"~*NetMechanic" 3;
"~*NetSpider" 3;
"~*Nettrack" 3;
"~*Net\ Vampire" 3;
"~*NetZIP" 3;
"~*NextGenSearchBot" 3;
"~*Nibbler" 3;
"~*NICErsPRO" 3;
"~*Niki-bot" 3;
"~*Nikto" 3;
"~*NimbleCrawler" 3;
"~*Ninja" 3;
"~*Nmap" 3;
"~*NPbot" 3;
"~*Nutch" 3;
"~*Octopus" 3;
"~*Offline\ Explorer" 3;
"~*Offline\ Navigator" 3;
"~*Openfind" 3;
"~*OpenLinkProfiler" 3;
"~*Openvas" 3;
"~*OrangeBot" 3;
"~*OrangeSpider" 3;
"~*OutfoxBot" 3;
"~*PageAnalyzer" 3;
"~*Page\ Analyzer" 3;
"~*PageGrabber" 3;
"~*Page\ Grabber" 3;
"~*page\ scorer" 3;
"~*PageScorer" 3;
"~*Panscient" 3;
"~*Papa\ Foto" 3;
"~*Pavuk" 3;
"~*pcBrowser" 3;
"~*PECL::HTTP" 3;
"~*PeoplePal" 3;
"~*PHPCrawl" 3;
"~*Picscout" 3;
"~*Picsearch" 3;
"~*Pimonster" 3;
"~*Pi-Monster" 3;
"~*Pixray" 3;
"~*PleaseCrawl" 3;
"~*Pockey" 3;
"~*POE-Component-Client-HTTP" 3;
"~*Probethenet" 3;
"~*ProPowerBot" 3;
"~*ProWebWalker" 3;
"~*Proximic" 3;
"~*Psbot" 3;
"~*Pump" 3;
"~*PyCurl" 3;
"~*QueryN\ Metasearch" 3;
"~*Qwantify" 3;
"~*RankActiveLinkBot" 3;
"~*Rankivabot" 3;
"~*RealDownload" 3;
"~*Reaper" 3;
"~*Recorder" 3;
"~*RedesScrapy" 3;
"~*ReGet" 3;
"~*RepoMonkey" 3;
"~*Ripper" 3;
"~*RocketCrawler" 3;
"~*Rogerbot" 3;
"~*SBIder" 3;
"~*ScanAlert" 3;
"~*Scanbot" 3;
"~*Scrapy" 3;
"~*Screaming\ Frog\ SEO\ Spider" 3;
"~*ScreenerBot" 3;
"~*Searchestate" 3;
"~*SearchmetricsBot" 3;
"~*Semrush" 3;
"~*SemrushBot" 3;
"~*SEOkicks" 3;
"~*SEOkicks-Robot" 3;
"~*SEOlyticsCrawler" 3;
"~*Seomoz" 3;
"~*SEOprofiler" 3;
"~*SEOstats" 3;
"~*SeznamBot" 3;
"~*Siphon" 3;
"~*SISTRIX" 3;
"~*SISTRIX\ Crawler" 3;
"~*Sitebeam" 3;
"~*SiteExplorer" 3;
"~*Siteimprove" 3;
"~*SiteLockSpider" 3;
"~*SiteSnagger" 3;
"~*SiteSucker" 3;
"~*Site\ Sucker" 3;
"~*Sitevigil" 3;
"~*Slackbot-LinkExpanding" 3;
"~*SlySearch" 3;
"~*SmartDownload" 3;
"~*Snake" 3;
"~*Snapbot" 3;
"~*Snoopy" 3;
"~*SocialRankIOBot" 3;
"~*Sogou\ web\ spider" 3;
"~*Sosospider" 3;
"~*SpaceBison" 3;
"~*Spammen" 3;
"~*SpankBot" 3;
"~*Spanner" 3;
"~*Spbot" 3;
"~*Spinn3r" 3;
"~*SputnikBot" 3;
"~*Sqlmap" 3;
"~*Sqlworm" 3;
"~*Sqworm" 3;
"~*Steeler" 3;
"~*Stripper" 3;
"~*Sucker" 3;
"~*Sucuri" 3;
"~*SuperBot" 3;
"~*SuperHTTP" 3;
"~*Surfbot" 3;
"~*SurveyBot" 3;
"~*Suzuran" 3;
"~*Swiftbot" 3;
"~*Szukacz" 3;
"~*T0PHackTeam" 3;
"~*T8Abot" 3;
"~*tAkeOut" 3;
"~*Teleport" 3;
"~*TeleportPro" 3;
"~*Telesoft" 3;
"~*Telesphoreo" 3;
"~*Telesphorep" 3;
"~*The\ Intraformant" 3;
"~*TheNomad" 3;
"~*TightTwatBot" 3;
"~*Titan" 3;
"~*Toata" 3;
"~*Toweyabot" 3;
"~*Trendictionbot" 3;
"~*True_Robot" 3;
"~*Turingos" 3;
"~*TurnitinBot" 3;
"~*Turnitin\ Bot" 3;
"~*Turnitin\ Robot" 3;
"~*TwengaBot" 3;
"~*Twice" 3;
"~*Typhoeus" 3;
"~*URLy.Warning" 3;
"~*URLy\ Warning" 3;
"~*Vacuum" 3;
"~*Vagabondo" 3;
"~*VB\ Project" 3;
"~*VCI" 3;
"~*VeriCiteCrawler" 3;
"~*VidibleScraper" 3;
"~*VoidEYE" 3;
"~*Voil" 3;
"~*Voltron" 3;
"~*WallpapersHD" 3;
"~*WASALive-Bot" 3;
"~*WBSearchBot" 3;
"~*Webalta" 3;
"~*WebAuto" 3;
"~*Web\ Auto" 3;
"~*WebBandit" 3;
"~*Web\ Bandit" 3;
"~*WebCollage" 3;
"~*Web\ Collage" 3;
"~*WebCopier" 3;
"~*Web\ Copier" 3;
"~*WEBDAV" 3;
"~*WEBDAV\ Client" 3;
"~*WebEnhancer" 3;
"~*Web\ Enhancer" 3;
"~*WebFetch" 3;
"~*Web\ Fetch" 3;
"~*WebFuck" 3;
"~*Web\ Fuck" 3;
"~*WebGo\ IS" 3;
"~*WebImageCollector" 3;
"~*Web\ Image\ Collector" 3;
"~*WebLeacher" 3;
"~*WebmasterWorldForumBot" 3;
"~*webmeup-crawler" 3;
"~*WebPix" 3;
"~*Web\ Pix" 3;
"~*WebReaper" 3;
"~*Web\ Reaper" 3;
"~*WebSauger" 3;
"~*Web\ Sauger" 3;
"~*Webshag" 3;
"~*WebsiteExtractor" 3;
"~*Website\ Extractor" 3;
"~*WebsiteQuester" 3;
"~*Website\ Quester" 3;
"~*Webster" 3;
"~*WebStripper" 3;
"~*Web\ Stripper" 3;
"~*WebSucker" 3;
"~*Web\ Sucker" 3;
"~*WebWhacker" 3;
"~*Web\ Whacker" 3;
"~*WebZIP" 3;
"~*WeSEE" 3;
"~*Whack" 3;
"~*Whacker" 3;
"~*Whatweb" 3;
"~*Widow" 3;
"~*WinHTTrack" 3;
"~*WiseGuys\ Robot" 3;
"~*WISENutbot" 3;
"~*Wonderbot" 3;
"~*Woobot" 3;
"~*Wotbox" 3;
"~*Wprecon" 3;
"~*WPScan" 3;
"~*WWW-Collector-E" 3;
"~*WWW-Mechanize" 3;
"~*WWW::Mechanize" 3;
"~*WWWOFFLE" 3;
"~*Xaldon_WebSpider" 3;
"~*Xaldon\ WebSpider" 3;
"~*Xenu" 3;
"~*YoudaoBot" 3;
"~*Zade" 3;
"~*Zermelo" 3;
"~*Zeus" 3;
"~*Zgrab" 3;
"~*Zitebot" 3;
"~*ZmEu" 3;
"~*ZumBot" 3;
"~*ZyBorg" 3;
# END BAD BOTS ### DO NOT EDIT THIS LINE AT ALL ###
}
# ****************************************
# SECOND BLOCK BY REFERER STRINGS AND URLS
# ****************************************
# Add here all referrer words and URL's that are to blocked.
# *****************
# PLEASE TEST !!!!
# *****************
# ALWAYS test referers that you add. This is done manually as follows
# curl -I http://www.yourdomain.com -e http://anything.adcash.com
# curl -I http://www.yourdomain.com -e http://www.goodwebsite.com/not-adcash
# curl -I http://www.yourdomain.com -e http://www.betterwebsite.com/not/adcash
# This uses curl to send the referer string to your site and you should see an immediate
# 403 Forbidden Error or No Response at all if you use the 444 error like I do.
# Because of case-insensitive matching any combination of capitilization in the names
# will all produce a positive hit - make sure you always test thoroughly and monitor logs
# This also does NOT check for a preceding www. nor does it check for it ending in .com
# .net .org or any long string attached at the end. It also does not care if the referer
# was sent with http https or even ftp.
# REAL WORLD EXAMPLE
# *******************
# If you were a photographer like me and say took a photo of a "girl" and you then posted
# a blog showing everyone your new photo and your blog slug / permalink was
# http://www.mysite.com/blog/photo-of-girl/
# You can go and monitor your logs and you will see lots of 444 from other pages on your
# site that have been clicked on sending that page as a referer so in the example below
# you will generate a 403 error.
# curl --referer http://www.mysite.com/blog/photo-of-girl/ http://www.mysite.com/
# So please be careful with these and think carefully before you add new words.
# Remember we are trying to keep out the general riff-raff not kill your web sites.
# **********************************************************************
# Now we map all bad referer words below to a variable called $bad_words
# **********************************************************************
map $http_referer $bad_words {
default 0;
# *************************
# Bad Referer Word Scanning
# *************************
# These are Words and Terms often found tagged onto domains or within url query strings.
# Create and Customize Your Own Bad Referrer Words Here using the new Include File Method
# New Method Uses the include file below so that when pulling future updates your
# customized list of bad referrer words are automatically now included for you
# Read Comments inside bad-referrer-words.conf for customization tips.
# Updating the main globalblacklist.conf file will not touch your custom include files
# START CUSTOM BAD REFERRER WORDS ### DO NOT EDIT THIS LINE AT ALL ###
include /etc/nginx/bots.d/bad-referrer-words.conf;
# END CUSTOM BAD REFERRER WORDS ### DO NOT EDIT THIS LINE AT ALL ###
}
# ************************
# Bad Referer Domain Names
# ************************
# Now a list of bad referer urls these domains or any combination of them ie .com .net
# will be blocked out. Doesn't matter if the protocol is http, https or even ftp
# This section includes:
# **********************
# Blocking of SEO company Semalt.com (now merged into this one section)
# MIRAI Botnet Domains Used for Mass Attacks
# Other known bad SEO companies and Ad Hijacking Sites
# Sites linked to malware, adware, clickjacking and ransomware
# *****************
# PLEASE TEST !!!!
# *****************
# ALWAYS test referers that you add. This is done manually as follows
# curl -I http://www.yourdomain.com -e http://8gold.com
# This uses curl to send the referer string to your site and you should see an immediate
# 403 Forbidden Error or No Response at all if you use the 444 error like I do.
# Because of case-insensitive matching any combination of capitilization
# will all produce a positive hit - make sure you always test.
# curl -I http://www.yourdomain.com -e http://NOT-8gold.com
# curl -I http://www.yourdomain.com -e http://this.is.not8gOlD.net
# curl -I http://www.yourdomain.com -e ftp://8gold.com
# curl -I http://www.yourdomain.com -e ftp://www.weare8gold.NET
# curl -I http://www.yourdomain.com -e https://subdomain.8gold.com
# curl -I http://www.yourdomain.com -e https://NOT8GolD.org
# This works exactly like the bad referer word lists above and is very strict !!!
# I have gone for the simple stricter approach which blocks all variants for those
# who just hop out and but another domain name.
# So if you see a bad referer from wearegoogle.com and you want to block them just add
# them as "~*wearegoogle.com" don't ever go and do something like "~*google(-|.)" you will
# kill all your SEO in a week. Rather also send a Pull Request by following the instructions
# in the Pull_Requests_Here_Please folder.
# I also include any sites that hotlink images from my sites into the list below.
# There are hundreds of image stealing sites out there so this list WILL grow now doubt.
# ***********************************************************************
# Now we map all good & bad referer urls to variable called #bad_referer
# ***********************************************************************
map $http_referer $bad_referer {
hostnames;
default 0;
# ************************************
# GOOD REFERERS - Spared from Checking
# ************************************
# Add all your own web site domain names and server names in this section
# WHITELIST Your Own Domain Names Here using the Include File Method
# New Method Uses the include file below so that when pulling future updates your
# whitelisted domain names are automatically now included for you.
# Read Comments inside whitelist-domains.conf for customization tips.
# Updating the main globalblacklist.conf file will not touch your custom include files
# START WHITELISTED DOMAINS ### DO NOT EDIT THIS LINE AT ALL ###
include /etc/nginx/bots.d/whitelist-domains.conf;
# END WHITELISTED DOMAINS ### DO NOT EDIT THIS LINE AT ALL ###
# *******************************************
# CUSTOM BAD REFERERS - Add your Own
# *******************************************
# Add any extra bad referers in the following include file to have them
# permanently included and blocked - avoid duplicates in your custom file
# START CUSTOM BAD REFERRERS ### DO NOT EDIT THIS LINE AT ALL ###
include /etc/nginx/bots.d/custom-bad-referrers.conf;
# END CUSTOM BAD REFERRERS ### DO NOT EDIT THIS LINE AT ALL ###
# START BAD REFERERS ### DO NOT EDIT THIS LINE AT ALL ###
"~*000free.us" 1;
"~*007angels.com" 1;
"~*00author.com" 1;
"~*00go.com" 1;
"~*00it.com" 1;
"~*00webcams.com" 1;
"~*0912701309f8ce.com" 1;
"~*0c47f8422d3f.com" 1;
"~*0n-line.tv" 1;
"~*100dollars-seo.com" 1;
"~*101billion.com" 1;
"~*101flag.ru" 1;
"~*101imagedatabase.com" 1;
"~*101lesbian.xyz" 1;
"~*101raccoon.ru" 1;
"~*108shot.com" 1;
"~*10bet.com" 1;
"~*11235813.webzdarma.cz" 1;
"~*11pikachu.ru" 1;
"~*123any.com" 1;
"~*123cha.com" 1;
"~*123kuma.com" 1;
"~*123locker.com" 1;
"~*12bet.com" 1;
"~*12masterov.com" 1;
"~*1314dh.com" 1;
"~*160117rd.xyz" 1;
"~*178evakuator178.ru" 1;
"~*1-99seo.com" 1;
"~*1adult.com" 1;
"~*1bet.com" 1;
"~*1-free-share-buttons.com" 1;
"~*1hwy.com" 1;
"~*1j7740kd.website" 1;
"~*1kinobig.ru" 1;
"~*1millionusd.xyz" 1;
"~*1pamm.ru" 1;
"~*1stat.ru" 1;
"~*2015god.org" 1;
"~*202ch.com" 1;
"~*20pascals.nl" 1;
"~*214jaluwobapef.cf" 1;
"~*24videos.tv" 1;
"~*24x7-server-support.site" 1;
"~*256bit.by" 1;
"~*2728fb936f0.com" 1;
"~*273-fz.ru" 1;
"~*28n2gl3wfyb0.ru" 1;
"~*2ads.co.uk" 1;
"~*2drittel.de" 1;
"~*2itech.ru" 1;
"~*2kata.ru" 1;
"~*2nt.ru" 1;
"~*2rich4bitches.com" 1;
"~*300richmond.co.nz" 1;
"~*34.gs" 1;
"~*3dracergames.com" 1;
"~*3-letter-domains.net" 1;
"~*3rbseyes.com" 1;
"~*3weekdiet.com" 1;
"~*40cg.com" 1;
"~*45en.ru" 1;
"~*45tahunkhongguan.com" 1;
"~*4istoshop.com" 1;
"~*4kplayer.pl" 1;
"~*4pp13.com" 1;
"~*4rent.ru" 1;
"~*4replicawatch.net" 1;
"~*4ur.click" 1;
"~*4ureyesonly.com" 1;
"~*4webmasters.com" 1;
"~*5000-cotydzien.com" 1;
"~*51.la" 1;
"~*51unlim.ru" 1;
"~*55wmz.ru" 1;
"~*57883.net" 1;
"~*5elementov.ru" 1;
"~*5forex.ru" 1;
"~*5i2.net" 1;
"~*5kstore.com" 1;
"~*5u.com" 1;
"~*66cpwgln.space" 1;
"~*6hopping.com" 1;
"~*72-news.com" 1;
"~*76brighton.co.uk" 1;
"~*777-club.ru" 1;
"~*7fon.ru" 1;
"~*7makemoneyonline.com" 1;
"~*7wind.ru" 1;
"~*7yue.org" 1;
"~*7zap.com" 1;
"~*8558l.jobs.net" 1;
"~*883zy.com" 1;
"~*888.com" 1;
"~*8gold.com" 1;
"~*8kisses.eu" 1;
"~*8si.ru" 1;
"~*8xv8.com" 1;
"~*98oi.ru" 1;
"~*999webdesign.com" 1;
"~*9icmzvn6.website" 1;
"~*9med.net" 1;
"~*a342ae9750004b14b55f7310eff0ab65.com" 1;
"~*aa08daf7e13b6345e09e92f771507fa5f4.com" 1;
"~*aa14ab57a3339c4064bd9ae6fad7495b5f.com" 1;
"~*aa625d84f1587749c1ab011d6f269f7d64.com" 1;
"~*aa81bf391151884adfa3dd677e41f94be1.com" 1;
"~*aa8780bb28a1de4eb5bff33c28a218a930.com" 1;
"~*aa8b68101d388c446389283820863176e7.com" 1;
"~*aa9bd78f328a6a41279d0fad0a88df1901.com" 1;
"~*aa9d046aab36af4ff182f097f840430d51.com" 1;
"~*aaa38852e886ac4af1a3cff9b47cab6272.com" 1;
"~*aab94f698f36684c5a852a2ef272e031bb.com" 1;
"~*aac500b7a15b2646968f6bd8c6305869d7.com" 1;
"~*aac52006ec82a24e08b665f4db2b5013f7.com" 1;
"~*aad1f4acb0a373420d9b0c4202d38d94fa.com" 1;
"~*aadroid.net" 1;
"~*aarbur.com" 1;
"~*abbanreddy.com" 1;
"~*abbp1.website" 1;
"~*abclauncher.com" 1;
"~*abctoppictures.net" 1;
"~*abc.xyz" 1;
"~*abiente.ru" 1;
"~*abovetherivernc.com" 1;
"~*absolute-s.ru" 1;
"~*abtasty.com" 1;
"~*abusora.com" 1;
"~*abwa.tk" 1;
"~*academia-nsk.org" 1;
"~*acads.net" 1;
"~*acc.eu.org" 1;
"~*acheterviagrafr24.com" 1;
"~*actionnooz.com" 1;
"~*actremage.com" 1;
"~*actulite.com" 1;
"~*adamoads.com" 1;
"~*adcash.com" 1;
"~*adclickservice.com" 1;
"~*adclickthru.net" 1;
"~*add-add.men" 1;
"~*addbin.men" 1;
"~*addblueoff.com.ua" 1;
"~*addray.pro" 1;
"~*addtoadd.men" 1;
"~*adelly.bg" 1;
"~*adf.ly" 1;
"~*adhome.biz" 1;
"~*adidas.frwebs.fr" 1;
"~*adimmix.com" 1;
"~*adktrailmap.com" 1;
"~*adloads.com" 1;
"~*adloads.net" 1;
"~*admanaerofoil.com" 1;
"~*adman.gr" 1;
"~*adman.se" 1;
"~*admatic.com.tr" 1;
"~*adminshop.com" 1;
"~*admitad.com" 1;
"~*adnotbad.com" 1;
"~*adpremium.org" 1;
"~*ads-cool.pro" 1;
"~*adserver-e7.com" 1;
"~*adsfresh.men" 1;
"~*ads.gold" 1;
"~*adsland.men" 1;
"~*ads-seo.men" 1;
"~*ads.tremorhub.com" 1;
"~*adtiger.tk" 1;
"~*adultactioncam.com" 1;
"~*adultfriendfinder.com" 1;
"~*adultfullhd.com" 1;