<?php $ip = $_SERVER['REMOTE_ADDR']; $bips = array('192.168.1.1','10.0.0.1'); if (in_array($ip, $bips)) { header('Location: http://google.com'); } ?>
Might want to put die(); after the header call. Otherwise the rest of the page can still render and the user receives the content.
Might want to put die(); after the header call. Otherwise the rest of the page can still render and the user receives the content.