1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html
3 xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard"> <head>
4 <meta http-equiv="Content-Type" content="text/html;
6 <meta name="generator" content="Movable Type 3.2" />
8 <link rel="stylesheet" href="http://defaria.com/blogs/General/styles-site.css"
10 <link rel="alternate" type="application/atom+xml" title="Atom"
11 href="http://defaria.com/blogs/General/atom.xml" />
12 <link rel="alternate" type="application/rss+xml" title="RSS 2.0"
13 href="http://defaria.com/blogs/General/index.xml" />
15 <title>General: Comment Spam blocking</title>
17 <link rel="start" href="http://defaria.com/blogs/General/" title="Home" />
18 <link rel="prev" href="http://defaria.com/blogs/General/archives/000412.html"
20 <link rel="next" href="http://defaria.com/blogs/General/archives/000442.html"
21 title="Jinzora: Getting lame to work" />
27 <script type="text/javascript"
28 src="http://defaria.com/blogs/General/mt-site.js"></script> </head> <body
29 class="layout-two-column-right"
30 onload="individualArchivesOnLoad(commenter_name)">
32 <div id="container-inner" class="pkg">
35 <div id="banner-inner" class="pkg">
36 <h1 id="banner-header"><a href="http://defaria.com/blogs/General/"
37 accesskey="1">General</a></h1>
38 <h2 id="banner-description"></h2>
43 <div id="pagebody-inner" class="pkg">
45 <div id="alpha-inner" class="pkg">
47 <p class="content-nav">
49 href="http://defaria.com/blogs/General/archives/000412.html">«
51 <a href="http://defaria.com/blogs/General/">Main</a>
53 href="http://defaria.com/blogs/General/archives/000442.html">Jinzora: Getting lame to work
58 <div class="entry" id="entry-434">
59 <h3 class="entry-header">Comment Spam blocking</h3>
60 <div class="entry-content">
61 <div class="entry-body">
62 <p>Found the following from <a href="http://www.dvorak.org/blog/?p=2904">Dvorak Uncensored</a>:
64 <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>
66 <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>
68 <div class="code"><pre>
69 <location /blog/wp-comments-newpost.php>
71 RewriteCond %{HTTP_REFERER} !^.*dvorak.org/.*
72 RewriteRule ^.* http://www.ctyme.com/comment-spam.html
76 <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>
78 <p>My spam count on the blog has dropped from 50-100 to 2 per day without any other tricks.</p></blockquote>
80 <div id="more" class="entry-more">
84 <p class="entry-footer">
85 <span class="post-footers">Posted by
87 September 28, 2005 01:16 PM</span> <span
88 class="separator">|</span> <a
90 href="http://defaria.com/blogs/General/archives/000434.html">Permalink</a>
100 <div id="beta-inner" class="pkg">
101 <div class="module-search module">
102 <h2 class="module-header">Search</h2>
103 <div class="module-content">
105 action="http://defaria.com/mt/mt-search.cgi">
106 <input type="hidden" name="IncludeBlogs"
108 <label for="search" accesskey="4">Search
109 this blog:</label><br />
110 <input id="search" name="search"
112 <input type="submit" value="Search" />
119 <div class="module-archives module">
120 <h2 class="module-header"><a
121 href="http://defaria.com/blogs/General/archives.html">Archives</a></h2>
122 <div class="module-content">
125 <li class="module-list-item"><a
126 href="http://defaria.com/blogs/General/archives/2011_03.html">March 2011</a></li>
129 <li class="module-list-item"><a
130 href="http://defaria.com/blogs/General/archives/2010_11.html">November 2010</a></li>
133 <li class="module-list-item"><a
134 href="http://defaria.com/blogs/General/archives/2010_10.html">October 2010</a></li>
137 <li class="module-list-item"><a
138 href="http://defaria.com/blogs/General/archives/2010_06.html">June 2010</a></li>
141 <li class="module-list-item"><a
142 href="http://defaria.com/blogs/General/archives/2010_04.html">April 2010</a></li>
145 <li class="module-list-item"><a
146 href="http://defaria.com/blogs/General/archives/2010_03.html">March 2010</a></li>
149 <li class="module-list-item"><a
150 href="http://defaria.com/blogs/General/archives/2010_02.html">February 2010</a></li>
153 <li class="module-list-item"><a
154 href="http://defaria.com/blogs/General/archives/2009_05.html">May 2009</a></li>
157 <li class="module-list-item"><a
158 href="http://defaria.com/blogs/General/archives/2009_04.html">April 2009</a></li>
161 <li class="module-list-item"><a
162 href="http://defaria.com/blogs/General/archives/2009_01.html">January 2009</a></li>
165 <li class="module-list-item"><a
166 href="http://defaria.com/blogs/General/archives/2007_04.html">April 2007</a></li>
169 <li class="module-list-item"><a
170 href="http://defaria.com/blogs/General/archives/2006_11.html">November 2006</a></li>
173 <li class="module-list-item"><a
174 href="http://defaria.com/blogs/General/archives/2006_09.html">September 2006</a></li>
177 <li class="module-list-item"><a
178 href="http://defaria.com/blogs/General/archives/2005_12.html">December 2005</a></li>
181 <li class="module-list-item"><a
182 href="http://defaria.com/blogs/General/archives/2005_10.html">October 2005</a></li>
185 <li class="module-list-item"><a
186 href="http://defaria.com/blogs/General/archives/2005_09.html">September 2005</a></li>
189 <li class="module-list-item"><a
190 href="http://defaria.com/blogs/General/archives/2005_08.html">August 2005</a></li>
193 <li class="module-list-item"><a
194 href="http://defaria.com/blogs/General/archives/2005_03.html">March 2005</a></li>
197 <li class="module-list-item"><a
198 href="http://defaria.com/blogs/General/archives/2004_02.html">February 2004</a></li>
201 <li class="module-list-item"><a
202 href="http://defaria.com/blogs/General/archives/2004_01.html">January 2004</a></li>
205 <li class="module-list-item"><a
206 href="http://defaria.com/blogs/General/archives/2003_11.html">November 2003</a></li>
209 <li class="module-list-item"><a
210 href="http://defaria.com/blogs/General/archives/2003_10.html">October 2003</a></li>
217 <div class="module-archives module">
218 <h2 class="module-header">Recent Posts</h2>
219 <div class="module-content">
220 <ul class="module-list">
221 <li class="module-list-item"><a
222 href="http://defaria.com/blogs/General/archives/000746.html">California</a></li>
223 <li class="module-list-item"><a
224 href="http://defaria.com/blogs/General/archives/000745.html">Point people more directly</a></li>
225 <li class="module-list-item"><a
226 href="http://defaria.com/blogs/General/archives/000744.html">Comcast speed</a></li>
227 <li class="module-list-item"><a
228 href="http://defaria.com/blogs/General/archives/000739.html">More Playon Fun</a></li>
229 <li class="module-list-item"><a
230 href="http://defaria.com/blogs/General/archives/000736.html">How not to run a company</a></li>
231 <li class="module-list-item"><a
232 href="http://defaria.com/blogs/General/archives/000734.html">How to get your mic working on Ubuntu 9.10</a></li>
233 <li class="module-list-item"><a
234 href="http://defaria.com/blogs/General/archives/000729.html">Cell phones - Not up to snuff!</a></li>
235 <li class="module-list-item"><a
236 href="http://defaria.com/blogs/General/archives/000728.html">Stupid is as stupid does</a></li>
237 <li class="module-list-item"><a
238 href="http://defaria.com/blogs/General/archives/000723.html">Priority Queues...</a></li>
239 <li class="module-list-item"><a
240 href="http://defaria.com/blogs/General/archives/000722.html">Broken DNS</a></li>
246 <div class="module-syndicate module">
247 <div class="module-content">
248 <a href="http://defaria.com/blogs/General/atom.xml">Subscribe
249 to this blog's feed</a><br />
251 href="http://www.sixapart.com/about/feeds">What
258 <div class="module-powered module">
259 <div class="module-content">
261 href="http://www.sixapart.com/movabletype/">Movable