referer-parser 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/data/referers.json +4022 -0
- data/data/referers.yml +194 -50
- data/lib/referer-parser/referers.rb +2 -1
- data/lib/referer-parser/version.rb +1 -1
- data/spec/referer-tests.json +234 -0
- metadata +8 -9
data/data/referers.yml
CHANGED
@@ -1,9 +1,3 @@
|
|
1
|
-
#################################### DO NOT EDIT THIS FILE ####################################
|
2
|
-
# #
|
3
|
-
# This file will be overwritten the next time ./sync_yaml.sh is run! #
|
4
|
-
# #
|
5
|
-
#################################### DO NOT EDIT THIS FILE ####################################
|
6
|
-
|
7
1
|
# #######################################################################################################
|
8
2
|
#
|
9
3
|
# ALL SUPPORTED REFERERS
|
@@ -64,23 +58,62 @@ unknown:
|
|
64
58
|
|
65
59
|
email:
|
66
60
|
|
61
|
+
126 Mail:
|
62
|
+
domains:
|
63
|
+
- mail.126.com
|
64
|
+
|
65
|
+
163 Mail:
|
66
|
+
domains:
|
67
|
+
- mail.163.com
|
68
|
+
|
69
|
+
AOL Mail:
|
70
|
+
domains:
|
71
|
+
- mail.aol.com
|
72
|
+
|
73
|
+
Bigpond:
|
74
|
+
domains:
|
75
|
+
- webmail.bigpond.com
|
76
|
+
- webmail2.bigpond.com
|
77
|
+
|
78
|
+
Daum Mail:
|
79
|
+
domains:
|
80
|
+
- mail2.daum.net
|
81
|
+
|
67
82
|
Gmail:
|
68
83
|
domains:
|
69
84
|
- mail.google.com
|
70
85
|
|
86
|
+
Naver Mail:
|
87
|
+
domains:
|
88
|
+
- mail.naver.com
|
89
|
+
|
90
|
+
Optus Zoo:
|
91
|
+
domains:
|
92
|
+
- webmail.optuszoo.com.au
|
93
|
+
|
94
|
+
Orange Webmail:
|
95
|
+
domains:
|
96
|
+
- orange.fr/webmail
|
97
|
+
|
71
98
|
Outlook.com:
|
72
99
|
domains:
|
73
100
|
- mail.live.com
|
74
101
|
|
102
|
+
QQ Mail:
|
103
|
+
domains:
|
104
|
+
- mail.qq.com
|
105
|
+
|
106
|
+
Seznam Mail:
|
107
|
+
domains:
|
108
|
+
- email.seznam.cz
|
109
|
+
|
75
110
|
Yahoo! Mail:
|
76
111
|
domains:
|
77
112
|
- mail.yahoo.net
|
78
113
|
- mail.yahoo.com
|
79
114
|
- mail.yahoo.co.uk
|
115
|
+
- mail.yahoo.co.jp
|
80
116
|
|
81
|
-
Orange Webmail:
|
82
|
-
domains:
|
83
|
-
- orange.fr/webmail
|
84
117
|
|
85
118
|
# #######################################################################################################
|
86
119
|
#
|
@@ -106,6 +139,19 @@ social:
|
|
106
139
|
- twitter.com
|
107
140
|
- t.co
|
108
141
|
|
142
|
+
Instagram:
|
143
|
+
domains:
|
144
|
+
- instagram.com
|
145
|
+
|
146
|
+
Youtube:
|
147
|
+
domains:
|
148
|
+
- youtube.com
|
149
|
+
- youtu.be
|
150
|
+
|
151
|
+
Vimeo:
|
152
|
+
domains:
|
153
|
+
- vimeo.com
|
154
|
+
|
109
155
|
Renren:
|
110
156
|
domains:
|
111
157
|
- renren.com
|
@@ -133,7 +179,7 @@ social:
|
|
133
179
|
|
134
180
|
Orkut:
|
135
181
|
domains:
|
136
|
-
- orkut.com
|
182
|
+
- orkut.com
|
137
183
|
|
138
184
|
Myspace:
|
139
185
|
domains:
|
@@ -194,7 +240,7 @@ social:
|
|
194
240
|
|
195
241
|
Flickr:
|
196
242
|
domains:
|
197
|
-
- flickr.com
|
243
|
+
- flickr.com
|
198
244
|
|
199
245
|
WeeWorld:
|
200
246
|
domains:
|
@@ -226,7 +272,7 @@ social:
|
|
226
272
|
|
227
273
|
Skyrock:
|
228
274
|
domains:
|
229
|
-
- skyrock.com
|
275
|
+
- skyrock.com
|
230
276
|
|
231
277
|
BlackPlanet:
|
232
278
|
domains:
|
@@ -278,7 +324,7 @@ social:
|
|
278
324
|
|
279
325
|
XING:
|
280
326
|
domains:
|
281
|
-
- xing.com
|
327
|
+
- xing.com
|
282
328
|
|
283
329
|
Taringa!:
|
284
330
|
domains:
|
@@ -349,6 +395,13 @@ social:
|
|
349
395
|
- weibo.com
|
350
396
|
- t.cn
|
351
397
|
|
398
|
+
Delicious:
|
399
|
+
domains:
|
400
|
+
- delicious.com
|
401
|
+
|
402
|
+
Pocket:
|
403
|
+
domains:
|
404
|
+
- getpocket.com
|
352
405
|
|
353
406
|
# #######################################################################################################
|
354
407
|
#
|
@@ -357,7 +410,7 @@ social:
|
|
357
410
|
search:
|
358
411
|
|
359
412
|
1.cz:
|
360
|
-
parameters:
|
413
|
+
parameters:
|
361
414
|
- q
|
362
415
|
domains:
|
363
416
|
- 1.cz
|
@@ -365,16 +418,23 @@ search:
|
|
365
418
|
# 123people TODO
|
366
419
|
|
367
420
|
1und1:
|
368
|
-
parameters:
|
421
|
+
parameters:
|
369
422
|
- su
|
370
423
|
domains:
|
371
424
|
- search.1und1.de
|
372
425
|
|
426
|
+
360.cn:
|
427
|
+
parameters:
|
428
|
+
- q
|
429
|
+
domains:
|
430
|
+
- so.360.cn
|
431
|
+
- www.so.com
|
432
|
+
|
373
433
|
Abacho:
|
374
|
-
parameters:
|
434
|
+
parameters:
|
375
435
|
- q
|
376
436
|
domains:
|
377
|
-
- www.abacho.de
|
437
|
+
- www.abacho.de
|
378
438
|
- www.abacho.com
|
379
439
|
- www.abacho.co.uk
|
380
440
|
- www.se.abacho.com
|
@@ -386,45 +446,45 @@ search:
|
|
386
446
|
- www.abacho.it
|
387
447
|
|
388
448
|
ABCsøk:
|
389
|
-
parameters:
|
449
|
+
parameters:
|
390
450
|
- q
|
391
451
|
domains:
|
392
452
|
- abcsolk.no
|
393
453
|
- verden.abcsok.no
|
394
454
|
|
395
455
|
Acoon:
|
396
|
-
parameters:
|
456
|
+
parameters:
|
397
457
|
- begriff
|
398
458
|
domains:
|
399
459
|
- www.acoon.de
|
400
460
|
|
401
461
|
Alexa:
|
402
|
-
parameters:
|
462
|
+
parameters:
|
403
463
|
- q
|
404
464
|
domains:
|
405
465
|
- alexa.com
|
406
466
|
- search.toolbars.alexa.com
|
407
467
|
|
408
468
|
Alice Adsl:
|
409
|
-
parameters:
|
469
|
+
parameters:
|
410
470
|
- q
|
411
471
|
domains:
|
412
472
|
- rechercher.aliceadsl.fr
|
413
473
|
|
414
474
|
AllTheWeb:
|
415
|
-
parameters:
|
475
|
+
parameters:
|
416
476
|
- q
|
417
|
-
domains:
|
477
|
+
domains:
|
418
478
|
- www.alltheweb.com
|
419
479
|
|
420
480
|
all.by:
|
421
|
-
parameters:
|
481
|
+
parameters:
|
422
482
|
- query
|
423
483
|
domains:
|
424
484
|
- all.by
|
425
485
|
|
426
486
|
Altavista:
|
427
|
-
parameters:
|
487
|
+
parameters:
|
428
488
|
- q
|
429
489
|
domains:
|
430
490
|
- www.altavista.com
|
@@ -435,13 +495,22 @@ search:
|
|
435
495
|
- be-nl.altavista.com
|
436
496
|
- be-fr.altavista.com
|
437
497
|
|
498
|
+
Amazon:
|
499
|
+
parameters:
|
500
|
+
- keywords
|
501
|
+
domains:
|
502
|
+
- amazon.com
|
503
|
+
- www.amazon.com
|
504
|
+
|
438
505
|
AOL:
|
439
|
-
parameters:
|
506
|
+
parameters:
|
440
507
|
- q
|
508
|
+
- query
|
441
509
|
domains:
|
442
510
|
- search.aol.com
|
443
511
|
- search.aol.it
|
444
512
|
- aolsearch.aol.com
|
513
|
+
- aolsearch.com
|
445
514
|
- www.aolrecherche.aol.fr
|
446
515
|
- www.aolrecherches.aol.fr
|
447
516
|
- www.aolimages.aol.fr
|
@@ -465,13 +534,13 @@ search:
|
|
465
534
|
- search-intl.netscape.com
|
466
535
|
|
467
536
|
Apollo Latvia:
|
468
|
-
parameters:
|
537
|
+
parameters:
|
469
538
|
- q
|
470
|
-
domains:
|
539
|
+
domains:
|
471
540
|
- apollo.lv/portal/search/
|
472
541
|
|
473
542
|
APOLL07:
|
474
|
-
parameters:
|
543
|
+
parameters:
|
475
544
|
- query
|
476
545
|
domains:
|
477
546
|
- apollo7.de
|
@@ -484,35 +553,36 @@ search:
|
|
484
553
|
- www.apontador.com.br
|
485
554
|
|
486
555
|
Aport:
|
487
|
-
parameters:
|
556
|
+
parameters:
|
488
557
|
- r
|
489
558
|
domains:
|
490
559
|
- sm.aport.ru
|
491
560
|
|
492
561
|
arama:
|
493
|
-
parameters:
|
562
|
+
parameters:
|
494
563
|
- q
|
495
564
|
domains:
|
496
565
|
- arama.com
|
497
566
|
|
498
567
|
Arcor:
|
499
|
-
parameters:
|
568
|
+
parameters:
|
500
569
|
- Keywords
|
501
570
|
domains:
|
502
571
|
- www.arcor.de
|
503
572
|
|
504
573
|
Arianna:
|
505
|
-
parameters:
|
574
|
+
parameters:
|
506
575
|
- query
|
507
576
|
domains:
|
508
577
|
- arianna.libero.it
|
509
578
|
- www.arianna.com
|
510
579
|
|
511
580
|
Ask:
|
512
|
-
parameters:
|
581
|
+
parameters:
|
513
582
|
- q
|
514
583
|
domains:
|
515
584
|
- ask.com
|
585
|
+
- www.ask.com
|
516
586
|
- web.ask.com
|
517
587
|
- int.ask.com
|
518
588
|
- mws.ask.com
|
@@ -528,28 +598,34 @@ search:
|
|
528
598
|
- www.search-results.com
|
529
599
|
- int.search-results.com
|
530
600
|
|
601
|
+
Ask Toolbar:
|
602
|
+
parameters:
|
603
|
+
- searchfor
|
604
|
+
domains:
|
605
|
+
- search.tb.ask.com
|
606
|
+
|
531
607
|
Atlas:
|
532
|
-
parameters:
|
608
|
+
parameters:
|
533
609
|
- q
|
534
610
|
domains:
|
535
611
|
- searchatlas.centrum.cz
|
536
612
|
|
537
613
|
Austronaut:
|
538
|
-
parameters:
|
614
|
+
parameters:
|
539
615
|
- q
|
540
616
|
domains:
|
541
617
|
- www2.austronaut.at
|
542
618
|
- www1.astronaut.at
|
543
619
|
|
544
620
|
Babylon:
|
545
|
-
parameters:
|
621
|
+
parameters:
|
546
622
|
- q
|
547
|
-
domains:
|
623
|
+
domains:
|
548
624
|
- search.babylon.com
|
549
625
|
- searchassist.babylon.com
|
550
626
|
|
551
627
|
Baidu:
|
552
|
-
parameters:
|
628
|
+
parameters:
|
553
629
|
- wd
|
554
630
|
- word
|
555
631
|
- kw
|
@@ -563,7 +639,7 @@ search:
|
|
563
639
|
- web.gougou.com
|
564
640
|
|
565
641
|
Biglobe:
|
566
|
-
parameters:
|
642
|
+
parameters:
|
567
643
|
- q
|
568
644
|
domains:
|
569
645
|
- cgi.search.biglobe.ne.jp
|
@@ -625,6 +701,12 @@ search:
|
|
625
701
|
- serach.centrum.cz
|
626
702
|
- morfeo.centrum.cz
|
627
703
|
|
704
|
+
Certified-Toolbar:
|
705
|
+
parameters:
|
706
|
+
- q
|
707
|
+
domains:
|
708
|
+
- search.certified-toolbar.com
|
709
|
+
|
628
710
|
Charter:
|
629
711
|
parameters:
|
630
712
|
- q
|
@@ -637,6 +719,12 @@ search:
|
|
637
719
|
domains:
|
638
720
|
- pesquisa.clix.pt
|
639
721
|
|
722
|
+
Comcast:
|
723
|
+
parameters:
|
724
|
+
- q
|
725
|
+
domains:
|
726
|
+
- search.comcast.net
|
727
|
+
|
640
728
|
Conduit:
|
641
729
|
parameters:
|
642
730
|
- q
|
@@ -674,6 +762,12 @@ search:
|
|
674
762
|
- daemon-search.com
|
675
763
|
- my.daemon-search.com
|
676
764
|
|
765
|
+
Dalesearch:
|
766
|
+
parameters:
|
767
|
+
- q
|
768
|
+
domains:
|
769
|
+
- www.dalesearch.com
|
770
|
+
|
677
771
|
DasOertliche:
|
678
772
|
parameters:
|
679
773
|
- kw
|
@@ -799,6 +893,12 @@ search:
|
|
799
893
|
domains:
|
800
894
|
- recherche.francite.com
|
801
895
|
|
896
|
+
Findwide:
|
897
|
+
parameters:
|
898
|
+
- k
|
899
|
+
domains:
|
900
|
+
- search.findwide.com
|
901
|
+
|
802
902
|
Fireball:
|
803
903
|
parameters:
|
804
904
|
- q
|
@@ -852,6 +952,12 @@ search:
|
|
852
952
|
domains:
|
853
953
|
- suche.freenet.de
|
854
954
|
|
955
|
+
Freshweather:
|
956
|
+
parameters:
|
957
|
+
- q
|
958
|
+
domains:
|
959
|
+
- www.fresh-weather.com
|
960
|
+
|
855
961
|
FriendFeed:
|
856
962
|
parameters:
|
857
963
|
- q
|
@@ -870,6 +976,12 @@ search:
|
|
870
976
|
domains:
|
871
977
|
- geona.net
|
872
978
|
|
979
|
+
Genieo:
|
980
|
+
parameters:
|
981
|
+
- q
|
982
|
+
domains:
|
983
|
+
- search.genieo.com
|
984
|
+
|
873
985
|
Gigablast:
|
874
986
|
parameters:
|
875
987
|
- q
|
@@ -877,6 +989,13 @@ search:
|
|
877
989
|
- www.gigablast.com
|
878
990
|
- dir.gigablast.com
|
879
991
|
|
992
|
+
Globososo:
|
993
|
+
parameters:
|
994
|
+
- q
|
995
|
+
domains:
|
996
|
+
- searches.globososo.com
|
997
|
+
- search.globososo.com
|
998
|
+
|
880
999
|
GMX:
|
881
1000
|
parameters:
|
882
1001
|
- su
|
@@ -2561,7 +2680,7 @@ search:
|
|
2561
2680
|
- www.highbeam.com
|
2562
2681
|
|
2563
2682
|
Hit-Parade:
|
2564
|
-
parameters:
|
2683
|
+
parameters:
|
2565
2684
|
- p7
|
2566
2685
|
domains:
|
2567
2686
|
- req.-hit-parade.com
|
@@ -2737,6 +2856,18 @@ search:
|
|
2737
2856
|
- www.mamma.com
|
2738
2857
|
- mamma75.mamma.com
|
2739
2858
|
|
2859
|
+
Marktplaats:
|
2860
|
+
parameters:
|
2861
|
+
- query
|
2862
|
+
domains:
|
2863
|
+
- www.marktplaats.nl
|
2864
|
+
|
2865
|
+
Maxwebsearch:
|
2866
|
+
parameters:
|
2867
|
+
- query
|
2868
|
+
domains:
|
2869
|
+
- maxwebsearch.com
|
2870
|
+
|
2740
2871
|
Meta:
|
2741
2872
|
parameters:
|
2742
2873
|
- q
|
@@ -2771,7 +2902,7 @@ search:
|
|
2771
2902
|
- www.meinestadt.de
|
2772
2903
|
|
2773
2904
|
Mister Wong:
|
2774
|
-
parameters:
|
2905
|
+
parameters:
|
2775
2906
|
- Keywords
|
2776
2907
|
domains:
|
2777
2908
|
- www.mister-wong.com
|
@@ -2828,6 +2959,13 @@ search:
|
|
2828
2959
|
domains:
|
2829
2960
|
- search.naver.com
|
2830
2961
|
|
2962
|
+
Naver Images:
|
2963
|
+
parameters:
|
2964
|
+
- query
|
2965
|
+
domains:
|
2966
|
+
- image.search.naver.com
|
2967
|
+
- imagesearch.naver.com
|
2968
|
+
|
2831
2969
|
Needtofind:
|
2832
2970
|
parameters:
|
2833
2971
|
- searchfor
|
@@ -2914,7 +3052,7 @@ search:
|
|
2914
3052
|
- www.pricerunner.co.uk
|
2915
3053
|
|
2916
3054
|
qip:
|
2917
|
-
parameters:
|
3055
|
+
parameters:
|
2918
3056
|
- query
|
2919
3057
|
domains:
|
2920
3058
|
- search.qip.ru
|
@@ -2935,7 +3073,7 @@ search:
|
|
2935
3073
|
- websearch.rakuten.co.jp
|
2936
3074
|
|
2937
3075
|
Rambler:
|
2938
|
-
parameters:
|
3076
|
+
parameters:
|
2939
3077
|
- query
|
2940
3078
|
- words
|
2941
3079
|
domains:
|
@@ -2943,8 +3081,7 @@ search:
|
|
2943
3081
|
|
2944
3082
|
RPMFind:
|
2945
3083
|
parameters:
|
2946
|
-
-
|
2947
|
-
- fr2.rpmfind.net
|
3084
|
+
- query
|
2948
3085
|
domains:
|
2949
3086
|
- rpmfind.net
|
2950
3087
|
- fr2.rpmfind.net
|
@@ -3031,6 +3168,12 @@ search:
|
|
3031
3168
|
domains:
|
3032
3169
|
- www.soso.com
|
3033
3170
|
|
3171
|
+
Snapdo:
|
3172
|
+
parameters:
|
3173
|
+
- q
|
3174
|
+
domains:
|
3175
|
+
- search.snapdo.com
|
3176
|
+
|
3034
3177
|
Startpagina:
|
3035
3178
|
parameters:
|
3036
3179
|
- q
|
@@ -3068,7 +3211,7 @@ search:
|
|
3068
3211
|
- www.talktalk.co.uk
|
3069
3212
|
|
3070
3213
|
Technorati:
|
3071
|
-
parameters:
|
3214
|
+
parameters:
|
3072
3215
|
- q
|
3073
3216
|
domains:
|
3074
3217
|
- technorati.com
|
@@ -3179,6 +3322,7 @@ search:
|
|
3179
3322
|
Voila:
|
3180
3323
|
parameters:
|
3181
3324
|
- rdata
|
3325
|
+
- kw
|
3182
3326
|
domains:
|
3183
3327
|
- search.ke.voila.fr
|
3184
3328
|
- www.lemoteur.fr
|
@@ -3199,7 +3343,7 @@ search:
|
|
3199
3343
|
- www.walhello.nl
|
3200
3344
|
|
3201
3345
|
Web.de:
|
3202
|
-
parameters:
|
3346
|
+
parameters:
|
3203
3347
|
- su
|
3204
3348
|
domains:
|
3205
3349
|
- suche.web.de
|
@@ -3353,7 +3497,7 @@ search:
|
|
3353
3497
|
Yasni:
|
3354
3498
|
parameters:
|
3355
3499
|
- query
|
3356
|
-
domains:
|
3500
|
+
domains:
|
3357
3501
|
- www.yasni.de
|
3358
3502
|
- www.yasni.com
|
3359
3503
|
- www.yasni.co.uk
|
@@ -3366,7 +3510,7 @@ search:
|
|
3366
3510
|
domains:
|
3367
3511
|
- www.yatedo.com
|
3368
3512
|
- www.yatedo.fr
|
3369
|
-
|
3513
|
+
|
3370
3514
|
# Add Yellowmap:
|
3371
3515
|
|
3372
3516
|
Yippy:
|
@@ -49,7 +49,7 @@ module RefererParser
|
|
49
49
|
# Initializes a hash of referers
|
50
50
|
# from the supplied YAML file
|
51
51
|
def self.load_referers_from_yaml(yaml_file)
|
52
|
-
|
52
|
+
return if @loaded_file == yaml_file
|
53
53
|
unless File.exist?(yaml_file) and File.file?(yaml_file)
|
54
54
|
raise ReferersYamlNotFoundError, "Could not find referers YAML file at '#{yaml_file}'"
|
55
55
|
end
|
@@ -61,6 +61,7 @@ module RefererParser
|
|
61
61
|
raise CorruptReferersYamlError.new("Could not parse referers YAML file '#{yaml_file}'", error)
|
62
62
|
end
|
63
63
|
@referers = load_referers(yaml)
|
64
|
+
@loaded_file = yaml_file
|
64
65
|
end
|
65
66
|
|
66
67
|
# Validate and expand the `raw_referers`
|