<rss version="2.0">
		<channel>
			<title>Plogger Support Forum - Aditional comment SPAM protections (next to captcha)</title>
			<lastBuildDate>Tue, 17 Nov 2026 04:11:18 +0000</lastBuildDate>
			<link>http://www.plogger.org/forum/</link>
			<description></description>
			<generator>Lussumo Vanilla 1.1.10</generator>
			<item>
		<title>Aditional comment SPAM protections (next to captcha)</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=3446&amp;Focus=13494#Comment_13494</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=3446&amp;Focus=13494#Comment_13494</guid>
		<pubDate>Tue, 23 Nov 2010 06:50:23 +0000</pubDate>
		<author>floriske.nl</author>
		<description>
			<![CDATA[Eventhough I'm using the captcha I was still getting spam in my comments section.<br /><br />To get rid of most of this I added a few extra pieces of code I also use in e-mail scripts etc. <br /><br />First of all the plogger/plog-comment.php file:<br /><br />at the start of the source code (after the &lt;?php of course) add:<br /><br /><code >//check if the data comes form the comment form's POST request<br />if(isset($_POST['submit'])) <br />//if so, start the comment script<br />{<br /><br /></code><br /><br />At the end of the source code (just before the ?>) add:<br /><br /><code >}<br />//end of the comment script<br /><br />//if the data does not come form the comment form's POST request<br />else<br />{<br />die(&quot;&lt;html&gt;&lt;head&gt;<br />	&lt;title&gt;403 Forbidden&lt;/title&gt;<br />	&lt;/head&gt;&lt;body&gt;<br />	&lt;h1&gt;Forbidden&lt;/h1&gt;<br />	&lt;p&gt;You don't have permission to directly access this page!&lt;/p&gt;<br />	&lt;/body&gt;&lt;/html&gt;<br />	&quot;);<br />}<br /><br />?&gt;</code><br /><br />This does an extra check to see if the posted data is actually coming from the comment form instead of direct injection by a spam bot.<br /><br />A second extra precaution would be to hide the comment form's submit button in a javacript document.write.<br /><br />A lot of spam bots use text based browsing and can't handle javascript, so if we write the submit button into a piece of javacript code they can't submit the form. The downside to this if people use a text based browser (a bit old fashioned imho) they can't submit a comment either.<br /><br />In your theme's comment.php file<br /><br />Replace<br /><br /><code ><br />&lt;p&gt;&lt;input class=&quot;submit&quot; name=&quot;submit&quot; type=&quot;submit&quot; tabindex=&quot;5&quot; value=&quot;&lt;?php echo plog_tr('Post Comment'); ?&gt;&quot; /&gt;&lt;/p&gt;<br /></code><br /><br />by<br /><br /><code >&lt;p&gt;<br />&lt;script language=&quot;JavaScript&quot;&gt;<br />	document.write(&quot;&lt;input class=\&quot;submit\&quot; name=\&quot;submit\&quot; type=\&quot;submit\&quot; tabindex=\&quot;5\&quot; value=\&quot;&lt;?php echo plog_tr('Post Comment'); ?&gt;\&quot; /&gt;&quot;);<br />&lt;/script&gt;<br />&lt;/p&gt;<br /></code>]]>
		</description>
	</item>
	<item>
		<title>Aditional comment SPAM protections (next to captcha)</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=3446&amp;Focus=13508#Comment_13508</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=3446&amp;Focus=13508#Comment_13508</guid>
		<pubDate>Wed, 24 Nov 2010 21:51:02 +0000</pubDate>
		<author>nikeair01</author>
		<description>
			<![CDATA[There are so many ways to market your affiliate programs, especially online and new techniques are around every corner. The biggest decision you will have to make is which programs are for you and what is the best way for you to promote them.&lt;a href=&quot;http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-corchet-bottes-ugg-cheap-en-cafe-couleur-p-502.html&quot;&gt; Bottes Ugg Cheap En Cafe Couleur &lt;/a&gt;<br />&lt;a href=&quot;http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-corchet-bottes-ugg-discount-en-noir-p-501.html&quot;&gt; Bottes Ugg Discount En Noir &lt;/a&gt;<br />&lt;a href=&quot;http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-corchet-bottes-ugg-economie-en-gris-p-503.html&quot;&gt; Bottes Ugg Economie En Gris &lt;/a&gt;<br />&lt;a href=&quot;http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-corchet-bottes-ugg-francais-en-beige-p-504.html&quot;&gt; Bottes Ugg Francais En Beige&lt;/a&gt;<br />&lt;a href=&quot;http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-corchet-bottes-ugg-jolie-en-couleur-brun-p-507.html&quot;&gt; Bottes Ugg Jolie En Couleur Brun &lt;/a&gt;<br />&lt;a href=&quot;http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-corchet-bottes-ugg-pas-imitation-en-noir-p-508.html&quot;&gt; Bottes Ugg Pas Imitation En Noir&lt;/a&gt;<br />&lt;a href=&quot;http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-corchet-ugg-france-bottes-en--beige-p-500.html&quot;&gt; Ugg France Bottes En Beige&lt;/a&gt;<br />&lt;a href=&quot;http://www.bottes-ugg-bottes.com/bottes-ugg-classic-bottes-ugg-classic-cardy-authentique-bottes-ugg-en-bleu-p-494.html&quot;&gt; Authentique Bottes Ugg En Bleu&lt;/a&gt;<br />Choosing the right affiliate programs takes time and research. You don't want to just jump in and promote any old program that comes along you want to find ones that will make your job easy and fun. Look for businesses that have been around for a while that have a solid background and good rankings.]]>
		</description>
	</item>
	<item>
		<title>Aditional comment SPAM protections (next to captcha)</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=3446&amp;Focus=13514#Comment_13514</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=3446&amp;Focus=13514#Comment_13514</guid>
		<pubDate>Fri, 26 Nov 2010 07:33:46 +0000</pubDate>
		<author>floriske.nl</author>
		<description>
			<![CDATA[If I look at the amount of spam on this forum I reckon it can use some extra precautions as well ;)<br /><br />ontopic: haven't had a single spam message since I've implemented the above. (against 5 a day)]]>
		</description>
	</item>
	<item>
		<title>Aditional comment SPAM protections (next to captcha)</title>
		<link>http://www.plogger.org/forum/comments.php?DiscussionID=3446&amp;Focus=13846#Comment_13846</link>
		<guid isPermaLink="false">http://www.plogger.org/forum/comments.php?DiscussionID=3446&amp;Focus=13846#Comment_13846</guid>
		<pubDate>Tue, 12 Jul 2011 11:27:51 +0000</pubDate>
		<author>ecspan</author>
		<description>
			<![CDATA[Great help, thank you! This should be added to future versions of the code.]]>
		</description>
	</item>
	
		</channel>
	</rss>