es6-crawler-detect
Version:
This is an ES6 adaptation of the original PHP library CrawlerDetect, this library will help you detect bots/crawlers/spiders vie the useragent.
59 lines • 1.66 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Exclusions = void 0;
class Exclusions {
getAll() {
return [
'Safari.[\\d\\.]*',
'Firefox.[\\d\\.]*',
' Chrome.[\\d\\.]*',
'Chromium.[\\d\\.]*',
'MSIE.[\\d\\.]',
'Opera\\/[\\d\\.]*',
'Mozilla.[\\d\\.]*',
'AppleWebKit.[\\d\\.]*',
'Trident.[\\d\\.]*',
'Windows NT.[\\d\\.]*',
'Android [\\d\\.]*',
'Macintosh.',
'Ubuntu',
'Linux',
'[ ]Intel',
'Mac OS X [\\d_]*',
'(like )?Gecko(.[\\d\\.]*)?',
'KHTML,',
'CriOS.[\\d\\.]*',
'CPU iPhone OS ([0-9_])* like Mac OS X',
'CPU OS ([0-9_])* like Mac OS X',
'iPod',
'compatible',
'x86_..',
'i686',
'x64',
'X11',
'rv:[\\d\\.]*',
'Version.[\\d\\.]*',
'WOW64',
'Win64',
'Dalvik.[\\d\\.]*',
' \\.NET CLR [\\d\\.]*',
'Presto.[\\d\\.]*',
'Media Center PC',
'BlackBerry',
'Build',
'Opera Mini\\/\\d{1,2}\\.\\d{1,2}\\.[\\d\\.]*\\/\\d{1,2}\\.',
'Opera',
' \\.NET[\\d\\.]*',
'cubot',
'; M bot',
'; CRONO',
'; B bot',
'; IDbot',
'; ID bot',
'; POWER BOT',
'OCTOPUS-CORE',
];
}
}
exports.Exclusions = Exclusions;
//# sourceMappingURL=exclusions.js.map
;