Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000433.html
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">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 3.2" />
7
8    <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9    <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml" />
11
12    <title>Status for Andrew DeFaria: Comment Spam blocking</title>
13
14    <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15    <link rel="prev" href="http://defaria.com/blogs/Status/archives/000432.html" title="Code Page/rgy_switchover" />
16    
17
18    
19
20    
21
22    <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
23 </head>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
25    <div id="container">
26       <div id="container-inner" class="pkg">
27
28          <div id="banner">
29             <div id="banner-inner" class="pkg">
30                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
31                <h2 id="banner-description">Searchable status reports and work log</h2>
32             </div>
33          </div>
34
35          <div id="pagebody">
36             <div id="pagebody-inner" class="pkg">
37                <div id="alpha">
38                   <div id="alpha-inner" class="pkg">
39
40                      <p class="content-nav">
41                         <a href="http://defaria.com/blogs/Status/archives/000432.html">&laquo; Code Page/rgy_switchover</a> |
42                         <a href="http://defaria.com/blogs/Status/">Main</a>
43                         
44                      </p>
45
46                      <a id="a000433"></a>
47                      <div class="entry" id="entry-433">
48                         <h3 class="entry-header">Comment Spam blocking</h3>
49                         <div class="entry-content">
50                            <div class="entry-body">
51                               <p>Found the following from <a href="http://www.dvorak.org/blog/?p=2904">Dvorak Uncensored</a>:
52
53 <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>
54
55 <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>
56
57 <div class="code"><pre>
58     < location /blog/wp-comments-newpost.php >
59     RewriteEngine On
60     RewriteCond %{HTTP_REFERER} !^.*dvorak.org/.*
61     RewriteRule ^.* http://www.ctyme.com/comment-spam.html
62     < /location > 
63 </pre></div>
64
65 <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>
66
67 <p>My spam count on the blog has dropped from 50-100 to 2 per day without any other tricks.</p></blockquote>
68                            </div>
69                            <div id="more" class="entry-more">
70                               
71                            </div>
72                         </div>
73                         <p class="entry-footer">
74                            <span class="post-footers">Posted by Andrew DeFaria on September 28, 2005 01:11 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000433.html">Permalink</a>
75                         </p>
76                      </div>
77
78                      
79
80                      
81                   </div>
82                </div>
83             </div>
84          </div>
85       </div>
86    </div>
87 </body>
88 </html>