<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Avoid HTML form spam using CSS</title> <atom:link href="http://klauskjeldsen.dk/avoid-html-form-spam-using-css/feed/" rel="self" type="application/rss+xml" /><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/</link> <description>About web... &#38; stuff</description> <lastBuildDate>Fri, 20 Jan 2012 16:07:13 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: paddy</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-22595</link> <dc:creator>paddy</dc:creator> <pubDate>Tue, 13 Dec 2011 13:31:04 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-22595</guid> <description>Very Interesting</description> <content:encoded><![CDATA[<p>Very Interesting</p> ]]></content:encoded> </item> <item><title>By: Michael</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-16516</link> <dc:creator>Michael</dc:creator> <pubDate>Sun, 08 May 2011 07:57:01 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-16516</guid> <description>I&#039;m a bit confused (though I know virtually nothing about PHP). I can&#039;t seem to get the PHP side of this to work. It doesn&#039;t seem right to me that the subroutine exits if nothing is found (== &quot;&quot;). Shouldn&#039;t it exit if something *is*  found (!= &quot;&quot;) in the &quot;human&quot; field? Either way, I can&#039;t seem to get it to work, and any help would be appreciated in clearing this up for me. Thanks!</description> <content:encoded><![CDATA[<p>I&#8217;m a bit confused (though I know virtually nothing about PHP). I can&#8217;t seem to get the PHP side of this to work. It doesn&#8217;t seem right to me that the subroutine exits if nothing is found (== &#8220;&#8221;). Shouldn&#8217;t it exit if something *is*  found (!= &#8220;&#8221;) in the &#8220;human&#8221; field? Either way, I can&#8217;t seem to get it to work, and any help would be appreciated in clearing this up for me. Thanks!</p> ]]></content:encoded> </item> <item><title>By: Jordan</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-14901</link> <dc:creator>Jordan</dc:creator> <pubDate>Thu, 03 Mar 2011 10:48:04 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-14901</guid> <description>This trick worked for years for me, recently more and more have been getting through. Within the past month. Think there&#039;s a spambot update spreading the net?</description> <content:encoded><![CDATA[<p>This trick worked for years for me, recently more and more have been getting through. Within the past month. Think there&#8217;s a spambot update spreading the net?</p> ]]></content:encoded> </item> <item><title>By: aSeptik</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-14849</link> <dc:creator>aSeptik</dc:creator> <pubDate>Thu, 24 Feb 2011 23:05:39 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-14849</guid> <description>nice, but what if javascript is disabled? ;)</description> <content:encoded><![CDATA[<p>nice, but what if javascript is disabled? <img
src='http://klauskjeldsen.dk/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: &#187; Avoid HTML form spam using CSS My Logbook</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-14570</link> <dc:creator>&#187; Avoid HTML form spam using CSS My Logbook</dc:creator> <pubDate>Mon, 24 Jan 2011 03:07:15 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-14570</guid> <description>[...] is a small example form:   view plaincopy to [...]</description> <content:encoded><![CDATA[<p>[...] is a small example form:   view plaincopy to [...]</p> ]]></content:encoded> </item> <item><title>By: Ashish Kumar</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-14075</link> <dc:creator>Ashish Kumar</dc:creator> <pubDate>Sat, 08 Jan 2011 06:59:56 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-14075</guid> <description>Informative article, thanks for sharing such a great source
for me!!!!!!!!</description> <content:encoded><![CDATA[<p>Informative article, thanks for sharing such a great source<br
/> for me!!!!!!!!</p> ]]></content:encoded> </item> <item><title>By: Absurdist.Org &#187; Blog Archive &#187; Tutorial: Hassle-free anti-spam using CSS</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-12100</link> <dc:creator>Absurdist.Org &#187; Blog Archive &#187; Tutorial: Hassle-free anti-spam using CSS</dc:creator> <pubDate>Tue, 06 Jul 2010 18:56:01 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-12100</guid> <description>[...] [Original idea from klauskjeldsen.dk] [...]</description> <content:encoded><![CDATA[<p>[...] [Original idea from klauskjeldsen.dk] [...]</p> ]]></content:encoded> </item> <item><title>By: dr john</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-10227</link> <dc:creator>dr john</dc:creator> <pubDate>Sun, 10 Jan 2010 16:50:26 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-10227</guid> <description>dave,you place the code snippet in the php script that is the action for the form, near the very top, so it is tested before the rest of your action script runs and processes the data, and exits at that point.Many scripts use a foreach($_POST as $value) loop to check for blank fields in the data sent, or for characters likely to be used by a hacker (; -- { and similar, see SQL Injection examples), so you&#039;d have to have a little bit of code that tested each $value and if it was your hidden field, skip the check.</description> <content:encoded><![CDATA[<p>dave,</p><p>you place the code snippet in the php script that is the action for the form, near the very top, so it is tested before the rest of your action script runs and processes the data, and exits at that point.</p><p>Many scripts use a foreach($_POST as $value) loop to check for blank fields in the data sent, or for characters likely to be used by a hacker (; &#8212; { and similar, see SQL Injection examples), so you&#8217;d have to have a little bit of code that tested each $value and if it was your hidden field, skip the check.</p> ]]></content:encoded> </item> <item><title>By: pligg.com</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-10166</link> <dc:creator>pligg.com</dc:creator> <pubDate>Thu, 07 Jan 2010 20:04:16 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-10166</guid> <description>&lt;strong&gt;Avoid HTML form spam using CSS...&lt;/strong&gt;An approach of avoiding HTML form spam is using CSS. Non-human spammers usually fills out every input field in a form and submit it, and to overcome this kind of spam you must be able to differ between real human form submits and non-human spam. A tech...</description> <content:encoded><![CDATA[<p><strong>Avoid HTML form spam using CSS&#8230;</strong></p><p>An approach of avoiding HTML form spam is using CSS. Non-human spammers usually fills out every input field in a form and submit it, and to overcome this kind of spam you must be able to differ between real human form submits and non-human spam. A tech&#8230;</p> ]]></content:encoded> </item> <item><title>By: dave</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-9966</link> <dc:creator>dave</dc:creator> <pubDate>Thu, 10 Dec 2009 23:55:25 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-9966</guid> <description>Where do you place the php script// check if man or machine
if ($_POST[&#039;human&#039;] == â€œâ€){
echo â€œBad doggy. Sit bobo. Sit.â€;
exit;}in the form?  Do you place it right after the &quot;from action&quot;?</description> <content:encoded><![CDATA[<p>Where do you place the php script</p><p>// check if man or machine<br
/> if ($_POST['human'] == â€œâ€){<br
/> echo â€œBad doggy. Sit bobo. Sit.â€;<br
/> exit;}</p><p>in the form?  Do you place it right after the &#8220;from action&#8221;?</p> ]]></content:encoded> </item> <item><title>By: Kenny</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-9544</link> <dc:creator>Kenny</dc:creator> <pubDate>Fri, 12 Jun 2009 14:55:24 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-9544</guid> <description>Thanks for this! Such a simple solution.</description> <content:encoded><![CDATA[<p>Thanks for this! Such a simple solution.</p> ]]></content:encoded> </item> <item><title>By: chantz</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-9503</link> <dc:creator>chantz</dc:creator> <pubDate>Tue, 19 May 2009 05:36:38 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-9503</guid> <description>David Brix, thanks for the PHP snippet.  I&#039;ll try it, but where in the code do you add it?  Does it matter where you put it (e.g. does it have to be before fclose or something) or can you just stick it in the end?  If it helps, I&#039;m using GoDaddy&#039;s webformmailer.php.  Thx!</description> <content:encoded><![CDATA[<p>David Brix, thanks for the PHP snippet.  I&#8217;ll try it, but where in the code do you add it?  Does it matter where you put it (e.g. does it have to be before fclose or something) or can you just stick it in the end?  If it helps, I&#8217;m using GoDaddy&#8217;s webformmailer.php.  Thx!</p> ]]></content:encoded> </item> <item><title>By: Stephanie Boucher</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-9501</link> <dc:creator>Stephanie Boucher</dc:creator> <pubDate>Mon, 18 May 2009 07:54:41 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-9501</guid> <description>I&#039;ve tried the hidden field option to distinguish human from non human, but the php form always returns an error.  I&#039;ve tried normalperson&#039;s idea with and without Dave Brix&#039;s modification, and no joy.  Any suggestions? Stephanie</description> <content:encoded><![CDATA[<p>I&#8217;ve tried the hidden field option to distinguish human from non human, but the php form always returns an error.  I&#8217;ve tried normalperson&#8217;s idea with and without Dave Brix&#8217;s modification, and no joy.  Any suggestions? Stephanie</p> ]]></content:encoded> </item> <item><title>By: Trinity</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-9413</link> <dc:creator>Trinity</dc:creator> <pubDate>Tue, 21 Apr 2009 20:08:25 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-9413</guid> <description>You could also hide the dummy input text field behind another div that has a higher z-index value and is sized and filled so as to obscure the dummy field from view.  That way, the css of the dummy input text field could remain identical to the css of the other text fields.I think it would be difficult very difficult for a bot to detect that another div that is positioned in front of the dummy input field.</description> <content:encoded><![CDATA[<p>You could also hide the dummy input text field behind another div that has a higher z-index value and is sized and filled so as to obscure the dummy field from view.  That way, the css of the dummy input text field could remain identical to the css of the other text fields.</p><p>I think it would be difficult very difficult for a bot to detect that another div that is positioned in front of the dummy input field.</p> ]]></content:encoded> </item> <item><title>By: BotBoy</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-9400</link> <dc:creator>BotBoy</dc:creator> <pubDate>Mon, 20 Apr 2009 02:26:44 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-9400</guid> <description>Frode why would the bot bother changing the default setting?</description> <content:encoded><![CDATA[<p>Frode why would the bot bother changing the default setting?</p> ]]></content:encoded> </item> <item><title>By: Frode</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-9225</link> <dc:creator>Frode</dc:creator> <pubDate>Tue, 24 Mar 2009 08:41:57 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-9225</guid> <description>Might be even better if you set a default value of the human field, and if that value changes its managed as spam?</description> <content:encoded><![CDATA[<p>Might be even better if you set a default value of the human field, and if that value changes its managed as spam?</p> ]]></content:encoded> </item> <item><title>By: Alexwebmaster</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-9182</link> <dc:creator>Alexwebmaster</dc:creator> <pubDate>Tue, 03 Mar 2009 08:19:54 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-9182</guid> <description>Hello webmaster
I would like to share with you a link to your site
write me here preonrelt@mail.ru</description> <content:encoded><![CDATA[<p>Hello webmaster<br
/> I would like to share with you a link to your site<br
/> write me here <a
href="mailto:preonrelt@mail.ru">preonrelt@mail.ru</a></p> ]]></content:encoded> </item> <item><title>By: YHVH</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-9151</link> <dc:creator>YHVH</dc:creator> <pubDate>Fri, 13 Feb 2009 18:34:02 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-9151</guid> <description>Django does this standardly with it&#039;s auto creation of forms. Seems to work on the sites I run.</description> <content:encoded><![CDATA[<p>Django does this standardly with it&#8217;s auto creation of forms. Seems to work on the sites I run.</p> ]]></content:encoded> </item> <item><title>By: Web development</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-9150</link> <dc:creator>Web development</dc:creator> <pubDate>Fri, 13 Feb 2009 12:54:27 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-9150</guid> <description>See this link you can see further info on how to avoid spam without a CAPTCHA http://www.webdigi.co.uk/blog/2009/does-your-website-really-need-a-captcha/</description> <content:encoded><![CDATA[<p>See this link you can see further info on how to avoid spam without a CAPTCHA <a
href="http://www.webdigi.co.uk/blog/2009/does-your-website-really-need-a-captcha/" rel="nofollow">http://www.webdigi.co.uk/blog/2009/does-your-website-really-need-a-captcha/</a></p> ]]></content:encoded> </item> <item><title>By: Chris Done</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-9149</link> <dc:creator>Chris Done</dc:creator> <pubDate>Fri, 13 Feb 2009 10:03:13 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-9149</guid> <description>Hi Viktor,I don&#039;t think screen readers read the DOM tree, at all. They read the screen, literally. For example, Opera. If you hide an element with CSS, the screen reader doesn&#039;t see it. Why should it, really?I suspect this method is perfectly fine for screen readers, but I haven&#039;t tested it.</description> <content:encoded><![CDATA[<p>Hi Viktor,</p><p>I don&#8217;t think screen readers read the DOM tree, at all. They read the screen, literally. For example, Opera. If you hide an element with CSS, the screen reader doesn&#8217;t see it. Why should it, really?</p><p>I suspect this method is perfectly fine for screen readers, but I haven&#8217;t tested it.</p> ]]></content:encoded> </item> <item><title>By: defreegames</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-9148</link> <dc:creator>defreegames</dc:creator> <pubDate>Fri, 13 Feb 2009 09:38:02 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-9148</guid> <description>thanks for sharing...</description> <content:encoded><![CDATA[<p>thanks for sharing&#8230;</p> ]]></content:encoded> </item> <item><title>By: SEO Services</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-9086</link> <dc:creator>SEO Services</dc:creator> <pubDate>Sun, 11 Jan 2009 23:34:14 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-9086</guid> <description>Nice idea, I&#039;ll have to test that out and see how well it works.</description> <content:encoded><![CDATA[<p>Nice idea, I&#8217;ll have to test that out and see how well it works.</p> ]]></content:encoded> </item> <item><title>By: James</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-8962</link> <dc:creator>James</dc:creator> <pubDate>Sun, 21 Dec 2008 16:12:34 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-8962</guid> <description>Wish I could edit my comments -.-
#human{
position:absolute;
top:-100px;
left:-100px;
}</description> <content:encoded><![CDATA[<p>Wish I could edit my comments -.-<br
/> #human{<br
/> position:absolute;<br
/> top:-100px;<br
/> left:-100px;<br
/> }</p> ]]></content:encoded> </item> <item><title>By: James</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-8961</link> <dc:creator>James</dc:creator> <pubDate>Sun, 21 Dec 2008 16:11:53 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-8961</guid> <description>Another thought on this is instead of hiding it altogether is placing it at an absolute value that is -top -left. This makes it invisible to humans, but spam bots still see it and will fill it in. Also has the added advantage of not producing scroll bars, and not getting the smart spam bots to skip it because it is simply hidden ie:#human {
top: -100px;
left: -100px;
}</description> <content:encoded><![CDATA[<p>Another thought on this is instead of hiding it altogether is placing it at an absolute value that is -top -left. This makes it invisible to humans, but spam bots still see it and will fill it in. Also has the added advantage of not producing scroll bars, and not getting the smart spam bots to skip it because it is simply hidden ie:</p><p>#human {<br
/> top: -100px;<br
/> left: -100px;<br
/> }</p> ]]></content:encoded> </item> <item><title>By: Alaina</title><link>http://klauskjeldsen.dk/avoid-html-form-spam-using-css/comment-page-1/#comment-8528</link> <dc:creator>Alaina</dc:creator> <pubDate>Wed, 03 Dec 2008 18:38:00 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-8528</guid> <description>is there anyway you can remove that last post?</description> <content:encoded><![CDATA[<p>is there anyway you can remove that last post?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching 30/64 queries in 0.057 seconds using disk: basic
Content Delivery Network via N/A

Served from: klauskjeldsen.dk @ 2012-02-07 17:41:19 -->
