I have ips.txt file, there is : 31.146.153.182
ENDFILE-> this was my ip
and I have index.php
<?php
$file ='ips.txt';
$ips = file($file);
$client = $_SERVER['REMOTE_ADDR'];
if ($ips[0]==$client) {
echo "ip is blocked";
} else {
echo "it does not work";
}
?>
And this script does not equaling $ips[0] == $client
, but in echo
it's actually the same.