Log inUsernamePassword
Log me on automatically each visit    
Log in to check your private messages
Log in to check your private messages
CJ Webmaster Forums Forum Index » PHP & MySQL

Ip Addresses
View previous topic :: View next topic  
Author Message
CJ-Design.com Moderator

Joined: 17 Sep 2004
Posts: 232
Location: UK

Posted: Fri Oct 28, 2005 5:47 pm    Post subject: Ip Addresses

My internet connection is run through a proxy server.

I have noticed that most of the scripts which call upon an IP address will capture the Proxy IP address if the user is running through one. If they are not then obviously it will grab their actual IP, but there is always the chance that the person is using a proxy.

If you are confident in programming PHP, you could alter the coding in your scripts to work around this little fix to this..

   if ($_SERVER["HTTP_CLIENT_IP"]) {
   $proxy = $_SERVER["HTTP_CLIENT_IP"];
  } else {
   $proxy = $_SERVER["REMOTE_ADDR"];
} else {
   $ip = $_SERVER["HTTP_CLIENT_IP"];
  } else {
   $ip = $_SERVER["REMOTE_ADDR"];

To see this in action, simply visit http://www.godfatheruk.com/?page=tools&id=ip
CJ Designs Forum Moderator

"I dont think i am good at coding.. But i KNOW im good at helping"
Back to top
CJ-Design.com Moderator

Joined: 09 Mar 2005
Posts: 569
Location: South East Kentucky,U.S.A.

Posted: Thu Nov 03, 2005 12:12 pm    Post subject:

that was a rather large topic i remember reading about on the php.net site.It was between internal IP#'s and proxy#'s.....

did you know that one of the most common security breaches is giving away your internal IP#'s?

a hacker needs your IP# , if you're networked (most homes have 2 or more computers networked now) then the hacker also needs your internal paths , thus your internal IP#'s for each computer behind the network in order for him to begin hacking the computer.

it is a real common error for computer users to reveal the internal IP#'s
C-J Search Engine All Tidied Up V4.0http://www.cj-design.com/forum/viewtopic.php?t=1820

C-J Search Engine MySQL !http://www.cj-design.com/forum/viewtopic.php?t=1555
Back to top
Display posts from previous:   
       CJ Webmaster Forums Forum Index » PHP & MySQL All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional, Mods by CJ Website Design