1 (edited by hcgtv 2005-09-10 03:37)

Topic: Preventing certain email domains from registering.

I have somebody on one of my forums that keeps registering using my domain's address.

Like xyz@hcgtv.net, using this as a user and email address. I have to delete about 6 of these a day, just wanted to know if I can stop this from happening.

Thanks.

2 (edited by snapsolutions 2005-09-10 04:36)

Re: Preventing certain email domains from registering.

You are running Linux, so why not use IPFilter and ban his IP?

3

Re: Preventing certain email domains from registering.

snapsolutions wrote:

You are running Linux, so why not use IPFilter and ban his IP?

Because they are coming from different IP's. It's a very strange accurence, mostly annoying.

4 (edited by Tobi 2005-09-10 08:10)

Re: Preventing certain email domains from registering.

My proposal is:
Open include/email.php
and replace line 36

if (strlen($email) > 50)

with

if ((strlen($email) > 50) || (preg('/@hcgtv.net/') && !preg('/yourname@hcgtv.net/')))

where you replace yourname@hcgtv.net with your own email address

The German PunBB Site:
PunBB-forum.de

Re: Preventing certain email domains from registering.

Mmm, PunRes seems to have the same issue
Just ban hcgtv.net in the email?

6

Re: Preventing certain email domains from registering.

The problem here is that you can ban all "hcgtv.net" addresses but then your own would be blocked as well.
Besides from the little hack I wrote only a more sophisticated whitelist/blacklist system would help.

The German PunBB Site:
PunBB-forum.de

Re: Preventing certain email domains from registering.

Except admins can't be banned wink

Re: Preventing certain email domains from registering.

But you can ban any e-mail address domain and it won't affect people that have already registered with a banned e-mail address.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

9

Re: Preventing certain email domains from registering.

Rickard wrote:

But you can ban any e-mail address domain and it won't affect people that have already registered with a banned e-mail address.

Yes, you can ban the domain but it still let's you register with the domain name.

Re: Preventing certain email domains from registering.

It shouldn't if you've set "Allow banned e-mail addresses" to no in admin/permissions.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

11

Re: Preventing certain email domains from registering.

Rickard wrote:

It shouldn't if you've set "Allow banned e-mail addresses" to no in admin/permissions.

Yes, that did the trick, thanks.

Time to add an FAQ item to the docs.