How to find out which country the IP address comes from
?This is especially useful as the forum is often spammed. A country's contributions may be prohibited if it does not provide contributors, but only the number of spammers.
Since addresses are distributed to Internet providers who assign them to subscribers depending on their city, it is the country or city of the provider that is known, but, as a rule, the subscriber's location is associated with the IP assigned to him .
Web services
The easiest way to find out the IP country is to use the web service:
Depending on the service, you can enter an address or a list of addresses at once. In return, it specifies a country, region, city or more information.
If you want to block a country, the Country IP Block website provides you with a list of country IP addresses or even directly code to insert into the .htaccess file.
Director's script
If you want to go further, then you need both a script and a geolocation base.
Such a set is included in the Awstats statistics tool.
Open source statistical tools, such as extensions for Wordpress, often contain a geolocation module.
Know your IP
To find out your own IP address, you can simply visit the site Ripe.net. It displays detailed information: visitor IP and possibly country and city.