Forum Moderators: phranque

Message Too Old, No Replies

.htaccess limits

Not sure if this can be done

         

kathy7012

12:10 am on Feb 1, 2005 (gmt 0)

10+ Year Member



I am trying to limit email addresses that can sign up on my site. I don't want to allow hotmail, gmail or yahoo signups. Is there a way to do this in .htaccess? Or do I just have to monitor my database myself? Any assistance or guidance where to research this would be great. I have searched alot, but never found any article yet to help me with this scenerio.

Thank you for your time,
Kathy

Frank_Rizzo

12:34 am on Feb 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



unless the usernames contain the email address then I don't think .htaccess will be able to do this.

You will have to check for banned email addresses at point of registration.

What are you using for registration procedure? Off the shelf package or free php script type thing?

kathy7012

1:42 am on Feb 1, 2005 (gmt 0)

10+ Year Member



I sent a sticky to your inbox of the signup page code.

Frank_Rizzo

11:14 am on Feb 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



sticky replied with simple code patch based on:

elseif (strpos($email, 'banned.com') + strpos($email, 'banned.pl') > 0) {
echo "that email domain is not allowed";
} else {
#valid script continues....