Client access restrictions

Is it possibile to prevent unknown host (for example not listed in the DNS or not listed in a special file or whatever) to join the chat?

In particular, I would like that an authorized user could access the system only from an authorized host
the same user who'd try to connect to the system from an unauthorized host would get an error message

Thanks in advance
Giuseppe

mod_filter

mod_filter can do that. Patch your server, recompile, configure and restart.

The configuration would look something like:

{acl, secret_chatroom, {user, "secret", "conference.example.com"}}.
{acl, authorized_hosts, {server, "example.com"}}.
{acl, authorized_hosts, {server, "example2.com"}}.

{access, mod_filter, [{allow, authorized_hosts},
                      {restrict, all}]}.
{access, restrict, [{deny, secret_chatroom},
                    {allow, all}]}.

Unauthorized users wouldn't get an error message, though; stanzas are simply dropped.

Syndicate content