<?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>Prosthetically Hip &#187; MDFive</title>
	<atom:link href="http://prostheticallyhip.com/category/mdfive/feed/" rel="self" type="application/rss+xml" />
	<link>http://prostheticallyhip.com</link>
	<description>meepzorp.</description>
	<lastBuildDate>Tue, 07 Sep 2010 16:03:18 +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>MDFive is Alive!</title>
		<link>http://prostheticallyhip.com/2007/05/04/mdfive-is-alive/</link>
		<comments>http://prostheticallyhip.com/2007/05/04/mdfive-is-alive/#comments</comments>
		<pubDate>Sat, 05 May 2007 00:12:47 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[MDFive]]></category>

		<guid isPermaLink="false">http://prostheticallyhip.com/?p=272</guid>
		<description><![CDATA[Ok, so remember that Cached Spam Blocker I worked on a while ago? Well, I finally moved it away from hacking individual files and ported into a single-file, WordPress plugin. I present unto you, MDFive Spam Blocker!: &#60;?php /* Plugin Name: MDFive Spam Blocker Plugin URI: http://prostheticallyhip.com/MDFive Description: A user-transparent plugin to block comments made [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so remember that Cached Spam Blocker I worked on a while ago? Well, I finally moved it away from hacking individual files and ported into a single-file, WordPress plugin.</p>
<p>I present unto you, <a href="http://prostheticallyhip.com/MDFive/wp-MDFive-0.3.phps"><b>MDFive Spam Blocker</b></a>!:</p>
<blockquote><p>&lt;?php<br />
/*<br />
Plugin Name: MDFive Spam Blocker<br />
Plugin URI: http://prostheticallyhip.com/MDFive<br />
Description: A user-transparent plugin to block comments made by spam-bots from cached versions of your blog.<br />
Author: Will<br />
Version: 0.3<br />
Author URI: http://prostheticallyhip.com/<br />
*/ </p>
<p>//edit the line below with your Secret Phrase<br />
$extra = &#8220;Edit Secret Phrase here (keep existing double-quotes, and please don&#8217;t add more.)&#8221;;</p>
<p>// you shouldn&#8217;t edit anything below here.</p>
<p>function gen_MDFive() {<br />
&nbsp;&nbsp;global $extra;<br />
&nbsp;&nbsp;echo &#8216;&lt;input type=&#8221;hidden&#8221; name=&#8221;cache&#8221; value=&#8221;&#8216;.(md5(date(YmdH).$extra)).&#8217;&#8221; /&gt;&#8217;;<br />
}</p>
<p>function check_MDFive($approved) {<br />
&nbsp;&nbsp;global $_POST;<br />
&nbsp;&nbsp;global $extra;<br />
&nbsp;&nbsp;if(<br />
&nbsp;&nbsp;&nbsp;&nbsp;$_POST['cache'] == md5(date(YmdH).$extra) ||<br />
&nbsp;&nbsp;&nbsp;&nbsp;$_POST['cache'] == md5(date(&#8216;YmdH&#8217;,mktime(date(H)-1, 0, 0, date(m),date(d),date(Y))).$extra)<br />
&nbsp;&nbsp;) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;//good! within the cache window!<br />
&nbsp;&nbsp;} else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;$badCount++;<br />
&nbsp;&nbsp;}<br />
&nbsp;&nbsp;if($badCount &gt; 0) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;die(&#8220;We don&#8217;t allow comment spam here.&#8221;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;return false;<br />
&nbsp;&nbsp;} else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;return $approved;<br />
&nbsp;&nbsp;}<br />
}</p>
<p>add_action(&#8216;comment_form&#8217;, &#8216;gen_MDFive&#8217;);<br />
add_action(&#8216;pre_comment_approved&#8217;, &#8216;check_MDFive&#8217;);<br />
?&gt;</p></blockquote>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fprostheticallyhip.com%2F2007%2F05%2F04%2Fmdfive-is-alive%2F&amp;title=MDFive%20is%20Alive%21&amp;notes=Ok%2C%20so%20remember%20that%20Cached%20Spam%20Blocker%20I%20worked%20on%20a%20while%20ago%3F%20Well%2C%20I%20finally%20moved%20it%20away%20from%20hacking%20individual%20files%20and%20ported%20into%20a%20single-file%2C%20WordPress%20plugin.%0D%0A%0D%0AI%20present%20unto%20you%2C%20MDFive%20Spam%20Blocker%21%3A%0D%0A%26lt%3B%3Fphp%0D%0A%2F%2A%0D%0APlugin%20Name%3A%20MD" title="del.icio.us"><img src="http://prostheticallyhip.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fprostheticallyhip.com%2F2007%2F05%2F04%2Fmdfive-is-alive%2F&amp;title=MDFive%20is%20Alive%21&amp;bodytext=Ok%2C%20so%20remember%20that%20Cached%20Spam%20Blocker%20I%20worked%20on%20a%20while%20ago%3F%20Well%2C%20I%20finally%20moved%20it%20away%20from%20hacking%20individual%20files%20and%20ported%20into%20a%20single-file%2C%20WordPress%20plugin.%0D%0A%0D%0AI%20present%20unto%20you%2C%20MDFive%20Spam%20Blocker%21%3A%0D%0A%26lt%3B%3Fphp%0D%0A%2F%2A%0D%0APlugin%20Name%3A%20MD" title="Digg"><img src="http://prostheticallyhip.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fprostheticallyhip.com%2F2007%2F05%2F04%2Fmdfive-is-alive%2F&amp;t=MDFive%20is%20Alive%21" title="Facebook"><img src="http://prostheticallyhip.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=MDFive%20is%20Alive%21&amp;u=http%3A%2F%2Fprostheticallyhip.com%2F2007%2F05%2F04%2Fmdfive-is-alive%2F" title="Fark"><img src="http://prostheticallyhip.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fprostheticallyhip.com%2F2007%2F05%2F04%2Fmdfive-is-alive%2F&amp;title=MDFive%20is%20Alive%21&amp;annotation=Ok%2C%20so%20remember%20that%20Cached%20Spam%20Blocker%20I%20worked%20on%20a%20while%20ago%3F%20Well%2C%20I%20finally%20moved%20it%20away%20from%20hacking%20individual%20files%20and%20ported%20into%20a%20single-file%2C%20WordPress%20plugin.%0D%0A%0D%0AI%20present%20unto%20you%2C%20MDFive%20Spam%20Blocker%21%3A%0D%0A%26lt%3B%3Fphp%0D%0A%2F%2A%0D%0APlugin%20Name%3A%20MD" title="Google Bookmarks"><img src="http://prostheticallyhip.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fprostheticallyhip.com%2F2007%2F05%2F04%2Fmdfive-is-alive%2F&amp;title=MDFive%20is%20Alive%21&amp;source=Prosthetically+Hip+meepzorp.&amp;summary=Ok%2C%20so%20remember%20that%20Cached%20Spam%20Blocker%20I%20worked%20on%20a%20while%20ago%3F%20Well%2C%20I%20finally%20moved%20it%20away%20from%20hacking%20individual%20files%20and%20ported%20into%20a%20single-file%2C%20WordPress%20plugin.%0D%0A%0D%0AI%20present%20unto%20you%2C%20MDFive%20Spam%20Blocker%21%3A%0D%0A%26lt%3B%3Fphp%0D%0A%2F%2A%0D%0APlugin%20Name%3A%20MD" title="LinkedIn"><img src="http://prostheticallyhip.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fprostheticallyhip.com%2F2007%2F05%2F04%2Fmdfive-is-alive%2F&amp;title=MDFive%20is%20Alive%21" title="Live"><img src="http://prostheticallyhip.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fprostheticallyhip.com%2F2007%2F05%2F04%2Fmdfive-is-alive%2F&amp;t=MDFive%20is%20Alive%21" title="MySpace"><img src="http://prostheticallyhip.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fprostheticallyhip.com%2F2007%2F05%2F04%2Fmdfive-is-alive%2F&amp;title=MDFive%20is%20Alive%21" title="StumbleUpon"><img src="http://prostheticallyhip.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fprostheticallyhip.com%2F2007%2F05%2F04%2Fmdfive-is-alive%2F" title="Technorati"><img src="http://prostheticallyhip.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fprostheticallyhip.com%2F2007%2F05%2F04%2Fmdfive-is-alive%2F&amp;t=MDFive%20is%20Alive%21&amp;s=Ok%2C%20so%20remember%20that%20Cached%20Spam%20Blocker%20I%20worked%20on%20a%20while%20ago%3F%20Well%2C%20I%20finally%20moved%20it%20away%20from%20hacking%20individual%20files%20and%20ported%20into%20a%20single-file%2C%20WordPress%20plugin.%0D%0A%0D%0AI%20present%20unto%20you%2C%20MDFive%20Spam%20Blocker%21%3A%0D%0A%26lt%3B%3Fphp%0D%0A%2F%2A%0D%0APlugin%20Name%3A%20MD" title="Tumblr"><img src="http://prostheticallyhip.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=MDFive%20is%20Alive%21%20-%20http%3A%2F%2Fprostheticallyhip.com%2F2007%2F05%2F04%2Fmdfive-is-alive%2F" title="Twitter"><img src="http://prostheticallyhip.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://prostheticallyhip.com/2007/05/04/mdfive-is-alive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
