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. Quote 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. Quote 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 Quote 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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.