Closed Thread Icon

Preserved Topic: logging ip adress with php? Pages that link to <a href="https://ozoneasylum.com/backlink?for=20953" title="Pages that link to Preserved Topic: logging ip adress with php?" rel="nofollow" >Preserved Topic: logging ip adress with php?\

 
Author Thread
GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 07-17-2001 12:42

is it possible to get the users ip using php?
if so, how?

im planning to use it in a form:
<input type=hidden value=$php_ip>

u-neek
Bipolar (III) Inmate

From: Berlin, Germany
Insane since: Jan 2001

posted posted 07-17-2001 13:59

well, it's easier:

code:
if (getenv(HTTP_X_FORWARDED_FOR)) {
$onlineip = getenv(HTTP_X_FORWARDED_FOR);
} else { $onlineip = getenv(REMOTE_ADDR); }



$onlineip stores the ip...

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 07-17-2001 14:50

thanks a lot!!!

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 07-17-2001 14:52

Could somebody give me a couple of reasons why you would want to log ip's, and what you would do with them once you have them?

Thanks

u-neek
Bipolar (III) Inmate

From: Berlin, Germany
Insane since: Jan 2001

posted posted 07-17-2001 15:03

np.

to ban them... (for those with static ip's)

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 07-17-2001 15:12

security.

also the asylum logs ip adresses.

personally i will use this for a guestbook i write for a customer.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-17-2001 15:25

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 07-17-2001 15:54

hmmmm. that's a point, ini.

but, i dont wanna identify the user, i just want to have something i can start with, if someone posts illegal things etc. it's only security. nothing to do with collecting userids.

u-neek
Bipolar (III) Inmate

From: Berlin, Germany
Insane since: Jan 2001

posted posted 07-17-2001 16:26

what about that: http://212.184.142.80/guestbook.php ?

still unfinished...

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 07-17-2001 17:35

InI, you shouldn't rely very much on cookies, because not all web surfers have them enabled (i.e. I enabled them only for forums like this one).

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-18-2001 08:40

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 07-18-2001 11:21

there has been a scandal some time ago, when it has been discovered that the company doubleclick did exactly this, whenever someone clicked on an ad banner.
they had userprofiles of a huge number of internetusers including interests, online-time, ISP, etc...

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-18-2001 11:33

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 07-18-2001 15:10

doubleclick logged the bannerclicks of users identifying them using cookies. if a user often clicked on car-ads, doubleclick knew, that he is interested in cars and automobiles. and so on...
that's the negative part of cookie.

on the other hand cookies can be very comfortable. see the asylum.

the java problem has been solved, it was a version conflict.
i did that for my boss. i dont know any more details about it. i just was needed to solve that problem

edit: typo

[This message has been edited by GRUMBLE (edited 07-18-2001).]

« BackwardsOnwards »

Show Forum Drop Down Menu