<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tyler Nichols Weblog &#187; Webmaster Tips</title>
	<atom:link href="http://www.tylernichols.com/category/webmaster-tips/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tylernichols.com</link>
	<description>Random thoughts on Life, Family and Technology</description>
	<lastBuildDate>Thu, 27 May 2010 13:55:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Block IP Addresses by Country</title>
		<link>http://www.tylernichols.com/webmaster-tips/blocking-ip-addresses-by-country</link>
		<comments>http://www.tylernichols.com/webmaster-tips/blocking-ip-addresses-by-country#comments</comments>
		<pubDate>Sat, 12 Apr 2008 05:25:45 +0000</pubDate>
		<dc:creator>tyler</dc:creator>
				<category><![CDATA[Webmaster Tips]]></category>
		<category><![CDATA[bots]]></category>
		<category><![CDATA[IP blocking]]></category>
		<category><![CDATA[scrapers]]></category>
		<category><![CDATA[spammers]]></category>

		<guid isPermaLink="false">http://www.tylernichols.com/?p=67</guid>
		<description><![CDATA[One of the worst things about being a webmaster is the constant battle we wage against spammers and scrapers. A majority of these creeps have IP addresses which originate from outside the United States in countries like China, Russia, Latvia and Nigeria. After years of being a webmaster, I have found that a majority of [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tylernichols.com%2Fwebmaster-tips%2Fblocking-ip-addresses-by-country"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tylernichols.com%2Fwebmaster-tips%2Fblocking-ip-addresses-by-country&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>One of the worst things about being a webmaster is the constant battle we wage against <a href="http://en.wikipedia.org/wiki/Spam_(electronic)" target="_blank">spammers</a> and <a href="http://en.wikipedia.org/wiki/Scraper_site" target="_blank">scrapers</a>. A majority of these creeps have IP addresses which originate from outside the United States in countries like China, Russia, Latvia and Nigeria.</p>
<p>After years of being a webmaster, I have found that a majority of these countries send only bots and other nefarious users to my sites. So I use htaccess IP banning to handle these net-scumbags most of the time.</p>
<p>IP banning in a htaccess file looks like this:</p>
<pre class="brush: js">
&lt;Limit GET HEAD POST&gt;
order allow,deny
deny from 202.70.112.0/20
allow from all
&lt;/LIMIT&gt;
</pre>
<p>There are many services online that will give you IP CIDR block listings by country such as <a href="http://www.ipdeny.com" target="_blank">IPDeny</a>, <a href="http://www.blockacountry.com/" target="_blank">Block a Country</a> and <a href="http://www.countryipblocks.net/" target="_blank">Country IP Blocks</a>. The last two will actually generate the htaccess deny statements for you, which is a huge time saver.</p>
<p>If you ever find the need to block country IP&#8217;s, be sure to check out the sites above.</p>
<p>
<!--adsense--></p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fwww.tylernichols.com%2Fwebmaster-tips%2Fblocking-ip-addresses-by-country&amp;title=Block+IP+Addresses+by+Country" ><img class="lightsocial_img" src="http://www.tylernichols.com/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fwww.tylernichols.com%2Fwebmaster-tips%2Fblocking-ip-addresses-by-country&amp;title=Block+IP+Addresses+by+Country" ><img class="lightsocial_img" src="http://www.tylernichols.com/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.tylernichols.com%2Fwebmaster-tips%2Fblocking-ip-addresses-by-country&amp;title=Block+IP+Addresses+by+Country" ><img class="lightsocial_img" src="http://www.tylernichols.com/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fwww.tylernichols.com%2Fwebmaster-tips%2Fblocking-ip-addresses-by-country&amp;headline=Block+IP+Addresses+by+Country" ><img class="lightsocial_img" src="http://www.tylernichols.com/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=Block+IP+Addresses+by+Country&amp;url=http%3A%2F%2Fwww.tylernichols.com%2Fwebmaster-tips%2Fblocking-ip-addresses-by-country" ><img class="lightsocial_img" src="http://www.tylernichols.com/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=Block+IP+Addresses+by+Country&amp;u=http%3A%2F%2Fwww.tylernichols.com%2Fwebmaster-tips%2Fblocking-ip-addresses-by-country" ><img class="lightsocial_img" src="http://www.tylernichols.com/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=Block+IP+Addresses+by+Country&amp;url=http%3A%2F%2Fwww.tylernichols.com%2Fwebmaster-tips%2Fblocking-ip-addresses-by-country" ><img class="lightsocial_img" src="http://www.tylernichols.com/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=Block+IP+Addresses+by+Country&amp;url=http%3A%2F%2Fwww.tylernichols.com%2Fwebmaster-tips%2Fblocking-ip-addresses-by-country" ><img class="lightsocial_img" src="http://www.tylernichols.com/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=Block+IP+Addresses+by+Country&amp;url=http%3A%2F%2Fwww.tylernichols.com%2Fwebmaster-tips%2Fblocking-ip-addresses-by-country" ><img class="lightsocial_img" src="http://www.tylernichols.com/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.tylernichols.com%2Fwebmaster-tips%2Fblocking-ip-addresses-by-country&amp;title=Block+IP+Addresses+by+Country&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://www.tylernichols.com/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.tylernichols.com%2Fwebmaster-tips%2Fblocking-ip-addresses-by-country" ><img class="lightsocial_img" src="http://www.tylernichols.com/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fwww.tylernichols.com%2Fwebmaster-tips%2Fblocking-ip-addresses-by-country" ><img class="lightsocial_img" src="http://www.tylernichols.com/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fwww.tylernichols.com%2Fwebmaster-tips%2Fblocking-ip-addresses-by-country" ><img class="lightsocial_img" src="http://www.tylernichols.com/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://www.tylernichols.com/webmaster-tips/blocking-ip-addresses-by-country/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
