I'm sorry, I don't follow. You can fake your IP in a couple ways, namely spoofing it and going through an HTTP proxy. If you want to allow login only to certain IP addresses you can do that easily enough, but it isn't foolproof. Somebody could spoof their IP to look like an 'allowed' IP.
Hope that helps,
T
: : Hi
: : I want to obtain the IP address of each visitor of my web site. How I can do this? I do this in ASP by the following code:
: :
: : <%Response.Write(Request.ServerVariables("LOCAL_ADDR"))%>
: :
: : But how in PHP?
: : Thanks
: :
: Thanks. But is it possible to change the IP address when we connect to internet? If so ,how? In fact, I want to design a login system by which only special users ,that their IP address is known for us, can log in.
: Do you know any better way to do so?
:
: