<?xml version="1.0" encoding="utf-8"?>

<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  xmlns:admin="http://webns.net/mvcb/"
  xmlns:cc="http://web.resource.org/cc/"
  xmlns="http://purl.org/rss/1.0/">

<channel rdf:about="http://mt-hacks.com/">
<title>Trick the Comment Spammers</title>
<link>http://mt-hacks.com/20041216-trick-the-comment-spammers.html</link>
<description>Trick the Comment Spammers Discussion at MT-Hacks.com</description>
<dc:language>en-us</dc:language>
<dc:creator>Mark</dc:creator>
<dc:date>2004-12-16T16:01:51-05:00</dc:date>
<admin:generatorAgent rdf:resource="http://www.movabletype.org/?v=4.25b2-en" />

<cc:license rdf:resource="http://creativecommons.org/licenses/by-nc-sa/1.0/" />


<items>
<rdf:Seq>
<rdf:li rdf:resource="http://mt-hacks.com/20041216-trick-the-comment-spammers.html#065809" />

<rdf:li rdf:resource="http://mt-hacks.com/20041216-trick-the-comment-spammers.html#065813" />

<rdf:li rdf:resource="http://mt-hacks.com/20041216-trick-the-comment-spammers.html#065945" />

<rdf:li rdf:resource="http://mt-hacks.com/20041216-trick-the-comment-spammers.html#065948" />

<rdf:li rdf:resource="http://mt-hacks.com/20041216-trick-the-comment-spammers.html#066157" />

<rdf:li rdf:resource="http://mt-hacks.com/20041216-trick-the-comment-spammers.html#066159" />

<rdf:li rdf:resource="http://mt-hacks.com/20041216-trick-the-comment-spammers.html#069434" />

<rdf:li rdf:resource="http://mt-hacks.com/20041216-trick-the-comment-spammers.html#113884" />

<rdf:li rdf:resource="http://mt-hacks.com/20041216-trick-the-comment-spammers.html#114313" />

<rdf:li rdf:resource="http://mt-hacks.com/20041216-trick-the-comment-spammers.html#197746" />

<rdf:li rdf:resource="http://mt-hacks.com/20041216-trick-the-comment-spammers.html#262357" />
</rdf:Seq>
</items>

</channel>

<item rdf:about="http://mt-hacks.com/20041216-trick-the-comment-spammers.html">
<title>Trick the Comment Spammers</title>
<link>http://mt-hacks.com/20041216-trick-the-comment-spammers.html</link>
<description><![CDATA[<p><strong>Update (12/17/04 08:57 EST): </strong> I have just received a report that this trick does NOT work using the Safari web browser.  This is likely becuase this is not the "proper" way to use BASE HREF.  I will be posting a javascript version soon.</p>

<p>I tried this about 5 hours ago, and it works.  I have received <strong>ZERO</strong> spam since I implemented this -- and I usually get hundreds a day.</p>

<p>The trick requires a simple template edit and works by tricking the spambots into think that your comment script is somewhere else.  So when they try to spam you, they get 404 errors.  Everyone else can post fine as usual.</p>

<p><strong>Steps:</strong></p>

<p>1.  In your Individual Entry Archive, look for the following:</p>

<p><q>&lt;form method="post" action="&lt;$MTCGIPath$&gt;&lt;$MTCommentScript$&gt;" name="comments_form" onsubmit="if (this.bakecookie[0].checked) rememberMe(this)"&gt;</q></p>

<p>and replace it with:</p>

<p><q>&lt;base href="&lt;$MTCGIPath$&gt;"&gt;<br />
&lt;form method="post" action="&lt;$MTCommentScript$&gt;" name="comments_form" onsubmit="if (this.bakecookie[0].checked) rememberMe(this)"&gt;</q></p>

<p>2.  Further down the page, after the &lt;/form&gt; tag, enter:</p>

<p><q>&ltbase href="&lt$MTBlogURL$&gt"&gt</q></p>

<p>3.  Rebuild your Indivdual Archives, and you are done.</p>

<p>This tricks spammers into thinking that your comment script is in the same folder as your entry.  Since I starting using this, I have received zero spam and about 50 'Page Not Found' 404 errors in my web stats, presumably spambots trying to look for my comments script in the wrong places.</p>

<p>In combination with this, you may want to rename your comments script, just to be safe.  I have not done so, but it may help.</p>

<p>This trick -- like many others -- is easy for the spammers to work around.  If enough people start doing this, they will make adjustments to defeat it.  For now, however, it is working extremely well. :D</p>]]></description>
<dc:subject>Home</dc:subject>
<dc:creator>Mark</dc:creator>
<dc:date>2004-12-16T16:01:51-05:00</dc:date>
</item>


