<?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>Bleadof's world of tinkering &#187; Apache</title>
	<atom:link href="http://hiutale.org/category/tinkering/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://hiutale.org</link>
	<description>It's just life, it'll sort itself out</description>
	<lastBuildDate>Mon, 04 Apr 2011 14:42:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Ha! I defeated the evil Chinese spam bot!</title>
		<link>http://hiutale.org/2006/07/05/ha-i-defeated-the-evil-chinese-spam-bot/</link>
		<comments>http://hiutale.org/2006/07/05/ha-i-defeated-the-evil-chinese-spam-bot/#comments</comments>
		<pubDate>Wed, 05 Jul 2006 07:20:30 +0000</pubDate>
		<dc:creator>Bleadof</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Tinkering]]></category>

		<guid isPermaLink="false">http://hiutale.org/2006/07/05/ha-i-defeated-the-evil-chinese-spam-bot/</guid>
		<description><![CDATA[I&#8217;m been spammed by this Chinese spam bot. It tries to post on my non-existing guestbook by loading /?guestbook&#038;action=write and generating dummy hits on my wordpress blog front page. Today I decided to stop that. Ingredients Apache Apache mod_rewrite module .htaccess love Steps 1. Create, if you don&#8217;t already have, a .htaccess file in your [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m been spammed by this Chinese spam bot. It tries to post on my non-existing guestbook by loading /?guestbook&#038;action=write and generating dummy hits on my <a href="http://www.wordpress.org">wordpress</a> blog front page. Today I decided to stop that.</p>
<h2>Ingredients</h2>
<ul>
<li>Apache</li>
<li>Apache mod_rewrite module</li>
<li>.htaccess love</li>
</ul>
<h2>Steps</h2>
<ul>
<li>1. Create, if you don&#8217;t already have, a .htaccess file in your document root (ie. mine is /home/username/public_html/)</li>
<li>2. Edit your .htaccess file and add following lines</li>
</ul>
<p><code><br />
  &lt;IfModule mod_rewrite.c&gt;<br />
  RewriteEngine On<br />
  RewriteCond %{QUERY_STRING} ^guestbook&#038;action=write$<br />
  RewriteRule ^index.php$ / [G]<br />
  &lt;/IfModule&gt;<br />
</code></p>
<ul>
<li>3. Save</li>
</ul>
<p>Now you are done and that url returns now 410 error code, which means the resource is gone.</p>
]]></content:encoded>
			<wfw:commentRss>http://hiutale.org/2006/07/05/ha-i-defeated-the-evil-chinese-spam-bot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

