<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brain Goo &#187; spam</title>
	<atom:link href="http://www.popmartian.com/tipsntricks/category/spam/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.popmartian.com/tipsntricks</link>
	<description>Carpe Crap 'em</description>
	<lastBuildDate>Thu, 20 May 2010 17:52:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>RBLs with Exim4 (debian friendly)</title>
		<link>http://www.popmartian.com/tipsntricks/2008/01/11/rbls-with-exim4-debian-friendly/</link>
		<comments>http://www.popmartian.com/tipsntricks/2008/01/11/rbls-with-exim4-debian-friendly/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 22:44:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Email Servers]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[How Tos]]></category>
		<category><![CDATA[Mail Post]]></category>
		<category><![CDATA[RBL]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.popmartian.com/tipsntricks/2008/01/11/rbls-with-exim4-debian-friendly/</guid>
		<description><![CDATA[Denying connections based on RBLs is a snap with Exim4.  Most confusion is related to ACLs and where the definition sits.
The fastest way to deny based on RBL is to add it to whatever ACL you specify in acl_smtp_rcpt
However, you MUST put the declaration AFTER any relay allow definitions.  ACLs are based on [...]]]></description>
			<content:encoded><![CDATA[<p>Denying connections based on RBLs is a snap with Exim4.  Most confusion is related to ACLs and where the definition sits.</p>
<p>The fastest way to deny based on RBL is to add it to whatever ACL you specify in acl_smtp_rcpt</p>
<p>However, you <strong>MUST</strong> put the declaration AFTER any relay allow definitions.  ACLs are based on first-match which means they run in order and stop when they hit a match.  Implicit allow.</p>
<p>Here is my ACL declared as acl_check_rcpt</p>
<p><code></p>
<pre>
acl_check_rcpt:
  accept  hosts = :
  deny    local_parts   = ^.*[@%!/|] : ^\\.
  accept  local_parts   = postmaster
          domains       = +local_domains
  require verify        = sender
  accept  domains       = +local_domains
          endpass
          message       = unknown user
          verify        = recipient
  accept  domains       = +relay_to_domains
          endpass
          message       = unrouteable address
          verify        = recipient
  accept  hosts         = +relay_from_hosts
  accept  authenticated = *
  deny    dnslists = zen.spamhaus.org
          message = Message rejected because $sender_fullhost is blacklisted at $dnslist_domain see $dnslist_text
  deny    message       = relay not permitted
</pre>
<p></code></p>
<p>The RBL definition is toward the bottom, after we allow everyone in that we want in.  This lets people relay via SMTP-AUTH or explicit allow before checking the RBL.  If they aren&#8217;t allowed via anything we allow, then we check the RBL and die with a nice message.</p>
<p>Adverts:<br />
<a href="http://www.amazon.com/gp/product/0954452909?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0954452909">The Exim SMTP Mail Server</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0954452909" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0596000987?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0596000987">Exim: The Mail Transfer Agent</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0596000987" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0954452976?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0954452976">The Exim SMTP Mail Server: Official Guide for Release 4</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0954452976" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0131478230?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0131478230">A Practical Guide to Linux(R) Commands, Editors, and Shell Programming</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0131478230" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0596005652?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0596005652">Understanding the Linux Kernel</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0596005652" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0596527209?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0596527209">Ubuntu Hacks: Tips &#038; Tools for Exploring, Using, and Tuning Linux (Hacks)</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0596527209" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0596006284?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0596006284">Linux Pocket Guide</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0596006284" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<img src="http://www.popmartian.com/tipsntricks/?ak_action=api_record_view&id=20&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.popmartian.com/tipsntricks/2008/01/11/rbls-with-exim4-debian-friendly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stop spam-bots in PHPBB 2.x.  Cheap, easy BOT stopper</title>
		<link>http://www.popmartian.com/tipsntricks/2007/06/05/stop-spam-bots-in-phpbb-cheap-easy-bot-stopper/</link>
		<comments>http://www.popmartian.com/tipsntricks/2007/06/05/stop-spam-bots-in-phpbb-cheap-easy-bot-stopper/#comments</comments>
		<pubDate>Tue, 05 Jun 2007 22:21:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How Tos]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpbb]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.popmartian.com/tipsntricks/2007/06/05/stop-auto-bots-in-phpbb-cheap-easy-bot-stopper/</guid>
		<description><![CDATA[WARNING!  As of this writing, this information pertains to the 2.x branch of phpBB.  I strongly recommend you upgrade to the latest phpBB.  As of April 28, 2009 that version is 3.0.4.  Please see http://phpbb.com
NOTICE: I have an updated phpBB patch for the 3.0.x version of phpBB.  Please search this blog for phpBB or look [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>WARNING!  As of this writing, this information pertains to the 2.x branch of phpBB.  I strongly recommend you upgrade to the latest phpBB.  As of April 28, 2009 that version is 3.0.4.  Please see <a href="http://phpbb.com">http://phpbb.com</a></p>
<p>NOTICE: I have an updated phpBB patch for the 3.0.x version of phpBB.  Please search this blog for phpBB or look at the phpbb category for more tips and tricks.</p></blockquote>
<p>In your active template file profile_add_body.tpl find the line:</p>
<p><code> </code></p>
<pre>&lt;!-- Visual Confirmation --&gt;</pre>
<p><strong>ABOVE</strong> that line, add:</p>
<pre>&lt;!-- BOT HACK --&gt;
   &lt;tr&gt;
      &lt;td class="row1"&gt;&lt;span class="gen"&gt;Are you a robot? *&lt;/span&gt;&lt;/td&gt;
      &lt;td class="row2"&gt;&lt;select class="post" name="imarobot"&gt;
      &lt;option value="yes"&gt;yes&lt;/option&gt;
      &lt;option value="yes"&gt;of course&lt;/option&gt;
      &lt;option value="nope"&gt;Humans choose this one&lt;/option&gt;
      &lt;/select&gt; &lt;span class="gen"&gt;Bot buster... choose the right one.&lt;/span&gt;&lt;/td&gt;
   &lt;/tr&gt;
&lt;!-- BOT HACK --&gt;</pre>
<p>In your forum file includes/usercp_register.php find this section of code:</p>
<p><code> </code></p>
<pre>   else if ( $mode == 'register' )
   {
      if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) )
      {
         $error = TRUE;
         $error_msg .= ( ( isset($error_msg) ) ? '&lt;br /&gt;' : '' ) . $lang['Fields_empty'];
      }</pre>
<p><strong>AFTER</strong> that part, add this:</p>
<p><code> </code></p>
<pre>// BOT HACK
         if ( empty($HTTP_POST_VARS['imarobot']) )
         {
            die('NO BOTS');
         }
         else
         {
            if ($HTTP_POST_VARS['imarobot'] != 'nope')
            {
               die('NO BOTS');
            }
         }
// BOT HACK</pre>
<p>And there you go.</p>
<img src="http://www.popmartian.com/tipsntricks/?ak_action=api_record_view&id=9&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.popmartian.com/tipsntricks/2007/06/05/stop-spam-bots-in-phpbb-cheap-easy-bot-stopper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
