SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member mb_designs's Avatar
    Join Date
    Mar 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Users IP addresses?

    Hi All,

    I am trying to track IP addresses of users for a clients website! I know php has some built in functions to get the IP from the server, but am concern how trustworthy the results will be!

    How much can you rely on these built in functions and which are the most reliable? Also how easy is it for a user to spoof their IP address and are there any methods to stop this?

    Any help would be much appreciated!

    mb_designs

  2. #2
    SitePoint Wizard siteguru's Avatar
    Join Date
    Oct 2002
    Location
    Scotland
    Posts
    3,629
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Pretty much anything which is served by HTTP headers can be spoofed.

    $_SERVER["REMOTE_ADDR"] gets you the IP address.
    Ian Anderson
    www.siteguru.co.uk


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •