<?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></description>
	<lastBuildDate>Tue, 10 Jan 2012 14:03:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</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="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-vertical"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.tylernichols.com/webmaster-tips/blocking-ip-addresses-by-country" data-text="Block IP Addresses by Country" data-count="vertical" data-via="socializeWP" data-related="tylernichols"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-vertical"><g:plusone size="tall" href="http://www.tylernichols.com/webmaster-tips/blocking-ip-addresses-by-country"></g:plusone></div></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>
]]></content:encoded>
			<wfw:commentRss>http://www.tylernichols.com/webmaster-tips/blocking-ip-addresses-by-country/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

