When someone registers in your website, send him/her an email with a verification code and show a form to enter the code in your website.

User must enter the verification code in that form to verify his email.

Only verified users will be allowed to login.

Source code:

#php #mysql

How to Verify Email with A Verification Code - PHP & MySQL
3.05 GEEK