-3

I have a website which provides optional sign up. Recently, I have been getting too many sign-ups which seem to be spam. Though I implemented email verification, the accounts keep getting added, and moreover, are even activated as soon as they are created.

I also added a hidden input field in the form and check if it is filled or not, but that too doesn't seem to work.

Any help?

Ankur Gupta
  • 707
  • 1
  • 9
  • 20
  • 2
    You could implement a captcha. – rekire Nov 13 '13 at 18:51
  • I am trying to avoid captcha, for the very reason that it hampers user experience. Any other good method available? – Ankur Gupta Nov 13 '13 at 18:55
  • You could also add some kind of creative captcha. Like is on that picture a cat or a dog or something like at what river is near the town cologne at the Rhein. – rekire Nov 13 '13 at 18:58
  • If a honeypot (hidden field) isn't working, then perhaps try dynamically creating a field using javascript, then require the user to do something to the field (check a checkbox, answer a simple math question, etc). – Dave Nov 13 '13 at 18:59
  • Can it be that the field id not working because I have used type=hidden instead of using CSS to hide it? I did this because display:none in CSS was unable to hide the field.. – Ankur Gupta Nov 13 '13 at 19:08

2 Answers2

1

Yeah , Make use of CAPTCHA.

A CAPTCHA (an acronym for "Completely Automated Public Turing test to tell Computers and Humans Apart") is a type of challenge-response test used in computing to determine whether or not the user is human.

Here's a library available. Check out.

Include this library on your Signup Form .. and do like this

session_start();
$captcha = new SimpleCaptcha();
// Change configuration...
//$captcha->wordsFile = null;           // Disable dictionary words
//$captcha->wordsFile = 'words/es.txt'; // Enable spanish words
//$captcha->session_var = 'secretword'; // Change session variable
$captcha->CreateImage();
Shankar Narayana Damodaran
  • 68,075
  • 43
  • 96
  • 126
0

A good way to do this would be using Captcha. A very common and good Captcha is ReCaptcha. The link to this can be found here.

Recaptcha is very easy to install and google provides all of the Libraries necessary. Installing it is basically copying and pasting,but you do have to sign up with google.

PHP9274745382389
  • 169
  • 2
  • 14