[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
1 <?php 2 /** 3 * This is b2evolution's stats config file. 4 * 5 * @deprecated TODO: It holds now just things that should be move around due to hitlog refactoring. 6 * 7 * This file sets how b2evolution will log hits and stats 8 * Last significant changes to this file: version 1.6 9 * 10 * @package conf 11 */ 12 if( !defined('EVO_CONFIG_LOADED') ) die( 'Please, do not access this page directly.' ); 13 14 15 /** 16 * Self referers that should not be considered as "real" referers in stats. 17 * This should typically include this site and maybe other subdomains of this site. 18 * 19 * The following substrings will be looked up in the referer http header 20 * in order to identify referers to hide in the logs 21 * 22 * WARNING: you should *NOT* use a slash at the end of simple domain names, as 23 * older Netscape browsers will not send these. For example you should list 24 * http://www.example.com instead of http://www.example.com/ . 25 * 26 * @todo move to admin interface (T_basedomains list editor), but use for upgrading 27 * 28 * TODO: handle multiple blog roots. 29 * 30 * @global array 31 */ 32 $self_referer_list = array( 33 '://'.$basehost, // This line will match all pages from the host of your $baseurl 34 '://www.'.$basehost, // This line will also match www.you_base_host in case you have no www. on your basehost 35 'http://localhost', 36 'http://127.0.0.1', 37 ); 38 39 40 /** 41 * Blacklist: referrers that should not be considered as "real" referers in stats. 42 * This should typically include stat services, online email services, online aggregators, etc. 43 * 44 * The following substrings will be looked up in the referer http header 45 * in order to identify referers to hide in the logs 46 * 47 * THIS IS NOT FOR SPAM! Use the Antispam features in the admin section to control spam! 48 * 49 * WARNING: you should *NOT* use a slash at the end of simple domain names, as 50 * older Netscape browsers will not send these. For example you should list 51 * http://www.example.com instead of http://www.example.com/ . 52 * 53 * @todo move to admin interface (T_basedomains list editor), but use for upgrading 54 * 55 * @global array 56 */ 57 $blackList = array( 58 // webmails 59 '.mail.yahoo.com/', 60 // stat services 61 'sitemeter.com/', 62 // aggregators 63 'bloglines.com/', 64 // caches 65 '/search?q=cache:', // Google cache 66 // redirectors 67 'googlealert.com/', 68 // add your own... 69 ); 70 71 72 73 /** 74 * Search engines for statistics 75 * 76 * The following substrings will be looked up in the referer http header 77 * in order to identify search engines 78 * 79 * @todo move to admin interface (specific list editor), include query params 80 * 81 * @global array $search_engines 82 */ 83 $search_engines = array( 84 'google.', 85 '.hotbot.', 86 '.altavista.', 87 '.excite.', 88 '.voila.fr/', 89 'http://search', 90 '://suche.', 91 'search.', 92 'search2.', 93 'http://recherche', 94 'recherche.', 95 'recherches.', 96 'vachercher.', 97 'feedster.com/', 98 'alltheweb.com/', 99 'daypop.com/', 100 'feedster.com/', 101 'technorati.com/', 102 'weblogs.com/', 103 'exalead.com/', 104 'killou.com/', 105 'buscador.terra.es', 106 'web.toile.com', 107 'metacrawler.com/', 108 '.mamma.com/', 109 '.dogpile.com/', 110 'search1-1.free.fr', 111 'search1-2.free.fr', 112 'overture.com', 113 'startium.com', 114 '2020search.com', 115 'bestsearchonearth.info', 116 'mysearch.com', 117 'popdex.com', 118 '64.233.167.104', 119 'seek.3721.com', 120 'http://netscape.', 121 'http://www.netscape.', 122 '/searchresults/', 123 '/websearch?', 124 'http://results.', 125 'baidu.com/', 126 'reacteur.com/', 127 'http://www.lmi.fr/', 128 'kartoo.com/', 129 'icq.com/search', 130 ); 131 132 133 /** 134 * UserAgent identifiers for logging/statistics 135 * 136 * The following substrings will be looked up in the user_agent http header 137 * 138 * @todo move to admin interface (T_useragents list editor) 139 * 140 * 'type' aggregator currently gets only used to "translate" user agent strings. 141 * An aggregator hit gets detected by accessing the feed. 142 * 143 * @global array $user_agents 144 */ 145 $user_agents = array( 146 // Robots: 147 array('robot', 'Googlebot/', 'Google (Googlebot)' ), 148 array('robot', 'Slurp/', 'Inktomi (Slurp)' ), 149 array('robot', 'Yahoo! Slurp;', 'Yahoo (Slurp)' ), 150 array('robot', 'msnbot/', 'MSN Search (msnbot)' ), 151 array('robot', 'Frontier/', 'Userland (Frontier)' ), 152 array('robot', 'ping.blo.gs/', 'blo.gs' ), 153 array('robot', 'organica/', 'Organica' ), 154 array('robot', 'Blogosphere/', 'Blogosphere' ), 155 array('robot', 'blogging ecosystem crawler', 'Blogging ecosystem'), 156 array('robot', 'FAST-WebCrawler/', 'Fast' ), // http://fast.no/support/crawler.asp 157 array('robot', 'timboBot/', 'Breaking Blogs (timboBot)' ), 158 array('robot', 'NITLE Blog Spider/', 'NITLE' ), 159 array('robot', 'The World as a Blog ', 'The World as a Blog' ), 160 array('robot', 'daypopbot/ ', 'DayPop' ), 161 array('robot', 'Bitacle bot/', 'Bitacle' ), 162 array('robot', 'Sphere Scout', 'Sphere Scout' ), 163 array('robot', 'Gigabot/', 'Gigablast (Gigabot)' ), 164 // Unknown robots: 165 array('robot', 'psycheclone', 'Psycheclone' ), 166 // Aggregators: 167 array('aggregator', 'AppleSyndication/', 'Safari RSS (AppleSyndication)' ), 168 array('aggregator', 'Feedreader', 'Feedreader' ), 169 array('aggregator', 'Syndirella/', 'Syndirella' ), 170 array('aggregator', 'rssSearch Harvester/', 'rssSearch Harvester' ), 171 array('aggregator', 'Newz Crawler', 'Newz Crawler' ), 172 array('aggregator', 'MagpieRSS/', 'Magpie RSS' ), 173 array('aggregator', 'CoologFeedSpider', 'CoologFeedSpider' ), 174 array('aggregator', 'Pompos/', 'Pompos' ), 175 array('aggregator', 'SharpReader/', 'SharpReader'), 176 array('aggregator', 'Straw ', 'Straw'), 177 ); 178 179 180 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |