I stored the users IP address when they are registered.After that if they access the site from another Ip address I need to ask some security questions based on the registration.So is it possible to track the IP address.Otherwise the IP will change frequently?.
p.s No need to bother about Proxies and IP spoofing.
I stored the users IP address when they are registered.After that if they access
Share
$_SERVER['REMOTE_ADDR']returns the IP address. You know that, since you stored it in the database. When they login, you simply try to match their IP with what you have in the database and popup the questions. I don’t see where the problem is. Also, if you didn’t, consider usingINET_NTOAandINET_ATON( http://dev.mysql.com/doc/refman/5.0/en/miscellaneous-functions.html ) functions of MySQL.Good luck annoying users!