Menu
web host pro logo
  • News
  • Websites
  • WordPress
  • Business
  • Dedicated Servers
  • Services
    • CPanel Hosting
    • EZ Website Builder
    • VPS Hosting
    • Dedicated Servers
    • Reseller Hosting
    • Domain Registrstion
web host pro logo
December 17, 2014

Form mail spam blocker

Share it here
twitter facebook pinterest linkedin

We found this great trick to block most spam for any form mail type form.

Just paste this right above the submit button in the code:

 

<div id=”fooDiv”>
<label for=”foo”>Leave this field blank</label>
<input type=”text” name=”foo” id=”foo”>
</div>
<script>
(function () {
var e = document.getElementById(“fooDiv”);
e.parentNode.removeChild(e);
})();
</script>

 

 

The will eliminate almost all spam and the form will still work as normal. You can add a Captcha for the best possible protection but this is much easier and works very well.

Continue Reading

← How to choose what picture type
White list your email the professional way →

Connect with us
twitter facebook instagram youtube pinterest linkedin

Recent Posts

  • Internet Speeds and Costs Around the World (2010)

    Internet Speeds and Costs Around the World (2010)

  • Top 5 WordPress shopping carts

    Top 5 WordPress shopping carts

  • Email ports 25 26 587

    Email ports 25 26 587

  • Using Google Public DNS

    Using Google Public DNS

  • Who are people using for advertisers on their blogs?

    Who are people using for advertisers on their blogs?

  • Validate your website

    Validate your website

  • What is the Secure Connection Failed Server that uses an invalid security certificate error?

    What is the Secure Connection Failed Server that uses an invalid security certificate error?

  • Internet usage around the World 2009-2028 (revised)

    Internet usage around the World 2009-2028 (revised)

  • Impostor scams are on the rise

    Impostor scams are on the rise

  • How to make an awesome about us page

    How to make an awesome about us page

  • Is AI taking over SEO?

    Is AI taking over SEO?

  • Transferring domains can be easy

    Transferring domains can be easy

  • 6 highly effective ways to market a small business online

    6 highly effective ways to market a small business online

  • A successful marketer

    A successful marketer

  • Updates around the web

    Updates around the web

All Rights Reserved Web Host Pro 2023