<?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/2007/07/19/avoid-html-form-spam-using-css/feed/" rel="self" type="application/rss+xml" /><link>http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/</link> <description>About technology</description> <lastBuildDate>Mon, 08 Mar 2010 22:08:39 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: dr john</title><link>http://klauskjeldsen.dk/2007/07/19/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/2007/07/19/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/2007/07/19/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/2007/07/19/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/2007/07/19/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/2007/07/19/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/2007/07/19/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/2007/07/19/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/2007/07/19/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/2007/07/19/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/2007/07/19/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/2007/07/19/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/2007/07/19/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/2007/07/19/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/2007/07/19/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/2007/07/19/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/2007/07/19/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/2007/07/19/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> <item><title>By: Alaina</title><link>http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/comment-page-1/#comment-7851</link> <dc:creator>Alaina</dc:creator> <pubDate>Mon, 17 Nov 2008 14:51:41 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-7851</guid> <description>My company is using html forms and lately we&#039;ve been getting a lot of spam coming in through them. They don&#039;t seem to want to do anything about it to fix it so I&#039;m attempting to find a solution myself. So this may be a silly question (I understand the basics of html/css, but asp/php is rather confusing to me), but can this method be applied to forms that are being sent with asp?</description> <content:encoded><![CDATA[<p>My company is using html forms and lately we&#8217;ve been getting a lot of spam coming in through them. They don&#8217;t seem to want to do anything about it to fix it so I&#8217;m attempting to find a solution myself. So this may be a silly question (I understand the basics of html/css, but asp/php is rather confusing to me), but can this method be applied to forms that are being sent with asp?</p> ]]></content:encoded> </item> <item><title>By: Gino</title><link>http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/comment-page-1/#comment-7766</link> <dc:creator>Gino</dc:creator> <pubDate>Wed, 05 Nov 2008 10:31:37 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-7766</guid> <description>This is a good idea. Some people are doing spam works. If the robots are spamming we can easily block them by using this idea but we couldn&#039;t do anything. I am in search for block this kind of spams.I think if we can check the email id is valid or not we can identify. Can anyone give some ideas about how we can check the email is valid or not.</description> <content:encoded><![CDATA[<p>This is a good idea. Some people are doing spam works. If the robots are spamming we can easily block them by using this idea but we couldn&#8217;t do anything. I am in search for block this kind of spams.I think if we can check the email id is valid or not we can identify. Can anyone give some ideas about how we can check the email is valid or not.</p> ]]></content:encoded> </item> <item><title>By: midhun</title><link>http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/comment-page-1/#comment-6929</link> <dc:creator>midhun</dc:creator> <pubDate>Tue, 23 Sep 2008 06:22:29 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-6929</guid> <description>Do you think this is a better approach than image reading to avoid spamming ??</description> <content:encoded><![CDATA[<p>Do you think this is a better approach than image reading to avoid spamming ??</p> ]]></content:encoded> </item> <item><title>By: PHP-Shops.de: Erfolgreich Online-Shops fÃ¼hren</title><link>http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/comment-page-1/#comment-6781</link> <dc:creator>PHP-Shops.de: Erfolgreich Online-Shops fÃ¼hren</dc:creator> <pubDate>Sun, 24 Aug 2008 09:47:09 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-6781</guid> <description>&lt;strong&gt;Formular-Spam vermeiden mit CSS...&lt;/strong&gt;Hier ist die Idee in jedem Formular ein verstecktes Feld einzufÃ¼gen, welches ein Spambot ausfÃ¼llen wÃ¼rde, ein Mensch allerdings nicht, da er dieses nicht sieht....</description> <content:encoded><![CDATA[<p><strong>Formular-Spam vermeiden mit CSS&#8230;</strong></p><p>Hier ist die Idee in jedem Formular ein verstecktes Feld einzufÃ¼gen, welches ein Spambot ausfÃ¼llen wÃ¼rde, ein Mensch allerdings nicht, da er dieses nicht sieht&#8230;.</p> ]]></content:encoded> </item> <item><title>By: David Brix</title><link>http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/comment-page-1/#comment-6438</link> <dc:creator>David Brix</dc:creator> <pubDate>Fri, 25 Jul 2008 19:33:12 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-6438</guid> <description>Some Folks, such as myself, might find that the php script given by &quot;normalperson&quot; might not work.When I implemented it I first tried the complete snippet that he gave and immediately got an syntax error generated by the server.Ultimately, I added only the Post check for the &quot;human &quot; field, but still had a syntax error generated. I ran it by an associate of mine, David Lincer, and he discovered that there was code missing. In the ($_POST[&#039;human&#039;] &quot;&quot;) argument it was missing &quot;==&quot;.THE ORIGINAL CODE SNIPPET:
&lt;code&gt;
// check if man or machine
if ($_POST[&#039;human&#039;] â€œâ€){
echo â€œBad doggy. Sit bobo. Sit.â€;
exit;}
&lt;/code&gt;THE CORRECTED CODE:
&lt;code&gt;
// check if man or machine
if ($_POST[&#039;human&#039;] == â€œâ€){
echo â€œBad doggy. Sit bobo. Sit.â€;
exit;}
&lt;/code&gt;In addition, I changed the relevent action to redirect to my thank you page so that any bot would think that it was successful and not bother to try another attack tactic. My final code looks something like this...&lt;code&gt;
// check if man or machine
if ($_POST[&#039;human&#039;] == â€œâ€){
header( &quot;Location: $thankyouurl&quot; );
exit;
}
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Some Folks, such as myself, might find that the php script given by &#8220;normalperson&#8221; might not work.</p><p>When I implemented it I first tried the complete snippet that he gave and immediately got an syntax error generated by the server.</p><p>Ultimately, I added only the Post check for the &#8220;human &#8221; field, but still had a syntax error generated. I ran it by an associate of mine, David Lincer, and he discovered that there was code missing. In the ($_POST['human'] &#8220;&#8221;) argument it was missing &#8220;==&#8221;.</p><p>THE ORIGINAL CODE SNIPPET:</p><div
class="codesnip-container" >// check if man or machine<br
/> if ($_POST['human'] â€œâ€){<br
/> echo â€œBad doggy. Sit bobo. Sit.â€;<br
/> exit;}</div><p>THE CORRECTED CODE:</p><div
class="codesnip-container" >// check if man or machine<br
/> if ($_POST['human'] == â€œâ€){<br
/> echo â€œBad doggy. Sit bobo. Sit.â€;<br
/> exit;}</div><p>In addition, I changed the relevent action to redirect to my thank you page so that any bot would think that it was successful and not bother to try another attack tactic. My final code looks something like this&#8230;</p><div
class="codesnip-container" >// check if man or machine<br
/> if ($_POST['human'] == â€œâ€){<br
/> header( &#8220;Location: $thankyouurl&#8221; );<br
/> exit;<br
/> }</div> ]]></content:encoded> </item> <item><title>By: normalperson</title><link>http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/comment-page-1/#comment-5962</link> <dc:creator>normalperson</dc:creator> <pubDate>Wed, 02 Jul 2008 21:51:35 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-5962</guid> <description>Additional idea for if they catch on to the human hidden field etc.Create say 4 human fieldsAdd the CSS code to your style sheet
#human {
visibility:hidden;
display:none;
}Then in your form to email script decide which one you would check for needing to contain no values.// check if man or machine
if ($_POST[&#039;human3&#039;] â€œâ€){ //you choose human1 - 4
echo â€œBad doggy. Sit bobo. Sit.â€;
exit;}Could even add a randomizer for the four fields to make it even more random.</description> <content:encoded><![CDATA[<p>Additional idea for if they catch on to the human hidden field etc.</p><p>Create say 4 human fields</p><p>Add the CSS code to your style sheet<br
/> #human {<br
/> visibility:hidden;<br
/> display:none;<br
/> }</p><p>Then in your form to email script decide which one you would check for needing to contain no values.</p><p>// check if man or machine<br
/> if ($_POST['human3'] â€œâ€){ //you choose human1 &#8211; 4<br
/> echo â€œBad doggy. Sit bobo. Sit.â€;<br
/> exit;}</p><p>Could even add a randomizer for the four fields to make it even more random.</p> ]]></content:encoded> </item> <item><title>By: normalperson</title><link>http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/comment-page-1/#comment-5961</link> <dc:creator>normalperson</dc:creator> <pubDate>Wed, 02 Jul 2008 21:44:10 +0000</pubDate> <guid
isPermaLink="false">http://klauskjeldsen.dk/2007/07/19/avoid-html-form-spam-using-css/#comment-5961</guid> <description>It&#039;s such a nifty simple solution if you need something for spam on a basic or restricted server. Works cool. Added the stylesheet bit. In my php form to email wrote code like this after checking// This line prevents values being entered in a URLif ($_SERVER[&#039;REQUEST_METHOD&#039;] != &quot;POST&quot;){exit;}// This line prevents a blank form being sentwhile(list($key,$value) = each($_POST)){if(!(empty($value))){$set=1;}$message = $message . &quot;$key: $value\n\n&quot;;} if($set!==1){header(&quot;location: $_SERVER[HTTP_REFERER]&quot;);exit;}// check if man or machine
if ($_POST[&#039;human&#039;]  &quot;&quot;){
echo &quot;Bad doggy. Sit bobo. Sit.&quot;;
exit;}</description> <content:encoded><![CDATA[<p>It&#8217;s such a nifty simple solution if you need something for spam on a basic or restricted server. Works cool. Added the stylesheet bit. In my php form to email wrote code like this after checking</p><p>// This line prevents values being entered in a URL</p><p>if ($_SERVER['REQUEST_METHOD'] != &#8220;POST&#8221;){exit;}</p><p>// This line prevents a blank form being sent</p><p>while(list($key,$value) = each($_POST)){if(!(empty($value))){$set=1;}$message = $message . &#8220;$key: $value\n\n&#8221;;} if($set!==1){header(&#8220;location: $_SERVER[HTTP_REFERER]&#8220;);exit;}</p><p>// check if man or machine<br
/> if ($_POST['human']  &#8220;&#8221;){<br
/> echo &#8220;Bad doggy. Sit bobo. Sit.&#8221;;<br
/> exit;}</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 6/38 queries in 0.025 seconds using disk

Served from: nh80.nathist.au.dk @ 2010-03-12 02:39:08 -->