1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Movable Type 5.2.3" />
7 <link rel="stylesheet" href="http://defaria.com/blogs/General/styles.css" type="text/css" />
8 <link rel="start" href="http://defaria.com/blogs/General/" title="Home" />
9 <link rel="alternate" type="application/atom+xml" title="Recent Entries" href="http://defaria.com/blogs/General/atom.xml" />
10 <script type="text/javascript" src="http://defaria.com/blogs/General/mt.js"></script>
14 <link rel="prev bookmark" href="http://defaria.com/blogs/General/archives/2005/08/jinzora.html" title="Jinzora" />
15 <link rel="next bookmark" href="http://defaria.com/blogs/General/archives/2005/10/jinzora-getting.html" title="Jinzora: Getting lame to work" />
18 <title>Comment Spam blocking - General</title>
20 <body id="classic-blog" class="mt-entry-archive layout-wtt">
22 <div id="container-inner">
26 <div id="header-inner">
27 <div id="header-content">
30 <div id="header-name"><a href="http://defaria.com/blogs/General/" accesskey="1">General</a></div>
31 <div id="header-description"></div>
40 <div id="content-inner">
44 <div id="alpha-inner">
47 <div id="entry-434" class="entry-asset asset hentry">
48 <div class="asset-header">
49 <h1 id="page-title" class="asset-name entry-title">Comment Spam blocking</h1>
50 <div class="asset-meta">
53 <abbr class="published" title="2005-09-28T13:16:13-08:00">September 28, 2005 1:16 PM</abbr>
60 <div class="asset-content entry-content">
62 <div class="asset-body">
63 <p>Found the following from <a href="http://www.dvorak.org/blog/?p=2904">Dvorak Uncensored</a>:
65 <blockquote><p>Most people who run blogs have issues with comment spam in their blogs and there are all sorts of fixes. Marc Perkel at ctyme.com – my host — was floored, he said, when he realized a simple command to the Apache software would kill most of it — and it does indeed work!</p>
67 <p>Here is the short code running on the ctyme server for my dvorak.org using WordPress-based blogging software. Altering it for other blog software and other blogs should be simple for anyone running Apache.</p>
69 <div class="code"><pre>
70 <location /blog/wp-comments-newpost.php>
72 RewriteCond %{HTTP_REFERER} !^.*dvorak.org/.*
73 RewriteRule ^.* http://www.ctyme.com/comment-spam.html
77 <p>Essentially it makes the basic condition for any post rigid: it has to be coming from a link within the blog itself, the “comment” link. Most spam does not.</p>
79 <p>My spam count on the blog has dropped from 50-100 to 2 per day without any other tricks.</p></blockquote>
84 <div class="asset-footer">
102 <div id="beta-inner">
106 <div class="widget-archive widget-archive-category widget">
107 <h3 class="widget-header">Categories</h3>
108 <div class="widget-content">
116 <div class="widget-archive-monthly widget-archive widget">
117 <h3 class="widget-header">Monthly <a href="http://defaria.com/blogs/General/archives.html">Archives</a></h3>
118 <div class="widget-content">
121 <li><a href="http://defaria.com/blogs/General/archives/2017/07/">July 2017 (1)</a></li>
125 <li><a href="http://defaria.com/blogs/General/archives/2017/04/">April 2017 (1)</a></li>
129 <li><a href="http://defaria.com/blogs/General/archives/2016/11/">November 2016 (1)</a></li>
133 <li><a href="http://defaria.com/blogs/General/archives/2016/05/">May 2016 (1)</a></li>
137 <li><a href="http://defaria.com/blogs/General/archives/2016/03/">March 2016 (1)</a></li>
141 <li><a href="http://defaria.com/blogs/General/archives/2015/10/">October 2015 (1)</a></li>
145 <li><a href="http://defaria.com/blogs/General/archives/2015/01/">January 2015 (2)</a></li>
149 <li><a href="http://defaria.com/blogs/General/archives/2014/11/">November 2014 (1)</a></li>
153 <li><a href="http://defaria.com/blogs/General/archives/2014/02/">February 2014 (1)</a></li>
157 <li><a href="http://defaria.com/blogs/General/archives/2014/01/">January 2014 (1)</a></li>
161 <li><a href="http://defaria.com/blogs/General/archives/2011/03/">March 2011 (1)</a></li>
165 <li><a href="http://defaria.com/blogs/General/archives/2010/11/">November 2010 (1)</a></li>
169 <li><a href="http://defaria.com/blogs/General/archives/2010/10/">October 2010 (1)</a></li>
173 <li><a href="http://defaria.com/blogs/General/archives/2010/06/">June 2010 (4)</a></li>
177 <li><a href="http://defaria.com/blogs/General/archives/2010/04/">April 2010 (1)</a></li>
181 <li><a href="http://defaria.com/blogs/General/archives/2010/03/">March 2010 (4)</a></li>
185 <li><a href="http://defaria.com/blogs/General/archives/2010/02/">February 2010 (7)</a></li>
189 <li><a href="http://defaria.com/blogs/General/archives/2009/05/">May 2009 (1)</a></li>
193 <li><a href="http://defaria.com/blogs/General/archives/2009/04/">April 2009 (2)</a></li>
197 <li><a href="http://defaria.com/blogs/General/archives/2009/01/">January 2009 (1)</a></li>
201 <li><a href="http://defaria.com/blogs/General/archives/2007/04/">April 2007 (1)</a></li>
205 <li><a href="http://defaria.com/blogs/General/archives/2006/11/">November 2006 (1)</a></li>
209 <li><a href="http://defaria.com/blogs/General/archives/2006/09/">September 2006 (2)</a></li>
213 <li><a href="http://defaria.com/blogs/General/archives/2005/12/">December 2005 (1)</a></li>
217 <li><a href="http://defaria.com/blogs/General/archives/2005/10/">October 2005 (1)</a></li>
221 <li><a href="http://defaria.com/blogs/General/archives/2005/09/">September 2005 (1)</a></li>
225 <li><a href="http://defaria.com/blogs/General/archives/2005/08/">August 2005 (1)</a></li>
229 <li><a href="http://defaria.com/blogs/General/archives/2005/03/">March 2005 (1)</a></li>
233 <li><a href="http://defaria.com/blogs/General/archives/2004/02/">February 2004 (6)</a></li>
237 <li><a href="http://defaria.com/blogs/General/archives/2004/01/">January 2004 (1)</a></li>
241 <li><a href="http://defaria.com/blogs/General/archives/2003/11/">November 2003 (2)</a></li>
245 <li><a href="http://defaria.com/blogs/General/archives/2003/10/">October 2003 (5)</a></li>
255 <div class="widget-pages widget">
256 <h3 class="widget-header">Pages</h3>
257 <div class="widget-content">
261 <li class="folder folder-38"><strong>about</strong>
270 <div class="widget-syndication widget">
271 <div class="widget-content">
273 <li><img src="http://defaria.com/mt/mt-static/images/status_icons/feed.gif" alt="Subscribe to feed" width="9" height="9" /> <a href="http://defaria.com/blogs/General/atom.xml">Subscribe to this blog's feed</a></li>
278 <div class="widget-powered widget">
279 <div class="widget-content">
280 <a href="http://www.movabletype.com/"><img src="http://defaria.com/mt/mt-static/images/bug-pbmt-white.png" alt="Powered by Movable Type 5.2.3" width="120" height="75" /></a>
293 <div id="gamma-inner">
294 <div class="widget-search widget">
295 <h3 class="widget-header">Search</h3>
296 <div class="widget-content">
297 <form method="get" action="http://defaria.com/mt/mt-search.cgi">
298 <input type="text" id="search" class="ti" name="search" value="" />
300 <input type="hidden" name="IncludeBlogs" value="1" />
302 <input type="hidden" name="limit" value="20" />
303 <input type="submit" accesskey="4" value="Search" />
308 <div class="widget-about-this-page widget">
309 <h3 class="widget-header">
315 <div class="widget-content">
318 <p class="first">This page contains a single entry by published on <em>September 28, 2005 1:16 PM</em>.</p>
320 <p><a href="http://defaria.com/blogs/General/archives/2005/08/jinzora.html">Jinzora</a> was the previous entry in this blog.</p>
323 <p><a href="http://defaria.com/blogs/General/archives/2005/10/jinzora-getting.html">Jinzora: Getting lame to work</a> is the next entry in this blog.</p>
330 <p>Find recent content on the <a href="http://defaria.com/blogs/General/">main index</a> or look in the <a href="http://defaria.com/blogs/General/archives.html">archives</a> to find all content.</p>
347 <div id="footer-inner">
348 <div id="footer-content">
349 <div class="widget-powered widget">
350 <div class="widget-content">
351 Powered by <a href="http://www.movabletype.org/">Movable Type</a>