What is wrong with my Php Code?
Posted: Sun Aug 16, 2009 10:43 am
I am trying to add three ip addresses so that if the ip's do not match the one i've entered, they will not see my webpage:
using this, it does not work but using only one ip like below, it works. So how can i make it work on three or more ip's?
Thanks
Code: Select all
<?php
// only local requests
if ($_SERVER['REMOTE_ADDR'] !== '99.54.88.685' '55.65.98.006' '64.99.78.136') die(header("Location: /"));
?>
Code: Select all
<?php
// only local requests
if ($_SERVER['REMOTE_ADDR'] !== '99.54.88.685') die(header("Location: /"));
?>