Quote:
Originally Posted by JenniferK
I run a local website, so only people in my community should be interested. I get tons of spammers trying to register daily, so this would be nice for me. But due to problems with a few locals (mainly one crazy who has registered repeatedly under different ips and names, 100+ times), I have all new registrations moderated anyway. It would be nice if registrations from countries I don't whitelist would just not go through at all. That way when I go through the list in moderation I won't have to sort through them at all. Is this possible? Or is this mod not useful to me since all registrations go into the moderation queue anyway?
Thanks!
|
Well you would have to modify the whois.php file a little I would think. I am not testing this at the moment, but this would probably work:
Find this code in whois.php:
Code:
if (!in_array($country, $valid_countries)) { $userdata->set('usergroupid', 4); }
Change to:
Code:
if (!in_array($country, $valid_countries)) { standard_error('Sorry, we are not allowing registrations from your country.'); }