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 3.2" />
8 <link rel="stylesheet" href="http://defaria.com/blogs/General/styles-site.css" type="text/css" />
9 <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/General/atom.xml" />
10 <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/General/index.xml"$>" />
12 <title>General: September 2005 Archives</title>
14 <link rel="start" href="http://defaria.com/blogs/General/" title="Home" />
15 <link rel="prev" href="http://defaria.com/blogs/General/archives/2005_08.html" title="August 2005" />
16 <link rel="next" href="http://defaria.com/blogs/General/archives/2005_10.html" title="October 2005" />
18 <body class="layout-two-column-right">
20 <div id="container-inner" class="pkg">
23 <div id="banner-inner" class="pkg">
24 <h1 id="banner-header"><a href="http://defaria.com/blogs/General/" accesskey="1">General</a></h1>
25 <h2 id="banner-description"></h2>
30 <div id="pagebody-inner" class="pkg">
32 <div id="alpha-inner" class="pkg">
34 <p class="content-nav">
35 <a href="http://defaria.com/blogs/General/archives/2005_08.html">« August 2005</a> |
36 <a href="http://defaria.com/blogs/General/">Main</a>
37 | <a href="http://defaria.com/blogs/General/archives/2005_10.html">October 2005 »</a>
42 <h2 class="date-header">September 28, 2005</h2>
44 <div class="entry" id="entry-434">
45 <h3 class="entry-header">Comment Spam blocking</h3>
46 <div class="entry-content">
47 <div class="entry-body">
48 <p>Found the following from <a href="http://www.dvorak.org/blog/?p=2904">Dvorak Uncensored</a>:
50 <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>
52 <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>
54 <div class="code"><pre>
55 <location /blog/wp-comments-newpost.php>
57 RewriteCond %{HTTP_REFERER} !^.*dvorak.org/.*
58 RewriteRule ^.* http://www.ctyme.com/comment-spam.html
62 <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>
64 <p>My spam count on the blog has dropped from 50-100 to 2 per day without any other tricks.</p></blockquote>
66 <p class="entry-footer">
67 <span class="post-footers">Posted by Andrew DeFaria at 01:16 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/General/archives/000434.html">Permalink</a>
80 <div id="beta-inner" class="pkg">
81 <div class="module-search module">
82 <h2 class="module-header">Search</h2>
83 <div class="module-content">
84 <form method="get" action="http://defaria.com/mt/mt-search.cgi">
85 <input type="hidden" name="IncludeBlogs" value="1" />
86 <label for="search" accesskey="4">Search this blog:</label><br />
87 <input id="search" name="search" size="20" />
88 <input type="submit" value="Search" />
95 <div class="module-archives module">
96 <h2 class="module-header"><a href="http://defaria.com/blogs/General/archives.html">Archives</a></h2>
97 <div class="module-content">
98 <ul class="module-list">
99 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2011_03.html">March 2011</a></li>
102 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_11.html">November 2010</a></li>
105 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_10.html">October 2010</a></li>
108 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_06.html">June 2010</a></li>
111 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_04.html">April 2010</a></li>
114 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_03.html">March 2010</a></li>
117 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2010_02.html">February 2010</a></li>
120 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2009_05.html">May 2009</a></li>
123 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2009_04.html">April 2009</a></li>
126 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2009_01.html">January 2009</a></li>
129 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2007_04.html">April 2007</a></li>
132 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2006_11.html">November 2006</a></li>
135 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2006_09.html">September 2006</a></li>
138 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2005_12.html">December 2005</a></li>
141 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2005_10.html">October 2005</a></li>
144 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2005_09.html">September 2005</a></li>
147 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2005_08.html">August 2005</a></li>
150 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2005_03.html">March 2005</a></li>
153 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2004_02.html">February 2004</a></li>
156 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2004_01.html">January 2004</a></li>
159 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2003_11.html">November 2003</a></li>
162 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/2003_10.html">October 2003</a></li>
169 <div class="module-archives module">
170 <h2 class="module-header">Recent Posts</h2>
171 <div class="module-content">
172 <ul class="module-list">
173 <li class="module-list-item"><a href="http://defaria.com/blogs/General/archives/000434.html">Comment Spam blocking</a></li>
179 <div class="module-syndicate module">
180 <div class="module-content">
181 <a href="http://defaria.com/blogs/General/atom.xml">Subscribe to this blog's feed</a><br />
182 [<a href="http://www.sixapart.com/about/feeds">What is this?</a>]
188 <div class="module-powered module">
189 <div class="module-content">
190 Powered by<br /><a href="http://www.sixapart.com/movabletype/">Movable Type 3.2</a>