Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /* Check robot */ $userAgent = $_SERVER['HTTP_USER_AGENT']; $bot_agents = [ ..

Decoded Output download

<?php 
/* Check robot */ 
$userAgent = $_SERVER['HTTP_USER_AGENT']; 
$bot_agents = [ 
    'Googlebot', 
    'Bingbot', 
    'Slurp', 
    'DuckDuckBot', 
    'Baiduspider', 
    'YandexBot', 
    'Sogou', 
    'Exabot', 
    'Facebot', 
    'ia_archiver', 
    'MJ12bot', 
    'AhrefsBot', 
    'SemrushBot', 
    'Dotbot', 
    'Screaming Frog SEO Spider', 
    'BingPreview', 
    'YandexImages', 
    'Googlebot-Image', 
    'Googlebot-News', 
    'Googlebot-Video', 
    'Googlebot-AdsBot', 
    'Googlebot-Store', 
    'Googlebot-Video', 
    'Googlebot-Image', 
    'Googlebot-AdsBot', 
    'Googlebot-Store', 
    'Googlebot-Video', 
    'Googlebot-Image', 
    'Bingbot', 
    'Googlebot', 
    'Slurp', 
    'BingPreview', 
    'Googlebot-AdsBot', 
    'Googlebot-Store', 
    'Googlebot-Video', 
    'Googlebot-Image', 
    'Mail.Ru', 
    'Feedly', 
    'Teoma', 
    'Yahoo! Slurp', 
    'Twibot', 
    'Wget', 
    'Scrapy', 
    'python-requests', 
    'Python', 
    'curl', 
    'PHP', 
    'bot', 
    'facebookexternalhit', 
    'cococobot', 
    'spinn3r', 
    'sistrix', 
    'wotbox', 
    'Selenium', 
    'HeadlessChrome', 
    'import.io', 
    'pyspider', 
    'phantomjs', 
    'kik', 
    'botscout', 
    'spiderbot', 
    'scrapybot', 
    'WebHarvy', 
    'GeneralCrawler', 
    'updowner', 
    'Scanbot', 
    'gatherbot', 
    'cloudflare', 
    'scrapebot', 
    'Ahrefs', 
    'trickbot', 
    'DuggBot', 
    'uploaderbot', 
    'crawler', 
    'testbot', 
    'chaturbatebot', 
    'webspider', 
    'botmaster', 
    'outbrain', 
    'sweepbot', 
    'ahrefsbots', 
    'datanyze', 
    'loebbot', 
    'super-crawler', 
    'klout', 
    'mercator', 
    'spider', 
    'crawler4j', 
    'megabot', 
    'hashbot', 
    'webmastertools', 
    'semapherobot', 
    'browsershots', 
    'commoncrawl', 
    'cengagebot', 
    'ec2', 
    'rwbot', 
    'pybot', 
    'loadimpact', 
    'zoominfo', 
    'enom', 
    'metabot', 
    'webspider', 
    'alertbot', 
    'postman', 
    'pinterestbot', 
    'ghostery', 
    'js-bot', 
    'gtmetrix', 
    'databreachbot', 
    'botometer', 
    'zyro', 
    'fancbot', 
    'pingdom', 
    'robotlink', 
    'bunjalloo', 
    'dotorgbot', 
    'bancbot', 
    'openlinkprofiler', 
    'seznambot', 
    'megabot', 
    'bing-preview', 
    'callcenterbot', 
    'serpstatbot', 
    'botster', 
    'nutch', 
    'addthis', 
    'huggingface', 
    'searchmetricsbot', 
    'smex', 
    'linksleuth', 
    'pagebot', 
    'dorkbot', 
    'feedfetcher', 
    'spambot', 
    'seoscanner', 
    'rankbot', 
    'headlesschrome', 
    'seobots', 
    'extractor', 
    'optimizely', 
    'turingbot', 
    'bopbot', 
    'backlinkchecker', 
    'fetcher', 
    'checkbot', 
    'newspider', 
    'brave', 
    'serpapi', 
    'netshelldev', 
    'telescopebot', 
    'waybackbot', 
    'inbot', 
    'parserbot', 
    'crawlera', 
    'geobot', 
    'yeti', 
    'hubspot', 
    'bypassbot', 
    'bot-crawler', 
    'sohu', 
    'scrapinghub', 
    'zerobot', 
    'cloudflarebot', 
    'finderbot', 
    'ghostbot', 
    'yandex-cron', 
    'clickbot', 
    'bouncbot', 
    'matthewsbot', 
    'nimbot', 
    'parsebot', 
    'importio', 
    'sitemapgenerator', 
    'speedtest', 
    'jsbot', 
    'headlessbot', 
    'funnelbot', 
    'hermitbot', 
    'blackhatbot', 
    'seonizer', 
    'zybot', 
    'scanbot', 
    'searchbot', 
    'connotator', 
    'kikbot', 
    'patbot', 
    'soulseekbot', 
    'snowbot', 
    'gocrawler', 
    'harvester', 
    'upbot', 
    'webhook', 
    'speedtestbot', 
    'seomoz', 
    'furlbot', 
    'scraperbot', 
    'extractorbots', 
    'spoutbot', 
    'hackedbot', 
    'seocrawler', 
    'csearch', 
    'testbot', 
    'exabot', 
    'httrackbot', 
    'mabroukbot', 
    'lilithbot', 
    'teambot', 
    'honeybot', 
    'elasticsearchbot', 
    'Googlebot/2.1 (+http://www.google.com/bot.html)', 
    'Googlebot-Image/1.0', 
    'Googlebot-Video/1.0', 
    'Googlebot-News/2.1', 
    'Googlebot-AdsBot/2.1', 
    'Googlebot-Mobile/2.1', 
    'Googlebot-Store/2.1', 
    'Googlebot-Apps/2.1', 
    'Googlebot-Image/2.1 (+http://www.google.com/bot.html)', 
    'Googlebot-Video/2.1 (+http://www.google.com/bot.html)', 
    'Bingbot/2.0 (+http://www.bing.com/bingbot.htm)', 
    'Twitterbot/1.0 (+https://dev.twitter.com/docs/cards)', 
    'FacebookExternalHit/1.1 (+http://www.facebook.com/externalhit_uatext.php)', 
    'Slackbot/1.0 (+https://api.slack.com/robots)', 
    'SitemapGeneratorBot/2.0 (http://www.sitemapwriter.com)', 
    'Wget/1.20.3 (linux-gnu)', 
    'Python-urllib/3.8', 
    'curl/7.68.0', 
    'PHP/7.3.11', 
    'bot/1.0', 
    'crawlbot', 
    'botmaster', 
    'spinn3r', 
    'hermit', 
    'wgetbot', 
    'scrapebot', 
    'checkbot', 
    'scrapybot', 
    'linkbot', 
    'crawler4j', 
    'httrack', 
    'facebookexternalhit', 
    'botlink', 
    'bunnymatic', 
    'seomoz', 
    'semalt', 
    'botengine', 
    'uptimebot', 
    'crawlmonster', 
    'bot-tracker', 
    'akismet', 
    'connotatorbot', 
    'genericbot', 
    'mon.itor', 
    'Bingbot/3.0 (+http://www.bing.com/bingbot.htm)', 
    'Googlebot-Image/1.1', 
    'Googlebot-Video/1.1', 
    'Baiduspider/3.0 (+http://www.baidu.com/search/spider.html)', 
    'YandexBot/4.0 (https://yandex.com/bots)', 
    'Sogou Spider/5.0 (+http://www.sogou.com/docs/help/webmaster.htm#07)', 
    'Exabot/4.0 (+http://www.exabot.com/go/robot)', 
    'Facebot/2.0 (+http://www.facebook.com/externalhit_uatext.php)', 
    'ia_archiver/3.0 (+http://www.alexa.com/site/help/webmasters; [email protected])', 
    'MJ12bot/2.0 (+http://mj12bot.com/)', 
    'AhrefsBot/8.0 (https://ahrefs.com/robot/)', 
    'SemrushBot/2.0 (https://www.semrush.com/bot/)', 
    'Dotbot/2.0 (+http://www.opensiteexplorer.org/dotbot)', 
    'Screaming Frog SEO Spider/16.0 (+https://www.screamingfrog.co.uk/seo-spider/', 
    'Googlebot/2.1 (+http://www.google.com/bot.html)', 
    'Googlebot-Image/1.0', 
    'Googlebot-Video/1.0', 
    'Googlebot-News/2.1', 
    'Googlebot-AdsBot/2.1', 
    'Googlebot-Mobile/2.1', 
    'Googlebot-Store/2.1', 
    'Googlebot-Apps/2.1', 
    'Googlebot-Image/2.1 (+http://www.google.com/bot.html)', 
    'Googlebot-Video/2.1 (+http://www.google.com/bot.html)', 
    'Googlebot-Mobile/2.1 (+http://www.google.com/bot.html)', 
    'Bingbot/2.0 (+http://www.bing.com/bingbot.htm)', 
    'Bingbot/2.0 (+http://www.bing.com/bingbot.htm)', 
    'Bingbot/2.0 (+http://www.bing.com/bingbot.htm)', 
    'Slurp/3.0 (http://help.yahoo.com/help/us/ysearch/crawling)', 
    'YandexBot/3.0 (https://yandex.com/bots)', 
    'DuckDuckBot/1.0; (+https://duckduckgo.com/duckduckbot.html)', 
    'Baiduspider/2.0 (+http://www.baidu.com/search/spider.html)', 
    'Sogou Spider/4.0 (+http://www.sogou.com/docs/help/webmaster.htm#07)', 
    'Exabot/3.0 (+http://www.exabot.com/go/robot)', 
    'Facebot/1.0 (+http://www.facebook.com/externalhit_uatext.php)', 
    'ia_archiver/2.0 (+http://www.alexa.com/site/help/webmasters; [email protected])', 
    'MJ12bot/1.4.8 (+http://mj12bot.com/)', 
    'AhrefsBot/7.2.0 (https://ahrefs.com/robot/)', 
    'SemrushBot/1.0 (https://www.semrush.com/bot/)', 
    'Dotbot/1.0 (+http://www.opensiteexplorer.org/dotbot)', 
    'Screaming Frog SEO Spider/15.0 (+https://www.screamingfrog.co.uk/seo-spider/)', 
    'BingPreview/1.0', 
    'YandexImages/3.0 (https://yandex.com/bots)', 
    'Googlebot-Image/2.1 (+http://www.google.com/bot.html)', 
    'Googlebot-News/2.1 (+http://www.google.com/bot.html)', 
    'Googlebot-Video/2.1 (+http://www.google.com/bot.html)', 
    'Googlebot-AdsBot/2.1 (+http://www.google.com/bot.html)', 
    'Googlebot-Store/2.1 (+http://www.google.com/bot.html)', 
    'Googlebot-Mobile/2.1 (+http://www.google.com/bot.html)', 
    'Bingbot/2.0 (+http://www.bing.com/bingbot.htm)', 
    'Twitterbot/1.0 (+https://dev.twitter.com/docs/cards)', 
    'FacebookExternalHit/1.1 (+http://www.facebook.com/externalhit_uatext.php)', 
    'Slackbot/1.0 (+https://api.slack.com/robots)', 
    'SitemapGeneratorBot/2.0 (http://www.sitemapwriter.com)', 
    'Wget/1.20.3 (linux-gnu)', 
    'Python-urllib/3.8', 
    'curl/7.68.0', 
    'PHP/7.3.11', 
    'bot/1.0', 
    'facebot', 
    'slurp', 
    'crawlbot', 
    'botmaster', 
    'spinn3r', 
    'hermit', 
    'wgetbot', 
    'scrapebot', 
    'checkbot', 
    'scrapybot', 
    'linkbot', 
    'crawler4j', 
    'httrack', 
    'facebookexternalhit', 
    'botlink', 
    'bunnymatic', 
    'seomoz', 
    'semalt', 
    'botengine', 
    'uptimebot', 
    'crawlmonster', 
    'bot-tracker', 
    'dotorgbot', 
    'crawlera', 
    'akismet', 
    'connotatorbot', 
    'genericbot', 
    'mon.itor' 
]; 
 
function checkBotUserAgent($userAgent) 
{ 
    global $bot_agents; 
    foreach ($bot_agents as $bot) { 
        if (strpos(strtolower($userAgent), strtolower($bot)) !== false) { 
            return true; 
        } 
    } 
    return false; 
} 
 
 
 
if (checkBotUserAgent($userAgent)) { 
 
    header("Location: Panel_admin/pages/404.php"); 
    exit(); 
} else { 
} 
 ?>

Did this file decode correctly?

Original Code

<?php
/* Check robot */
$userAgent = $_SERVER['HTTP_USER_AGENT'];
$bot_agents = [
    'Googlebot',
    'Bingbot',
    'Slurp',
    'DuckDuckBot',
    'Baiduspider',
    'YandexBot',
    'Sogou',
    'Exabot',
    'Facebot',
    'ia_archiver',
    'MJ12bot',
    'AhrefsBot',
    'SemrushBot',
    'Dotbot',
    'Screaming Frog SEO Spider',
    'BingPreview',
    'YandexImages',
    'Googlebot-Image',
    'Googlebot-News',
    'Googlebot-Video',
    'Googlebot-AdsBot',
    'Googlebot-Store',
    'Googlebot-Video',
    'Googlebot-Image',
    'Googlebot-AdsBot',
    'Googlebot-Store',
    'Googlebot-Video',
    'Googlebot-Image',
    'Bingbot',
    'Googlebot',
    'Slurp',
    'BingPreview',
    'Googlebot-AdsBot',
    'Googlebot-Store',
    'Googlebot-Video',
    'Googlebot-Image',
    'Mail.Ru',
    'Feedly',
    'Teoma',
    'Yahoo! Slurp',
    'Twibot',
    'Wget',
    'Scrapy',
    'python-requests',
    'Python',
    'curl',
    'PHP',
    'bot',
    'facebookexternalhit',
    'cococobot',
    'spinn3r',
    'sistrix',
    'wotbox',
    'Selenium',
    'HeadlessChrome',
    'import.io',
    'pyspider',
    'phantomjs',
    'kik',
    'botscout',
    'spiderbot',
    'scrapybot',
    'WebHarvy',
    'GeneralCrawler',
    'updowner',
    'Scanbot',
    'gatherbot',
    'cloudflare',
    'scrapebot',
    'Ahrefs',
    'trickbot',
    'DuggBot',
    'uploaderbot',
    'crawler',
    'testbot',
    'chaturbatebot',
    'webspider',
    'botmaster',
    'outbrain',
    'sweepbot',
    'ahrefsbots',
    'datanyze',
    'loebbot',
    'super-crawler',
    'klout',
    'mercator',
    'spider',
    'crawler4j',
    'megabot',
    'hashbot',
    'webmastertools',
    'semapherobot',
    'browsershots',
    'commoncrawl',
    'cengagebot',
    'ec2',
    'rwbot',
    'pybot',
    'loadimpact',
    'zoominfo',
    'enom',
    'metabot',
    'webspider',
    'alertbot',
    'postman',
    'pinterestbot',
    'ghostery',
    'js-bot',
    'gtmetrix',
    'databreachbot',
    'botometer',
    'zyro',
    'fancbot',
    'pingdom',
    'robotlink',
    'bunjalloo',
    'dotorgbot',
    'bancbot',
    'openlinkprofiler',
    'seznambot',
    'megabot',
    'bing-preview',
    'callcenterbot',
    'serpstatbot',
    'botster',
    'nutch',
    'addthis',
    'huggingface',
    'searchmetricsbot',
    'smex',
    'linksleuth',
    'pagebot',
    'dorkbot',
    'feedfetcher',
    'spambot',
    'seoscanner',
    'rankbot',
    'headlesschrome',
    'seobots',
    'extractor',
    'optimizely',
    'turingbot',
    'bopbot',
    'backlinkchecker',
    'fetcher',
    'checkbot',
    'newspider',
    'brave',
    'serpapi',
    'netshelldev',
    'telescopebot',
    'waybackbot',
    'inbot',
    'parserbot',
    'crawlera',
    'geobot',
    'yeti',
    'hubspot',
    'bypassbot',
    'bot-crawler',
    'sohu',
    'scrapinghub',
    'zerobot',
    'cloudflarebot',
    'finderbot',
    'ghostbot',
    'yandex-cron',
    'clickbot',
    'bouncbot',
    'matthewsbot',
    'nimbot',
    'parsebot',
    'importio',
    'sitemapgenerator',
    'speedtest',
    'jsbot',
    'headlessbot',
    'funnelbot',
    'hermitbot',
    'blackhatbot',
    'seonizer',
    'zybot',
    'scanbot',
    'searchbot',
    'connotator',
    'kikbot',
    'patbot',
    'soulseekbot',
    'snowbot',
    'gocrawler',
    'harvester',
    'upbot',
    'webhook',
    'speedtestbot',
    'seomoz',
    'furlbot',
    'scraperbot',
    'extractorbots',
    'spoutbot',
    'hackedbot',
    'seocrawler',
    'csearch',
    'testbot',
    'exabot',
    'httrackbot',
    'mabroukbot',
    'lilithbot',
    'teambot',
    'honeybot',
    'elasticsearchbot',
    'Googlebot/2.1 (+http://www.google.com/bot.html)',
    'Googlebot-Image/1.0',
    'Googlebot-Video/1.0',
    'Googlebot-News/2.1',
    'Googlebot-AdsBot/2.1',
    'Googlebot-Mobile/2.1',
    'Googlebot-Store/2.1',
    'Googlebot-Apps/2.1',
    'Googlebot-Image/2.1 (+http://www.google.com/bot.html)',
    'Googlebot-Video/2.1 (+http://www.google.com/bot.html)',
    'Bingbot/2.0 (+http://www.bing.com/bingbot.htm)',
    'Twitterbot/1.0 (+https://dev.twitter.com/docs/cards)',
    'FacebookExternalHit/1.1 (+http://www.facebook.com/externalhit_uatext.php)',
    'Slackbot/1.0 (+https://api.slack.com/robots)',
    'SitemapGeneratorBot/2.0 (http://www.sitemapwriter.com)',
    'Wget/1.20.3 (linux-gnu)',
    'Python-urllib/3.8',
    'curl/7.68.0',
    'PHP/7.3.11',
    'bot/1.0',
    'crawlbot',
    'botmaster',
    'spinn3r',
    'hermit',
    'wgetbot',
    'scrapebot',
    'checkbot',
    'scrapybot',
    'linkbot',
    'crawler4j',
    'httrack',
    'facebookexternalhit',
    'botlink',
    'bunnymatic',
    'seomoz',
    'semalt',
    'botengine',
    'uptimebot',
    'crawlmonster',
    'bot-tracker',
    'akismet',
    'connotatorbot',
    'genericbot',
    'mon.itor',
    'Bingbot/3.0 (+http://www.bing.com/bingbot.htm)',
    'Googlebot-Image/1.1',
    'Googlebot-Video/1.1',
    'Baiduspider/3.0 (+http://www.baidu.com/search/spider.html)',
    'YandexBot/4.0 (https://yandex.com/bots)',
    'Sogou Spider/5.0 (+http://www.sogou.com/docs/help/webmaster.htm#07)',
    'Exabot/4.0 (+http://www.exabot.com/go/robot)',
    'Facebot/2.0 (+http://www.facebook.com/externalhit_uatext.php)',
    'ia_archiver/3.0 (+http://www.alexa.com/site/help/webmasters; [email protected])',
    'MJ12bot/2.0 (+http://mj12bot.com/)',
    'AhrefsBot/8.0 (https://ahrefs.com/robot/)',
    'SemrushBot/2.0 (https://www.semrush.com/bot/)',
    'Dotbot/2.0 (+http://www.opensiteexplorer.org/dotbot)',
    'Screaming Frog SEO Spider/16.0 (+https://www.screamingfrog.co.uk/seo-spider/',
    'Googlebot/2.1 (+http://www.google.com/bot.html)',
    'Googlebot-Image/1.0',
    'Googlebot-Video/1.0',
    'Googlebot-News/2.1',
    'Googlebot-AdsBot/2.1',
    'Googlebot-Mobile/2.1',
    'Googlebot-Store/2.1',
    'Googlebot-Apps/2.1',
    'Googlebot-Image/2.1 (+http://www.google.com/bot.html)',
    'Googlebot-Video/2.1 (+http://www.google.com/bot.html)',
    'Googlebot-Mobile/2.1 (+http://www.google.com/bot.html)',
    'Bingbot/2.0 (+http://www.bing.com/bingbot.htm)',
    'Bingbot/2.0 (+http://www.bing.com/bingbot.htm)',
    'Bingbot/2.0 (+http://www.bing.com/bingbot.htm)',
    'Slurp/3.0 (http://help.yahoo.com/help/us/ysearch/crawling)',
    'YandexBot/3.0 (https://yandex.com/bots)',
    'DuckDuckBot/1.0; (+https://duckduckgo.com/duckduckbot.html)',
    'Baiduspider/2.0 (+http://www.baidu.com/search/spider.html)',
    'Sogou Spider/4.0 (+http://www.sogou.com/docs/help/webmaster.htm#07)',
    'Exabot/3.0 (+http://www.exabot.com/go/robot)',
    'Facebot/1.0 (+http://www.facebook.com/externalhit_uatext.php)',
    'ia_archiver/2.0 (+http://www.alexa.com/site/help/webmasters; [email protected])',
    'MJ12bot/1.4.8 (+http://mj12bot.com/)',
    'AhrefsBot/7.2.0 (https://ahrefs.com/robot/)',
    'SemrushBot/1.0 (https://www.semrush.com/bot/)',
    'Dotbot/1.0 (+http://www.opensiteexplorer.org/dotbot)',
    'Screaming Frog SEO Spider/15.0 (+https://www.screamingfrog.co.uk/seo-spider/)',
    'BingPreview/1.0',
    'YandexImages/3.0 (https://yandex.com/bots)',
    'Googlebot-Image/2.1 (+http://www.google.com/bot.html)',
    'Googlebot-News/2.1 (+http://www.google.com/bot.html)',
    'Googlebot-Video/2.1 (+http://www.google.com/bot.html)',
    'Googlebot-AdsBot/2.1 (+http://www.google.com/bot.html)',
    'Googlebot-Store/2.1 (+http://www.google.com/bot.html)',
    'Googlebot-Mobile/2.1 (+http://www.google.com/bot.html)',
    'Bingbot/2.0 (+http://www.bing.com/bingbot.htm)',
    'Twitterbot/1.0 (+https://dev.twitter.com/docs/cards)',
    'FacebookExternalHit/1.1 (+http://www.facebook.com/externalhit_uatext.php)',
    'Slackbot/1.0 (+https://api.slack.com/robots)',
    'SitemapGeneratorBot/2.0 (http://www.sitemapwriter.com)',
    'Wget/1.20.3 (linux-gnu)',
    'Python-urllib/3.8',
    'curl/7.68.0',
    'PHP/7.3.11',
    'bot/1.0',
    'facebot',
    'slurp',
    'crawlbot',
    'botmaster',
    'spinn3r',
    'hermit',
    'wgetbot',
    'scrapebot',
    'checkbot',
    'scrapybot',
    'linkbot',
    'crawler4j',
    'httrack',
    'facebookexternalhit',
    'botlink',
    'bunnymatic',
    'seomoz',
    'semalt',
    'botengine',
    'uptimebot',
    'crawlmonster',
    'bot-tracker',
    'dotorgbot',
    'crawlera',
    'akismet',
    'connotatorbot',
    'genericbot',
    'mon.itor'
];

function checkBotUserAgent($userAgent)
{
    global $bot_agents;
    foreach ($bot_agents as $bot) {
        if (strpos(strtolower($userAgent), strtolower($bot)) !== false) {
            return true;
        }
    }
    return false;
}



if (checkBotUserAgent($userAgent)) {

    header("Location: Panel_admin/pages/404.php");
    exit();
} else {
}

Function Calls

None

Variables

None

Stats

MD5 45659a5150148b3b6c0178bd85be6246
Eval Count 0
Decode Time 64 ms