Click to See Complete Forum and Search --> : Storing Ip's


saterial
11-23-2003, 10:47 PM
Does anyone know how to make a script that can:
A) If user clicks on link then it stores there ip in a list.
B) Multiple access webpage using Username/Pass that Owner creates

chadypu
11-23-2003, 10:53 PM
well you would need a db to do that

does your server have mySQL?

saterial
11-23-2003, 11:39 PM
Yes I do have a database with my server.

Sux0rZh@jc0rz
11-24-2003, 06:57 AM
Originally posted by chadypu
well you would need a db to do that

does your server have mySQL?

not really.. you could make a .txt file and chmod the access on it and run a script that tells it to right to the bottom of the file...

EDIT: yeah.. SQL is better to use though, as it is more secure. :D

saterial
11-24-2003, 07:23 PM
So there isnt a way to store there ips if the click something?

I wanna be able to offer it to people who come to my website and go to a certain page and if they do I have their ip and they contact me with their ip I check if its on the list and if it is I will give them access to my private ftp.

DaiWelsh
11-25-2003, 05:19 AM
Yes, you can get the ip address in a PHP script with

$_SERVER['REMOTE_ADDR']

but I am not sure exactly how you want to use it, so I can't advise further. If you want them to tell you it via an email then you can either display it on screen for tehm to write into an email or just use a php script to send the request email and automatically tack the Ip on the end of the email.

Be aware however that some users will be shown with a proxy Ip address (one belonging to a machine at their ISP) and this may not be the same IP address that appears later when they try to ftp. For example my main ISP uses a web proxy which I cannot opt out of, so whenever I go to a website I appear to have one IP address (which is common to all users of that ISP in my area) but when I ftp or use any other net service I use my actual IP address which is different. This can be a problem for firewalls and wcould be a problem for you in this scenario.

Unfortunately Ip addressis not as reliable an identifier of an individual web user as ou might like/think.

Dice
03-14-2005, 05:39 AM
Is it legal to post user IP's without their consent?

96turnerri
03-14-2005, 06:11 AM
Originally posted by Dice
Is it legal to post user IP's without their consent?
define post

Dice
03-14-2005, 06:41 AM
http://littlegreenfootballs.com/weblog/?entry=7014

If they can do this, can I do this on my forum?

DaiWelsh
03-14-2005, 08:26 AM
I am not a lawyer, but as far as I am concerned Ip address is public domain and in no way confidential, so I would say yes. I suppose if it was an IP address they owned (rather than an auto-assinged ISP address as most people have) they could argue that it constituted personal data and so was covered by the data protection act (or international equivalents) but it is very unlikely they would get anywhere with that argument.

Email address is a little more debatable I guess, it depends under what terms you received the email address, e.g. if they signed up for you forum giving their email and ticked to hide it from other users then you might be in breach of the law by exposing it to the public later.

bokeh
03-14-2005, 09:19 AM
Most people have a dynamic IP which changes frequently. Why don't you use something more definative?

Dice
03-16-2005, 11:59 PM
Thanks for your replies.
I was jsut trying to ascertain wether publicly posting IP's was legal, that is all.

#1. Are IP's "in the public domain?"
#2. If so does tht give a forum admin the right to share a user IP by posting it?

In other words, just because an IP maybe in teh public domain does not grant publishing rights.

I saw a webpage post IP's, and then it was removed.
We play an FPS game and it would be handy to publicly post IP's on our forum, I just don't want to get into trouble.

NogDog
03-17-2005, 12:57 AM
Just for general privacy, I see no reason to publish someone's IP address without their consent, unless the registration agreement/privacy statement makes it clear that you will be doing so. Legal or illegal isn't so much the issue as it is, "Do unto others..."

ShrineDesigns
03-17-2005, 05:22 AM
Originally posted by bokeh
Most people have a dynamic IP which changes frequently. Why don't you use something more definative? http://www.webdeveloper.com/forum/showthread.php?s=&postid=334032#post334032