<?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>PDX Freelancers &#187; Apache Web Server</title>
	<atom:link href="http://www.pdxfreelancers.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pdxfreelancers.com</link>
	<description>Website Designers - Web Developers - Search Engine Optimization</description>
	<lastBuildDate>Sat, 25 Sep 2010 19:52:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite</title>
		<link>http://www.pdxfreelancers.com/2009/11/block-unwanted-visitors-by-ip-address-using-mod_rewrite/</link>
		<comments>http://www.pdxfreelancers.com/2009/11/block-unwanted-visitors-by-ip-address-using-mod_rewrite/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 20:45:55 +0000</pubDate>
		<dc:creator>ghepting</dc:creator>
				<category><![CDATA[Apache Web Server]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[HTML, xHTML & CSS]]></category>
		<category><![CDATA[Internet Technology]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Search Engine Optimization]]></category>
		<category><![CDATA[Search Engine Placement]]></category>
		<category><![CDATA[Web Server]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[bots]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[robots]]></category>
		<category><![CDATA[robots.txt]]></category>
		<category><![CDATA[Search Engines]]></category>
		<category><![CDATA[spiders]]></category>
		<category><![CDATA[UserAgent]]></category>

		<guid isPermaLink="false">http://garyhepting.com/?p=861</guid>
		<description><![CDATA[Use .htaccess rules to block unwanted bots, spiders and other UserAgents that don&#8217;t fetch, or that fetch and ignore robots.txt. Blocking visitors by IP address filtering in .htaccess file: # deny specific IP addresses, and allow all others order allow, deny deny from 123.45.6.7 deny from 123.45.6.8 deny from 123.45.6.9 allow from all Block specific [...]]]></description>
			<content:encoded><![CDATA[<p>Use .htaccess rules to block unwanted bots, spiders and other UserAgents that don&#8217;t fetch, or that fetch and ignore robots.txt.</p>
<h3>Blocking visitors by IP address filtering in .htaccess file:</h3>
<pre>
# deny specific IP addresses, and allow all others
order allow, deny
deny from 123.45.6.7
deny from 123.45.6.8
deny from 123.45.6.9
allow from all
</pre>
<p><br/></p>
<h3>Block specific UserAgent using mod_rewrite</h3>
<pre>
   # Block Google Images Bot from Indexing your Copyrighted Images
   # Hopefully someday Google will publish a "supported way" of
   # Disallowing the Google Image Bot when necessary, but until then...
   RewriteEngine on
   RewriteCond %{HTTP_USER_AGENT} ^Googlebot-Image
   RewriteRule ^(.*)$ http://images.google.com/
</pre>
<p><br/></p>
<p>The catch-22 with this method is that &#8220;sneaky&#8221; program developers can simply masquerade as &#8220;normal&#8221; visitors by using common web browser user agent strings. Reinforcing the fact that all three of these methods are USEFUL, but in no way a complete or secure solution even with the precise use of all three.</p>
<p><br/></p>
<p>Also see:</p>
<ol>
<li><a href="http://garyhepting.com/2009/11/robots-txt/">robots.txt</a></li>
<li><a href="http://garyhepting.com/2009/11/robots-meta-tag/">Robots Meta Tag</a></li>
</ol>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.pdxfreelancers.com/2009/11/block-unwanted-visitors-by-ip-address-using-mod_rewrite/&amp;title=Block+Unwanted+Visitors+by+IP+Address+or+UserAgent+in+Apache+using+mod_rewrite" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to Del.icio.us"><img src="http://www.pdxfreelancers.com/wp-content/plugins/social-bookmarking-reloaded/delicious.png" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to Del.icio.us" alt="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to Del.icio.us" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.pdxfreelancers.com/2009/11/block-unwanted-visitors-by-ip-address-using-mod_rewrite/&amp;title=Block+Unwanted+Visitors+by+IP+Address+or+UserAgent+in+Apache+using+mod_rewrite" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to digg"><img src="http://www.pdxfreelancers.com/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to digg" alt="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://furl.net/storeIt.jsp?t=Block+Unwanted+Visitors+by+IP+Address+or+UserAgent+in+Apache+using+mod_rewrite&amp;u=http://www.pdxfreelancers.com/2009/11/block-unwanted-visitors-by-ip-address-using-mod_rewrite/" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to FURL"><img src="http://www.pdxfreelancers.com/wp-content/plugins/social-bookmarking-reloaded/furl.png" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to FURL" alt="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to FURL" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blinklist.com/index.php?Action=Blink/addblink.php&amp;Name=Block+Unwanted+Visitors+by+IP+Address+or+UserAgent+in+Apache+using+mod_rewrite&amp;Description=Block+Unwanted+Visitors+by+IP+Address+or+UserAgent+in+Apache+using+mod_rewrite&amp;Url=http://www.pdxfreelancers.com/2009/11/block-unwanted-visitors-by-ip-address-using-mod_rewrite/" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to blinklist"><img src="http://www.pdxfreelancers.com/wp-content/plugins/social-bookmarking-reloaded/blinklist.png" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to blinklist" alt="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to blinklist" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.pdxfreelancers.com/2009/11/block-unwanted-visitors-by-ip-address-using-mod_rewrite/&amp;title=Block+Unwanted+Visitors+by+IP+Address+or+UserAgent+in+Apache+using+mod_rewrite" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to reddit"><img src="http://www.pdxfreelancers.com/wp-content/plugins/social-bookmarking-reloaded/reddit.png" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to reddit" alt="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to reddit" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.pdxfreelancers.com/2009/11/block-unwanted-visitors-by-ip-address-using-mod_rewrite/" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to Technorati"><img src="http://www.pdxfreelancers.com/wp-content/plugins/social-bookmarking-reloaded/technorati.png" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to Technorati" alt="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to Technorati" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://www.pdxfreelancers.com/2009/11/block-unwanted-visitors-by-ip-address-using-mod_rewrite/&amp;title=Block+Unwanted+Visitors+by+IP+Address+or+UserAgent+in+Apache+using+mod_rewrite" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to Stumble Upon"><img src="http://www.pdxfreelancers.com/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to Stumble Upon" alt="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to Stumble Upon" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.pdxfreelancers.com/2009/11/block-unwanted-visitors-by-ip-address-using-mod_rewrite/&amp;title=Block+Unwanted+Visitors+by+IP+Address+or+UserAgent+in+Apache+using+mod_rewrite" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to Google Bookmarks"><img src="http://www.pdxfreelancers.com/wp-content/plugins/social-bookmarking-reloaded/google.png" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to Google Bookmarks" alt="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to Google Bookmarks" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?title=Block+Unwanted+Visitors+by+IP+Address+or+UserAgent+in+Apache+using+mod_rewrite&amp;url=http://www.pdxfreelancers.com/2009/11/block-unwanted-visitors-by-ip-address-using-mod_rewrite/" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to SlashDot"><img src="http://www.pdxfreelancers.com/wp-content/plugins/social-bookmarking-reloaded/slashdot.png" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to SlashDot" alt="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to SlashDot" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/share.php?u=http://www.pdxfreelancers.com/2009/11/block-unwanted-visitors-by-ip-address-using-mod_rewrite/&amp;t=Block+Unwanted+Visitors+by+IP+Address+or+UserAgent+in+Apache+using+mod_rewrite" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to FaceBook"><img src="http://www.pdxfreelancers.com/wp-content/plugins/social-bookmarking-reloaded/facebook.png" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to FaceBook" alt="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to FaceBook" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home?status=http://www.pdxfreelancers.com/2009/11/block-unwanted-visitors-by-ip-address-using-mod_rewrite/" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to Twitter"><img src="http://www.pdxfreelancers.com/wp-content/plugins/social-bookmarking-reloaded/twitter.png" title="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to Twitter" alt="Add 'Block Unwanted Visitors by IP Address or UserAgent in Apache using mod_rewrite' to Twitter" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://www.pdxfreelancers.com/2009/11/block-unwanted-visitors-by-ip-address-using-mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

