Many reasons exist why a WordPress blog owner might want to block visitors from particular countries. As WordPress features a fully functioning comment system, it leaves itself open to spam comments that static sites are not susceptible to. If the site is not set to moderate new comments individually, this can lead to a large amount of time spent moderating comments. If a large percentage of these are coming from a particular country, you can assuage the problem somewhat by blocking all visitors from that country.
Log in to your WordPress admin area. This is usually found at yourbloglocation/wp-admin.
Click "Plugins," then click "Add New." Type "iQ Block Country" in the "Search Plugins" text field, then click the "Search" button. When the results appear, locate "iQ Block Country" in the list, and click the "Install Now" link, just below the title of the plug-in. A pop-up box will ask you to confirm you want to install the plug-in. Click "OK," then wait a few moments for the plug-in to install. When prompted, click "Activate Plugin."
Click "Settings" from the main menu bar down the left of the screen, then click "iQ Block Country." Scroll down the main list of countries in the middle of the screen, and locate the country you want to block. Click it once to block it. If you want to block an additional country, you must hold down the "Ctrl" key while you click it -- if you do not hold down "Ctrl," all of your previous selections will be removed.
Click "Save Changes" at the bottom of the plug-in screen. When people from the countries you selected attempt to access your site, they will be presented with an error message stating "Error 403 Forbidden -- Users from your country are not permitted to browse this site."
Tips & Warnings
- Click the "Download New GeoIP Database" button once per month to increase the accuracy of the plug-in -- GeoIP currently has a 95.5 percent accuracy rate.
- Photo Credit Photos.com/Photos.com/Getty Images