Home > Net >  Asp.net for the client IP or other information method of the uniqueness
Asp.net for the client IP or other information method of the uniqueness

Time:10-08

Asp.net can obtain the client's IP, but when the entire computer system is used in the routers or proxy, we found a lot of the IP address of the client to return is the same,

In our system, we would want to take advantage of the uniqueness of the client IP to check some judgment, this case doesn't work,

So I want to ask, when the entire computer system is used in the router or agent, how do we get to the client are rather unique IP or other information has uniqueness?

CodePudding user response:

Use IP is not stable, unless within the clients in the same local area network (LAN) using the system, and have fixed LAN IP, and are not allowed to modify,
Can through the cookie to the client in a unique identifier, so the cookie values to determine the identity of the client,
Have a rid malpractice is the user cookie, this value would be gone,

CodePudding user response:

Uniqueness of the method is because is the web, so recommend you client information encrypted on the User - agin, although this thing can be change, but the other still been tampered with, what do you do in the service side under a private key check may solve your problem,

CodePudding user response:

Can use IP + hostname, if there is a login account, you can add account ID

CodePudding user response:

Use a token is not solved,

You also depend on the client to judge? That is not honest, unless you are signed up everything or not

CodePudding user response:

Access to the IP is public IP, not specific to each machine, the web system for uniqueness, is difficult
  • Related