Is it possible to get the IP address from a requesting box so that you can do content control on a php site??
ie.
if a box is comming from the 14.1.1.x network, then they can get to certain areas but if they come from any other network they can only get to one area on my site??
Finding an IP addx
Moderator: General Moderators
- Saethyr
- Forum Contributor
- Posts: 182
- Joined: Thu Sep 25, 2003 9:21 am
- Location: Wichita, Kansas USA
- Contact:
should be able to use
to get the address they are viewing from, then you can just do a check againts your ranges.
?>
Code: Select all
$_SERVER['REMOTE_ADDR']to get the address they are viewing from, then you can just do a check againts your ranges.
?>
-
magicrobotmonkey
- Forum Regular
- Posts: 888
- Joined: Sun Mar 21, 2004 1:09 pm
- Location: Cambridge, MA
-
magicrobotmonkey
- Forum Regular
- Posts: 888
- Joined: Sun Mar 21, 2004 1:09 pm
- Location: Cambridge, MA