How to prevent automatic submission by spammers?

I guess all who read this post, probably seen spam email or if you have blog, you’ve seen a lot of spam comment on your posts. Spam are not something new, nowadays they are becoming a bigger problem for the Internet. Popular websites, like YouTube, Wordpress, blogger which users can comment are protected by advanced spam blocker, but how about a small website like mine. As I wrote the code for my blog myself, I didn't include any third party codes even for validation or preventing from spam, So I used to receive a lot of spam comments which were so annoying, I had to stop them but how? bear in mind that because first of all, my website is for my educational purpose so I must not copy from elsewhere code for my website, also I wanted to use unique way of doing this, well! It is all about. I came up with an idea which you can see in the photo. Basically I made a disabled text area (user can not click or copy) which has random digit, user should enter that random code in the box just beside it. I used PHP to write this piece of code which I have no more spam also I have never seen elsewhere such code. Please let me know if you have any queries.

Comments

Popular posts from this blog

I solved GCHQ puzzle and this is how I did it

The best way to predict the future is to create it

Why I don't have social media account?