<?php
$ip_proxy=$_SERVER["HTTP_X_FORWARDED_FOR"]; 
$tnt=explode(',',$ip_proxy);
$tiny_1=explode('.',$tnt[0]);
$tiny_2=explode('.',$tnt[1]);


$filename="input.txt"; 
$lines = array(); 
$file = fopen($filename, "r"); 

while(!feof($file)) {     //read file line by line into a new array element 
    $lines[] = fgets($file, 4096); 
    }
	$x = count($lines);

 for ($y = 0; $y < $x; $y++) {
 
 if((trim($lines[$y])==$tiny_1[0])||(trim($lines[$y])==$tiny_1[1]))
	{	echo 'Banned';
	}
 else { echo "welcome";   }	
	
  } 	
?>