jagoan-neon Posted March 30, 2009 Share Posted March 30, 2009 Hi All, How to make PHP script to check IP from which country. For example, I want to reject IP from outside USA I know how to get IP using $_SERVER, but don't know to find it's country. Thank You. Link to comment https://forums.phpfreaks.com/topic/151771-solved-script-to-check-ip/ Share on other sites More sharing options...
Maq Posted March 30, 2009 Share Posted March 30, 2009 You probably want to just download a third party script for this. To my knowledge, there is no function that can detect this. Google "php ip to country". Good luck. Link to comment https://forums.phpfreaks.com/topic/151771-solved-script-to-check-ip/#findComment-796954 Share on other sites More sharing options...
jagoan-neon Posted March 30, 2009 Author Share Posted March 30, 2009 Thank you for giving me the query to seach in google Link to comment https://forums.phpfreaks.com/topic/151771-solved-script-to-check-ip/#findComment-796958 Share on other sites More sharing options...
jagoan-neon Posted March 30, 2009 Author Share Posted March 30, 2009 I have found it Thank you one again Link to comment https://forums.phpfreaks.com/topic/151771-solved-script-to-check-ip/#findComment-796973 Share on other sites More sharing options...
Maq Posted March 30, 2009 Share Posted March 30, 2009 I have found it Thank you one again Sure, it's weird because I've seen this same question like 3 times last week. Link to comment https://forums.phpfreaks.com/topic/151771-solved-script-to-check-ip/#findComment-797007 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.