IP filtering - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: IP filtering (/showthread.php?tid=7873) |
IP filtering - El Forum - 04-25-2008 [eluser]Animas[/eluser] I need to show ads based on country IP range. If I want to show "advertise.png"(in root folder) to usa visitors only how do I write the code? IP filtering - El Forum - 04-25-2008 [eluser]Rokit[/eluser] Code: gethostbyaddr($ip); IP filtering - El Forum - 04-25-2008 [eluser]Animas[/eluser] Hmm. Will give that a try. Thanks. |