Jump to content

whats my IP address


otuatail

Recommended Posts

I have a small website and using session variables I can create a counter for how many hits I get. I can also create a seperate log giving me dates and times. I think someone is artificialy incrementing this. Can I retreve the IP address and log this as well. I have seen the website whatsmyipaddress.com so it must work.

Desmond.

Link to comment
Share on other sites

If you want to get the vistors ip address trhen you'll this code:
[code]echo $_SERVER['REMOTE_ADDR'];[/code]

Note, some web browsers hides the ursers ip address, so that code above may return false, therefor no IP address was retrieved.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.