<item rdf:about="http://mt-hacks.com/20041216-trick-the-comment-spammers.html">
<title>Trick the Comment Spammers</title>
<link>http://mt-hacks.com/20041216-trick-the-comment-spammers.html#065809</link>
<description><![CDATA[<p>I was under the impression that you couldn't have two base hrefs in a document, and only the last one would be read. Is that the idea here, or am I missing something?</p>]]></description>
<dc:subject>Home</dc:subject>
<dc:creator>Jake</dc:creator>
<dc:date>2004-12-16T16:52:53-05:00</dc:date>
</item>

<item rdf:about="http://mt-hacks.com/20041216-trick-the-comment-spammers.html">
<title>Trick the Comment Spammers</title>
<link>http://mt-hacks.com/20041216-trick-the-comment-spammers.html#065813</link>
<description><![CDATA[<p>Based on my (limited) experience, you can have multiple base hrefs on one page.  Each one seems to apply until a new one is found on the page.  It seems like it is read (and rendered) top-down, switching the base everytime a base href tag is found.</p>]]></description>
<dc:subject>Home</dc:subject>
<dc:creator>Mark Carey</dc:creator>
<dc:date>2004-12-16T16:56:32-05:00</dc:date>
</item>

<item rdf:about="http://mt-hacks.com/20041216-trick-the-comment-spammers.html">
<title>Trick the Comment Spammers</title>
<link>http://mt-hacks.com/20041216-trick-the-comment-spammers.html#065945</link>
<description><![CDATA[<p>Interesting idea, but I am curious about the 404 errors... Obviously this method will keep the spam from being posted (good for the blog), but the server will still be taking quite a hit serving the 404 error page (not so good for the server/host), right?</p>

<p> -=kt=-</p>]]></description>
<dc:subject>Home</dc:subject>
<dc:creator>ktpupp</dc:creator>
<dc:date>2004-12-17T09:22:00-05:00</dc:date>
</item>

<item rdf:about="http://mt-hacks.com/20041216-trick-the-comment-spammers.html">
<title>Trick the Comment Spammers</title>
<link>http://mt-hacks.com/20041216-trick-the-comment-spammers.html#065948</link>
<description><![CDATA[<p>ktpupp,</p>

<p>I am not expert when it comes to server loads issues, but I am pretty sure that serving a 404 error page takes much less resources that executing the MT cgi scripts, which including checking the for string matches on my 3,000 entry blacklist and <i>may</i> include a rebuild of some of my pages.</p>]]></description>
<dc:subject>Home</dc:subject>
<dc:creator>Mark Carey</dc:creator>
<dc:date>2004-12-17T09:46:24-05:00</dc:date>
</item>

<item rdf:about="http://mt-hacks.com/20041216-trick-the-comment-spammers.html">
<title>Trick the Comment Spammers</title>
<link>http://mt-hacks.com/20041216-trick-the-comment-spammers.html#066157</link>
<description><![CDATA[<p>Interesting idea, but unfortunately it will make your HTML invalid. The base element is <strong>only</strong> allowed in the head section of a document. That is most probably why it isn't working in Safari. There may well be problems in other browsers too.</p>]]></description>
<dc:subject>Home</dc:subject>
<dc:creator>Roger Johansson</dc:creator>
<dc:date>2004-12-18T08:47:29-05:00</dc:date>
</item>

<item rdf:about="http://mt-hacks.com/20041216-trick-the-comment-spammers.html">
<title>Trick the Comment Spammers</title>
<link>http://mt-hacks.com/20041216-trick-the-comment-spammers.html#066159</link>
<description><![CDATA[<p>Normally I don't care about my HTML being invalid, but when it causes problems with a major browser like Safari, I do care about that.</p>

<p>I have switched to the <a href="MTDisguiseCommentURL.html" rel="nofollow">javascript version</a> of this trick.</p>]]></description>
<dc:subject>Home</dc:subject>
<dc:creator>Mark Carey</dc:creator>
<dc:date>2004-12-18T08:51:03-05:00</dc:date>
</item>

<item rdf:about="http://mt-hacks.com/20041216-trick-the-comment-spammers.html">
<title>Trick the Comment Spammers</title>
<link>http://mt-hacks.com/20041216-trick-the-comment-spammers.html#069434</link>
<description><![CDATA[<p>This trick has eliminated every spam I had been getting (except for the manual ones of course).  Since most of them were robots though this has been a blessing.  I am purposely not writing about it on my website lest someone catch on.  Silence is golden for now.</p>]]></description>
<dc:subject>Home</dc:subject>
<dc:creator>john</dc:creator>
<dc:date>2005-01-03T00:35:31-05:00</dc:date>
</item>

<item rdf:about="http://mt-hacks.com/20041216-trick-the-comment-spammers.html">
<title>Trick the Comment Spammers</title>
<link>http://mt-hacks.com/20041216-trick-the-comment-spammers.html#113884</link>
<description><![CDATA[<p>I think you make a really important point that once enough people start using this work around, the spambots will be changed to work with the work around. </p>

<p>I guess the idea that I got from your post is that if we always stay one step ahead of what the majority of people are doing, then you probably will be able to avoid problems.</p>

<p>I read of another method to avoid spam comments using Flash at this link: <a href="http://www.actionscripthero.com/blog/archives/2004/01/fighting_commen.html" rel="nofollow">http://www.actionscripthero.com/blog/archives/2004/01/fighting_commen.html</a></p>

<p>As long as you do not have your site setup in the most common method, I think you will be able to avoid spam.<br />
</p>]]></description>
<dc:subject>Home</dc:subject>
<dc:creator>Anthony Graddy</dc:creator>
<dc:date>2005-07-07T17:13:03-05:00</dc:date>
</item>

<item rdf:about="http://mt-hacks.com/20041216-trick-the-comment-spammers.html">
<title>Trick the Comment Spammers</title>
<link>http://mt-hacks.com/20041216-trick-the-comment-spammers.html#114313</link>
<description><![CDATA[<p>Yes, Anthony, I agree (mostly).</p>

<p>You will always receive some spam, but using techniques that are only used by a minority can contribute to a significant reduction in spam.</p>

<p>Ps.  As I mentioned at the beginning of this entry, this trick may not work for all browsers.  <a href="http://mt-hacks.com/20041217-discuss-mtdisguisecommenturl-v05-beta.html" rel="nofollow">The javascript version is preferred</a>.</p>]]></description>
<dc:subject>Home</dc:subject>
<dc:creator>Mark Carey</dc:creator>
<dc:date>2005-07-11T06:08:06-05:00</dc:date>
</item>

<item rdf:about="http://mt-hacks.com/20041216-trick-the-comment-spammers.html">
<title>Trick the Comment Spammers</title>
<link>http://mt-hacks.com/20041216-trick-the-comment-spammers.html#197746</link>
<description><![CDATA[<p>Mark thanks for Trick the Comment Spammers i had problems with spam but now know how to fight with it. keep up the good work.</p>

<p>Greetings</p>]]></description>
<dc:subject>Home</dc:subject>
<dc:creator>Pozycjonowanie</dc:creator>
<dc:date>2007-01-13T09:26:29-05:00</dc:date>
</item>

<item rdf:about="http://mt-hacks.com/20041216-trick-the-comment-spammers.html">
<title>Trick the Comment Spammers</title>
<link>http://mt-hacks.com/20041216-trick-the-comment-spammers.html#262357</link>
<description><![CDATA[<p>really thanks for your solution - i thik that it will fix my problems.</p>

<p>greatings from poland.</p>]]></description>
<dc:subject>Home</dc:subject>
<dc:creator>budownictwo</dc:creator>
<dc:date>2007-12-12T09:54:29-05:00</dc:date>
</item>


</rdf:RDF>