I want to not have my ads appear to me or friends.
I have the ips, but they are dynamic so I want to block ip ranges from my ads.
So far I have
<?php
$ip = $_SERVER['REMOTE_ADDR'];
if ($ip == '12.123' OR $ip =='12.123.' OR $ip == '12.123....*)
{
null;
}else{include ("http://www.aaaaaaaaa.com/ad.html");}
?>
The various attempts at using wild cards above did not work. The only way I have been able to not include the ad is if I type an entire ip.
Any suggestions how to not include ads for 123.123..?