Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to identify remote machine uniquely in php?

Tags:

php

how to identify remote machine uniquely in proxy server environment, i have used $_SERVER['REMOTE_ADDR'] but all machines in proxy network has same IP Address, is there any way

like image 626
Suriyan Suresh Avatar asked Jul 29 '09 04:07

Suriyan Suresh


1 Answers

Don't ever depend on information that is coming from the client. In this case, you're running up against simple networking problems (you can never be sure the client's IP address is correct), in other cases the client may spoof information on purpose.

If you need to uniquely identify your clients, hand them a cookie upon their first visit, that's the best you can do.

like image 123
deceze Avatar answered Oct 10 '22 11:10

deceze