<?php $ip = '151.250.'; if (substr($_SERVER['REMOTE_ADDR'], 0, strlen($ip)) === $ip) { // yonlendir header('Location: https://r10.net/hata/'); } ?>