File inc/util.inc.php changed (mode: 100644) (index 936cef3..a78df36) |
... |
... |
function rg_save($file, $a) |
2827 |
2827 |
*/ |
*/ |
2828 |
2828 |
function rg_is_bot($ua) |
function rg_is_bot($ua) |
2829 |
2829 |
{ |
{ |
2830 |
|
if (empty($ua)) |
|
2831 |
|
return FALSE; |
|
2832 |
|
|
|
2833 |
|
if (strstr($ua, ' SemrushBot')) |
|
2834 |
|
return TRUE; |
|
2835 |
|
|
|
2836 |
|
if (strstr($ua, ' AhrefsBot')) |
|
2837 |
|
return TRUE; |
|
2838 |
|
|
|
2839 |
|
if (strstr($ua, ' DotBot')) |
|
2840 |
|
return TRUE; |
|
2841 |
|
|
|
2842 |
|
if (strstr($ua, ' MJ12bot')) |
|
2843 |
|
return TRUE; |
|
2844 |
|
|
|
2845 |
|
if (strstr($ua, ' PetalBot')) |
|
2846 |
|
return TRUE; |
|
2847 |
|
|
|
2848 |
|
if (strstr($ua, ' Googlebot')) |
|
2849 |
|
return TRUE; |
|
2850 |
|
|
|
2851 |
|
if (strstr($ua, ' bingbot')) |
|
2852 |
|
return TRUE; |
|
2853 |
|
|
|
2854 |
|
if (strstr($ua, ' SeznamBot')) |
|
2855 |
|
return TRUE; |
|
2856 |
|
|
|
2857 |
|
if (strncmp($ua, 'CCBot', 5) == 0) |
|
2858 |
|
return TRUE; |
|
2859 |
|
|
|
2860 |
|
if (strncmp($ua, 'yacybot ', 8) == 0) |
|
2861 |
|
return TRUE; |
|
2862 |
|
|
|
2863 |
|
if (strcmp($ua, 'Internet-structure-research-project-bot') == 0) |
|
2864 |
|
return TRUE; |
|
2865 |
|
|
|
2866 |
|
if (strstr($ua, ' Mail.RU_Bot')) |
|
2867 |
|
return TRUE; |
|
2868 |
|
|
|
2869 |
|
if (strstr($ua, ' coccocbot-web')) |
|
2870 |
|
return TRUE; |
|
2871 |
|
|
|
2872 |
|
if (strstr($ua, ' MojeekBot')) |
|
2873 |
|
return TRUE; |
|
2874 |
|
|
|
2875 |
|
if (strstr($ua, ' DuckDuckGo')) |
|
2876 |
|
return TRUE; |
|
2877 |
|
|
|
2878 |
|
if (strstr($ua, ' YandexBot')) |
|
2879 |
|
return TRUE; |
|
2880 |
|
|
|
2881 |
|
if (strstr($ua, 'Applebot/')) |
|
2882 |
|
return TRUE; |
|
2883 |
|
|
|
2884 |
|
if (strstr($ua, ' DNSResearchBot')) |
|
2885 |
|
return TRUE; |
|
2886 |
|
|
|
2887 |
|
if (strstr($ua, ' Cliqzbot/')) |
|
2888 |
|
return TRUE; |
|
2889 |
|
|
|
2890 |
|
if (strstr($ua, ' webtechbot;')) |
|
2891 |
|
return TRUE; |
|
2892 |
|
|
|
2893 |
|
if (strstr($ua, ' BLEXBot/')) |
|
2894 |
|
return TRUE; |
|
|
2830 |
|
if (empty($ua)) return FALSE; |
|
2831 |
|
if (strstr($ua, ' AhrefsBot')) return TRUE; |
|
2832 |
|
if (strstr($ua, 'Applebot/')) return TRUE; |
|
2833 |
|
if (strcmp($ua, 'AWeb') == 0) return TRUE; |
|
2834 |
|
if (strstr($ua, 'BananaBot/')) return TRUE; |
|
2835 |
|
if (strstr($ua, ' bingbot')) return TRUE; |
|
2836 |
|
if (strstr($ua, ' BLEXBot/')) return TRUE; |
|
2837 |
|
if (strstr($ua, 'CATExplorador')) return TRUE; |
|
2838 |
|
if (strncmp($ua, 'CCBot/', 6) == 0) return TRUE; |
|
2839 |
|
if (strstr($ua, 'CISPA Webcrawler ')) return TRUE; |
|
2840 |
|
if (strstr($ua, ' Cliqzbot/')) return TRUE; |
|
2841 |
|
if (strstr($ua, ' coccocbot-web')) return TRUE; |
|
2842 |
|
if (strstr($ua, 'dcrawl/')) return TRUE; |
|
2843 |
|
if (strstr($ua, ' DNSResearchBot')) return TRUE; |
|
2844 |
|
if (strstr($ua, 'DomainStatsBot/')) return TRUE; |
|
2845 |
|
if (strstr($ua, ' DotBot')) return TRUE; |
|
2846 |
|
if (strstr($ua, ' DuckDuckGo')) return TRUE; |
|
2847 |
|
if (strstr($ua, 'e.ventures Investment Crawler ')) return TRUE; |
|
2848 |
|
if (strstr($ua, 'facebookexternalhit/')) return TRUE; |
|
2849 |
|
if (strstr($ua, 'Facebot')) return TRUE; |
|
2850 |
|
if (strstr($ua, 'GarlikCrawler/')) return TRUE; |
|
2851 |
|
if (strstr($ua, 'Gigabot ')) return TRUE; |
|
2852 |
|
if (strstr($ua, ' Googlebot')) return TRUE; |
|
2853 |
|
if (strcmp($ua, 'googlebot') == 0) return TRUE; |
|
2854 |
|
if (strstr($ua, 'Googlebot-Image/')) return TRUE; |
|
2855 |
|
if (strcmp($ua, 'Googlebot-News') == 0) return TRUE; |
|
2856 |
|
if (strstr($ua, 'Googlebot-Video/')) return TRUE; |
|
2857 |
|
if (strstr($ua, 'GoScraper')) return TRUE; |
|
2858 |
|
if (strstr($ua, 'ichiro/')) return TRUE; |
|
2859 |
|
if (strcmp($ua, 'Internet-structure-research-project-bot') == 0) return TRUE; |
|
2860 |
|
if (strstr($ua, 'Lawinsiderbot/')) return TRUE; |
|
2861 |
|
if (strstr($ua, 'LightspeedSystemsCrawler')) return TRUE; |
|
2862 |
|
if (strstr($ua, 'ltx71 ')) return TRUE; |
|
2863 |
|
if (strstr($ua, ' Mail.RU_Bot')) return TRUE; |
|
2864 |
|
if (strstr($ua, ' MJ12bot')) return TRUE; |
|
2865 |
|
if (strstr($ua, ' MojeekBot')) return TRUE; |
|
2866 |
|
if (strstr($ua, 'msnbot-media/')) return TRUE; |
|
2867 |
|
if (strstr($ua, 'NewsGator FetchLinks extension/')) return TRUE; |
|
2868 |
|
if (strstr($ua, 'PageThing.com')) return TRUE; |
|
2869 |
|
if (strstr($ua, 'Pandalytics')) return TRUE; |
|
2870 |
|
if (strstr($ua, 'panscient.com')) return TRUE; |
|
2871 |
|
if (strstr($ua, ' PetalBot')) return TRUE; |
|
2872 |
|
if (strstr($ua, 'pimeyes.com crawler')) return TRUE; |
|
2873 |
|
if (strstr($ua, 'Robot Terminator ')) return TRUE; |
|
2874 |
|
if (strstr($ua, 'rpmlint/')) return TRUE; |
|
2875 |
|
if (strstr($ua, 'SaaSHub')) return TRUE; |
|
2876 |
|
if (strstr($ua, 'Screaming Frog SEO Spider')) return TRUE; |
|
2877 |
|
if (strcmp($ua, 'SemrushBot') == 0) return TRUE; |
|
2878 |
|
if (strstr($ua, ' SeznamBot')) return TRUE; |
|
2879 |
|
if (strcmp($ua, 'Sidetrade indexer bot') == 0) return TRUE; |
|
2880 |
|
if (strstr($ua, 'Slackbot-LinkExpanding ')) return TRUE; |
|
2881 |
|
if (strstr($ua, 'Sogou web spider')) return TRUE; |
|
2882 |
|
if (strstr($ua, 'TelegramBot ')) return TRUE; |
|
2883 |
|
if (strstr($ua, 'The Knowledge AI')) return TRUE; |
|
2884 |
|
if (strstr($ua, 'TprAdsTxtCrawler')) return TRUE; |
|
2885 |
|
if (strstr($ua, 'TurnitinBot ')) return TRUE; |
|
2886 |
|
if (strstr($ua, 'Twitterbot/')) return TRUE; |
|
2887 |
|
if (strstr($ua, 'Wappalyzer')) return TRUE; |
|
2888 |
|
if (strstr($ua, ' webtechbot;')) return TRUE; |
|
2889 |
|
if (strstr($ua, 'Xenu Link Sleuth/')) return TRUE; |
|
2890 |
|
if (strcmp($ua, 'XYZ Spider') == 0) return TRUE; |
|
2891 |
|
if (strncmp($ua, 'yacybot ', 8) == 0) return TRUE; |
|
2892 |
|
if (strstr($ua, ' YandexBot')) return TRUE; |
|
2893 |
|
if (strcmp($ua, ' YisouSpider') == 0) return TRUE; |
|
2894 |
|
if (strstr($ua, 'ZoomBot ')) return TRUE; |
2895 |
2895 |
|
|
2896 |
2896 |
return FALSE; |
return FALSE; |
2897 |
2897 |
} |
} |