Jump to content

IP Information


Kryptix

Recommended Posts

Not so much of a programming problem as such but if I add the ability to recover accounts via IP address, is it possible to spoof an IP address? Is it a bad idea to automatically allow a user to reset a password if their IP (according to PHP) matches the IP that created the account?

Link to comment
https://forums.phpfreaks.com/topic/215566-ip-information/
Share on other sites

What if the member's ISP hasn't put them on a static IP address (as is usually the case)?

 

Or if someone else is on the computer  of the member?

Not really worried about that I was just wondering if someone could manage to spoof another IP through header modification or whatever to trick PHP?

Link to comment
https://forums.phpfreaks.com/topic/215566-ip-information/#findComment-1120875
Share on other sites

Not so much of a programming problem as such but if I add the ability to recover accounts via IP address, is it possible to spoof an IP address? Is it a bad idea to automatically allow a user to reset a password if their IP (according to PHP) matches the IP that created the account?

Yes. Yes.

Link to comment
https://forums.phpfreaks.com/topic/215566-ip-information/#findComment-1121018
Share on other sites

To be perfectly honest, you sound like your trying to do this as an attackers point of view. It seems like you know a system which does this and you are trying to trick it.

 

However, to answer your question, yes you can spoof IP's, however, that's not to say you will receive any data back through that IP address as you are not that machine. Spoofing an IP would be just sending out Data from your machine and in the packet headers you would be IP XXX.XXX.XXX.XXX instead of YYY.YYY.YYY.YYY.

 

You cannot receive the data back from the spoofee, as it were, unless you are on their network.

Link to comment
https://forums.phpfreaks.com/topic/215566-ip-information/#findComment-1121044
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.