Restrict registration by ip/net

How I can restrict registration but not login by IP address or network/mask?

Hello! I need to do the same

Hello!

I need to do the same thing.
Is it possible?

I think it is not possible

I think it is not possible to restrict by IP who can send account registration requests.

A possible solution is:

  1. Create a page in PHP that allows to register accounts.
  2. That page in PHP creates the accounts in ejabberd using a method like ejabberdctl command line calls, or XML-RPC calls.
  3. Disable in ejabberd the module mod_register
  4. Configure your web server to restrict access to your page by IP
Syndicate content