TesoMayn
Boredom, it vexes me.
You could easily use .htaccess to do this, but you can also do it in PHP like this:
Or you could wrap it around a webpage:
PHP:
$allowed = array("1.7.3.5.0"); //Change To Your IP Address (That is 1337 for iTes0 BTW)
$ip = $_SERVER['REMOTE_ADDR'];
if(!in_array($ip, $allowed))
{
header("Location: http://devbest.com");
exit;
}
else
{
print('Your IP is allowed!');
}
Or you could wrap it around a webpage:
PHP:
$allowed = array("1.7.3.5.0"); //Change To Your IP Address (That is 1337 for iTes0 BTW)
$ip = $_SERVER['REMOTE_ADDR'];
if(!in_array($ip, $allowed))
{
header("Location: http://devbest.com");
exit;
}
else
{
HTML:
WEBSITE CONTENT
PHP:
}