Advertisement
Mac_Dhuhri

HTTP-StatusCode Mass Checker (WebBased V.1)

Nov 4th, 2018
782
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.42 KB | None | 0 0
  1. <head>
  2. <title>HTTP-StatusCode Mass Checker</title>
  3. <style type="text/css">
  4. body {
  5. color:#6300ff;
  6. background:#111111;
  7. font-family:'Fixedsys';
  8. margin:9px;
  9. padding:9px;
  10.  }
  11.  
  12. textarea {
  13.     color:#13e500;
  14.     background:transparent;
  15.     border-color:#a300ff;
  16.     padding:5px;
  17.     }
  18.  
  19. input {
  20.         color:#13e500;
  21.         background:#b00000;
  22.         margin-top:10px;
  23.         font-size:20px;
  24.         border:2px solid #a300ff;
  25.         font-family:Terminal;
  26.         width:70%;
  27.         }
  28. </style>
  29. </head>
  30. <center>
  31. <h1>HTTP-StatusCode Mass Checker</h1>
  32. <form action='' method='POST'>
  33. <textarea name='targed' placeholder="http://youListDomain.com/" style="width:60%;height:350px;"></textarea><br>
  34. <center><input type='submit' name='gay' value='Check'></center>
  35. </form>
  36. <h0>~ Html404&copy;Res7ock-Crew ~</h0>
  37. </center>
  38.  
  39. <!-- Want to recoded? !!Try to include copyright!! By Html404&copy;Res7ock-Crew --!>
  40. <?php
  41.  
  42. $url = explode("\r\n",$_POST['targed']);
  43.  
  44. function cek($url){
  45. $ch=curl_init();
  46. curl_setopt ($ch, CURLOPT_URL,$url );
  47. curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  48. curl_setopt($ch, CURLOPT_TIMEOUT, 5);
  49. $page=curl_exec($ch);
  50. $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  51. curl_close($ch);
  52.        
  53. if($httpcode>=200 && $httpcode<300) return true;
  54. else return false;
  55. }
  56. if($_POST['gay']){
  57. foreach($url as $url1){
  58. if(cek($url1)){
  59. echo "• $url1 <font color='green'>OK</font><br>";
  60. } else {
  61. echo "• $url1 <font color='red'>DEAD</font><br>";
  62. }
  63. }
  64. }
  65. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement