The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Problems with IP addresses
CodeKing
post Dec 2 2007, 08:46 PM
Post #1


Advanced Member
****

Group: Members
Posts: 175
Joined: 12-September 06
Member No.: 118



I made a simple PHP app for me and my friends, and since I don't want to do the whole login thing, I'm just using IP address to secure the page, so I did this script:

CODE

$ip=$_SERVER['REMOTE_ADDR'];
if ($ip=="my_ip" || $ip=="friends_ip") {
  echo $ip;
  exit;
}


Unfortunately, it always gives me my IP address and not display the app. Why isn't this working?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CodeKing
post Dec 2 2007, 09:16 PM
Post #2


Advanced Member
****

Group: Members
Posts: 175
Joined: 12-September 06
Member No.: 118



nevermind

fixed it
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 03:41 PM