Menu
whm logo
  • News
  • Websites
  • Business
  • Servers
  • Services
    • CPanel Hosting
    • EZ Website Builder
    • VPS Hosting
    • Dedicated Servers
    • Reseller Hosting
    • Domain Registrstion
whm 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

Click to view coupon lup

Recent Posts

  • How to make an awesome about us page

    How to make an awesome about us page

    December 5, 2022
  • Is AI taking over SEO?

    Is AI taking over SEO?

    November 10, 2022
  • Transferring domains can be easy

    Transferring domains can be easy

    October 26, 2022
  • 6 highly effective ways to market a small business online

    6 highly effective ways to market a small business online

    September 28, 2022
  • A successful marketer

    A successful marketer

    August 22, 2022
  1. albertdavid123 on MySQL 5.5 is officially dying this weekApril 3, 2019

    Good bye 5.5. And thanks for we explaining the password change steps.

  2. Web Host Pro on Proper computer postureDecember 1, 2015

    Thanks!

  3. frank on 85% of people use the internet to find local businessesAugust 8, 2015

    I always do!

  4. Danny Walton on Free word invoice templateJuly 4, 2014

    Nice download

  5. Ken on Using Google Public DNSFebruary 22, 2014

    Great article!

All Rights Reserved Web Host Pro 2022