How to record the ip addresses of visitors in own website?

Please guide me how to record all the ip addresses of visitors on my w

Page 1 of 1

1 Replies - 3779 Views - Last Post: 21 February 2009 - 05:11 AM Rate Topic: -----

#1 corrossive  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 21-February 09

How to record the ip addresses of visitors in own website?

Post icon  Posted 21 February 2009 - 05:09 AM

Please guide me how to record the ip addresses of each and every visitor entering my website. I do not have the facility of automatic recording in my web server. how to detect whether a certain ip address is a proxy or real please guide me
Is This A Good Question/Topic? 0
  • +

Replies To: How to record the ip addresses of visitors in own website?

#2 chili5  Icon User is offline

  • D.I.C Lover

Reputation: 20
  • View blog
  • Posts: 1,144
  • Joined: 28-December 07

Re: How to record the ip addresses of visitors in own website?

Posted 21 February 2009 - 05:11 AM

With PHP you can access the IP using the constant: $_SERVER['REMOTE_ADDR'] then you can store that in your database. :)

echo $_SERVER['REMOTE_ADDR'];



:)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1