<?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>Web Cash &#187; spam</title>
	<atom:link href="http://www.earn-web-cash.com/tag/spam/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.earn-web-cash.com</link>
	<description>Writing, Designing, and Making Money Online</description>
	<lastBuildDate>Sun, 04 Dec 2011 22:52:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>What Is the Point of this Spam Comment?</title>
		<link>http://www.earn-web-cash.com/2008/02/29/useless-spam-comment/</link>
		<comments>http://www.earn-web-cash.com/2008/02/29/useless-spam-comment/#comments</comments>
		<pubDate>Sat, 01 Mar 2008 00:32:52 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[Sundry Musings]]></category>
		<category><![CDATA[akismet]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/02/29/useless-spam-comment/</guid>
		<description><![CDATA[Every couple of days, I quickly browse through the Akismet spam bin to see if any real comments got sucked in. There usually aren&#8217;t any. However, I&#8217;ve been struck recently by seemingly pointless spam comments. They are clearly generated by a bot, but they don&#8217;t include any kind of backlink&#8230; what&#8217;s the purpose of that? [...]]]></description>
			<content:encoded><![CDATA[<p>Every couple of days, I quickly browse through the Akismet spam bin to see if any real comments got sucked in.  There usually aren&#8217;t any.</p>
<p>However, I&#8217;ve been struck recently by seemingly pointless spam comments.  They are clearly generated by a bot, but they don&#8217;t include any kind of backlink&#8230; what&#8217;s the purpose of that?<br />
<span id="more-165"></span></p>
<h4>Pointless Spam Comment from Swiss Dude</h4>
<p>I&#8217;ve been getting a lot of spam comments lately that follow a simple pattern.  They are clearly generated by some sort of script that searches for a random phrase, picks a result, and then automatically submits a comment based on the title information in the page.</p>
<p>Here&#8217;s a sample comment.</p>
<blockquote><p>Hey! I came across your blog posting after searching for and your post on Badge | Web Cash makes an interesting read. Thanks for sharing. I will research more next Friday when I have the day off.</p></blockquote>
<p>It seems that a phrase should be inserted in between &#8220;searching for&#8221; and &#8220;and your post.&#8221;  Another dead give away that this is a bot is that it mentions my post on &#8220;Badge | Web Cash.&#8221;</p>
<p>It&#8217;s clearly copied right out of the title tag for the pages.  These include the blog name (Web Cash) at the end, where-as the on-page titles don&#8217;t.  And no human in his right mind would reference a post title like that.</p>
<p>Here&#8217;s another example comment, which seems to have gone through the bot script better.</p>
<blockquote><p>Hello webmaster I found your blog on Google while searching for background check and your post regarding Modify a WordPress RSS Feed Widget with Rel=Nofollow | Web Cash looks very interesting for me. Ive bookmarked the post in my digg account.</p></blockquote>
<p>Again, the title appears verbatim from the <code>&lt;title&gt; element</code>.  The name that is used also appears to line up with the search phrase used (in this case, background check).  </p>
<p>So I guess the script is designed to take a phrase you are trying to optimize for, search for that phrase, and spam all the results with a comment.</p>
<h4>But Some Comments Have No Link&#8230;</h4>
<p>Some of these comments have a link filled into the URI section.  This is logical.  If a bot is going to spider through my site and dump random comments it ought to leave a link back to the original site&#8230; or it&#8217;s just wasting it&#8217;s time.</p>
<p>Yet a lot of these comments (all seemingly coming from &#8220;Swiss Dude&#8221;) have no link attached to them.  I guess maybe the guy botched some of the settings and screwed up the script.</p>
<p>Ah well.  All I can say is &#8211; thank goodness for Akismet.  If I had to wade through all these comments on a daily (hourly?) basis, I&#8217;d probably have commenting turned off.  As it stands, Akismet picks up about 95% of the trash that comes in &#8211; and the rest is inane enough that I just let it go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/02/29/useless-spam-comment/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Send E-Mail in PHP: A &#8220;Share This&#8221; Form</title>
		<link>http://www.earn-web-cash.com/2008/02/06/send-email-php/</link>
		<comments>http://www.earn-web-cash.com/2008/02/06/send-email-php/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 01:36:52 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[e-mail]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/02/06/send-email-php/</guid>
		<description><![CDATA[This question comes up a lot in forums &#8211; how do you send e-mail in PHP? There are plenty of reasons you&#8217;d want to do this. Perhaps you want to send a newsletter to your users. Or you want people to be able to leave feedback through e-mail. Or you just want your users to [...]]]></description>
			<content:encoded><![CDATA[<p>This question comes up a lot in forums &#8211; how do you send e-mail in PHP?</p>
<p>There are plenty of reasons you&#8217;d want to do this.  Perhaps you want to send a newsletter to your users.  Or you want people to be able to leave feedback through e-mail.  Or you just want your users to be able to e-mail the page (or a link to it) to a friend.</p>
<p>How do we do this?  The <code>mail()</code> function.<br />
<span id="more-101"></span><br />
While there are more in depth and robust ways to send e-mail with PHP, the simplest method is to use the mail() function.  In most cases this is all you need to send plain text e-mail to a number of recipients.</p>
<p>Let&#8217;s see how this function works by creating a form that lets the user &#8220;Share This Article&#8221; &#8211; e-mail a link of the current article to a friend.</p>
<h5>Examining the Mail Function</h5>
<p>First, we&#8217;ll take a look at the mail function.  It&#8217;s pretty simple.</p>
<p><code>bool mail($to, $subject, $content, $headers)</code></p>
<p>mail() returns a boolean value &#8211; true for success, false for failure.</p>
<p>The first three parameters are pretty simple.  $to is the sending e-mail address (your user).  $subject is the subject line of your message (one line &#8211; no linebreaks!).  $content is a string containing the text of the message.</p>
<p>$headers is optional.  It can be used to add additional headers &#8211; such as cc: or bcc: lines.  You can also use the $headers to add a &#8220;From:&#8221; &#8211; otherwise the standard sending e-mail addressing in the php.ini file is used.</p>
<h5>Building the Form</h5>
<p>Before we get to the script processing, let&#8217;s build a quick HTML form to get some user input.</p>
<p>The form should give us the sender&#8217;s e-mail address and name along with the recipient&#8217;s e-mail address and name.  For now, we&#8217;ll hard-code the subject and message, although this could be gathered in the form as well.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">form</span> <span style="color: #000066;">method</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;post&quot;</span> <span style="color: #000066;">action</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;share.php&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sendname&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sendname&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sendaddress&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sendaddress&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;recname&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;recname&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;recaddress&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;recaddress&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Send Message&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span></pre></div></div>

<p>That should gather the four pieces of input for us.</p>
<h5>Processing the Input and Sending the Message</h5>
<p>Now we can add build a quick php snippet to process the form input, send it to the mail() function, and let the user know if the mail was sent or not.  For the sake of brevity, I won&#8217;t include a lot of error checking and validation &#8211; but you should if you&#8217;re implementing this for real.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$sendName</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sendname'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sendAddress</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sendaddress'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$recName</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'recname'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$recAddress</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'recaddress'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//  Get the URL of the page we're on</span>
<span style="color: #000088;">$pageURL</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SERVER_NAME'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//  Build the message</span>
<span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Hey <span style="color: #006699; font-weight: bold;">$recName</span>,
&nbsp;
I found this &lt;a href='<span style="color: #006699; font-weight: bold;">$pageURL</span>'&gt;cool article&lt;/a&gt; on Web Cash.  Why don't you read it and tell me what you think.
&nbsp;
Later,
- <span style="color: #006699; font-weight: bold;">$sendName</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$to</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$recAddress</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$subject</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Cool Article on Web Cash - Check It Out!&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$headers</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;From: <span style="color: #006699; font-weight: bold;">$sendAddress</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">mail</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$to</span><span style="color: #339933;">,</span> <span style="color: #000088;">$subject</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #339933;">,</span> <span style="color: #000088;">$headers</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Mail was sent successfully!&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>  <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;There was an error.  Doh!&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>And that&#8217;s about all there is to it&#8230;</p>
<h5>Jazzing It Up</h5>
<p>Once you understand how the mail() function works, you can improve the form a lot.</p>
<p>You could allow the user to input their own message, using a textarea.  You could also allow them to enter a custom subject in a text field.</p>
<p>You could allow multiple recipients with extra text fields.  To do this, separate each e-mail address with a , and a space &#8211; like &#8220;joe@bob.com, bob@joe.com&#8221; &#8211; in the $to variable.</p>
<p>A few words of caution, though.</p>
<p>First, you&#8217;ll often run into trouble using the mail() function on a local server.  If you do, I&#8217;d suggest testing your script on a remote server before you pull your hair out for no reason.</p>
<p>Second, beware of spam.  This is a good exercise to go through to understand the mail() function, but you should be aware that people do use forms to spam people.  You may want to find a captcha module and use that to verify your users are real people &#8211; or you could inadvertently be spamming the world with email about your articles.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/02/06/send-email-php/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Huzzah Akismet!  Blocking Spam Comments All Day</title>
		<link>http://www.earn-web-cash.com/2008/01/29/akismet-spam/</link>
		<comments>http://www.earn-web-cash.com/2008/01/29/akismet-spam/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 03:39:21 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[Online Tools]]></category>
		<category><![CDATA[Sundry Musings]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[trackback]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/01/29/huzzah-akismet-blocking-spam-comments-all-day/</guid>
		<description><![CDATA[You know your site is finally getting around a bit when you start getting comments.  Spam comments.

I started a (now defunct) website last year, powered by <a href="http://www.wordpress.org">Wordpress</a>.  It never got too popular, and in the beginning I was excited every time I got a "New Comment" or "New Trackback" e-mail.  Then I realized they were mostly all spam.]]></description>
			<content:encoded><![CDATA[<p>You know your site is finally getting around a bit when you start getting comments.  Spam comments.</p>
<p>I started a (now defunct) website last year, powered by <a href="http://www.wordpress.org">WordPress</a>.  It never got too popular, and in the beginning I was excited every time I got a &#8220;New Comment&#8221; or &#8220;New Trackback&#8221; e-mail.  Then I realized they were mostly all spam.<br />
<span id="more-86"></span><br />
A few minutes ago, I checked my e-mail and had a spam comment in my inbox.  I thought, &#8220;Ahh, here comes the spam.&#8221;</p>
<p>When I logged into the dashboard, I spammed the comment and was about to move away.  Then I happened to look at the dashboard again &#8211; and I remembered that I had set up Akismet this time around.</p>
<p>I just added the widget to the left sidebar because I was so impressed.  Akismet apparently blocked 84 spam comments &#8211; and this was the first one that got through.  I&#8217;d say that&#8217;s pretty impressive.</p>
<p>If you&#8217;re running a WordPress blog, or something else that uses comments and can utilize an Akismet plug-in, <strong>do so</strong>.  There&#8217;s nothing more frustrating than wading through spam comments and trackbacks all day long.</p>
<p>Akismet is apparently pretty effective at cutting them down.  A few of them might sift through, but you can never get rid of <strong>all</strong> the spam.  So be happy if you can eliminate 84/85.</p>
<p>You can download the <a href="http://codex.wordpress.org/Akismet">Akismet plugin for WordPress</a>, but all new builds come with Akismet pre-installed.  All you have to do is fill in the Akismet API number &#8211; which you can get for free with a WordPress account.</p>
<p>Happy spam-free comment logs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/01/29/akismet-spam/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

