Combating spam using css

    The idea is to make an extra field in the form and hide it with styles from the user. The user does not see the field and does not fill it, and the bot will fill. On the server side, check whether the field is full or not.

    html:
      



      


      



      

        







    css:
    body {

    line-height:35px;

    font-family:Arial, Helvetica, sans-serif;

    color:#333;

    font-size:14px;

    }

    .special {

    width:5px;

    visibility:hidden;


    }




    According to the author, the amount of spam fell to 0.
    source .


    Also popular now: