How would I go about having my regular pages, but then have additional information in an empty area that only a specific range or Ip addresses can see. So basically I need to have code that says: Check IP address, if in range, then display content. if not in range then hide or show different content. Thanks
I have this code, but I need to be able to specify and IP Range not individual addresses.
This part of the page is visible to everyone
<br>
<br>
<?php
$allowed_ips = array(
'111.222.333.444',
'555.666.777.888',
'999.111.222.333'
);
if (in_array($_SERVER['REMOTE_ADDR'], $allowed_ips))
{
echo 'this is secret stuff only for certain IPs';
}
?>