forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 email => Topic started by: taiofmine on April 26, 2011, 06:21:23 pm

Title: Blocking Certain Email Providers.
Post by: taiofmine on April 26, 2011, 06:21:23 pm
I've been getting a lot of junky spam accounts on my gallery, despite the CAPTCHA. Most of them seem to be coming from @mx8168.net. I'd like to completely deny registration from certain email providers.

I did find this (http://forum.coppermine-gallery.net/index.php/topic,16833.0.html) from 2005... but the code I'm supposed to find in register.php isn't in my register.php. I'm using 1.5.12.

Thanks.
Title: Re: Blocking Certain Email Providers.
Post by: Αndré on April 27, 2011, 10:05:53 am
the code I'm supposed to find in register.php isn't in my register.php
The equivalent code in cpg1.5.x is
Code: [Select]
    if (!Inspekt::isEmail($email)) {
        $error .= '<li style="list-style-image:url(images/icons/stop.png)">' . $lang_register_php['email_warning2'] . '</li>';
    }
Title: Re: Blocking Certain Email Providers.
Post by: taiofmine on April 28, 2011, 06:55:47 pm
Thank you so much! I really needed this feature for my gallery.  :D