|
if you are using php and the email variable is $email, when they have submitted on the page that registers them, put:
<?php
if ((((strpos($email, "@") !== false) && ((strpos($email, ".net") !== false) ||(strpos($email, ".com") !== false))) && ((strpos($email, "@gmail.com") === false) ||(strpos($email, "@yahoo.com") === false) ||(strpos($email, "@hotmail.co.uk") === false) ||(strpos($email, "@hotmail.com") === false) ||(strpos($email, "@msn.com") === false) ||(strpos($email, "@msn.co.uk") === false))){
continue registration (code here).
}else{
echo"Registration Denied.";
}
?>
If it is that there are just one or two email you do want to allow it would be easier to do that than blocking all these ones.
|