Avoid spam comments

| posted in: PHP | 1


Server side validations are must for Public pages to avoid spam.

In socialsphere website, spam comments were posted under website blogs section.

Blog section doesn’t require login for writing comments.  This page had client side validations for captcha and textboxes. The client side validations can not stop if someone is posting comments through some script. Its better to implement server side validations if any page is taking input from general public.

We changed page captcha to Zend captcha to increase the captcha complexity. This adds lines, dots and changes to text orientation in every request.

Some of the useful links I came accross:

Some strange thing for me is PHP $_SERVER[‘HOST’] has many host names and one of them was “socialsphere.com” in it. How is it possible to have many hosts for a http request ?

Previous Post
Next Post

One Response

  1. I still remembered that my unc#8&le217;s daughter was borned.That was my first time to see just was born soon.I really feel the baby to grow up very fast.When she was three years oid,she can talk a little very.I palyed with her,I found the child is very cute and pure.I was first time feel someone to rely on me.

Leave a Reply