&check_maint;
-unless (@local_domains or @local_rdomains) {
+unless (@local_domains and @local_rdomains) {
html_error($error,
"No domains for registrations are defined.",
"Contact $ENV{SERVER_ADMIN} for details."
);
}
+unless (@local_hosts and ipin($ENV{REMOTE_ADDR}||0,@local_hosts)) {
+ html_error($error,
+ "Registrations from your host ($ENV{REMOTE_ADDR}) are not allowed.",
+ "Contact $ENV{SERVER_ADMIN} for details."
+ );
+}
+
# look for CGI parameters
our %PARAM;
&parse_parameters;