suyesh.amatya Posted July 17, 2008 Share Posted July 17, 2008 can anyone help me out with the script to track different class IPs and more specifically with the Class C ones.help??? Link to comment https://forums.phpfreaks.com/topic/115174-how-can-i-track-a-c-class-ip/ Share on other sites More sharing options...
trq Posted July 17, 2008 Share Posted July 17, 2008 We don't write scripts for people, were here to help with questions about your code. Do you have a question? Link to comment https://forums.phpfreaks.com/topic/115174-how-can-i-track-a-c-class-ip/#findComment-592219 Share on other sites More sharing options...
suyesh.amatya Posted July 17, 2008 Author Share Posted July 17, 2008 well what i need to do is ... i have to track the IPs incoming to my website and find out which class does it belong Link to comment https://forums.phpfreaks.com/topic/115174-how-can-i-track-a-c-class-ip/#findComment-592221 Share on other sites More sharing options...
trq Posted July 17, 2008 Share Posted July 17, 2008 You will find the ip address in $_SERVER['REMOTE_ADDR'], explode it on the . delimter and test the first index to find out from which class the ip belongs. Link to comment https://forums.phpfreaks.com/topic/115174-how-can-i-track-a-c-class-ip/#findComment-592231 Share on other sites More sharing options...
suyesh.amatya Posted July 17, 2008 Author Share Posted July 17, 2008 well thanks for ur suggestions and it gave 127.0.0.1 but is there anyway to do it on localhost(127.0.0.1) provided that we want to check it for the requests from the live running sites from outside Link to comment https://forums.phpfreaks.com/topic/115174-how-can-i-track-a-c-class-ip/#findComment-592236 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.