spam messages attack

Hi everybody,

We got attack on our company jabber with random messages coming from different accounts (of course on another servers).
Is is any module which can verify is it a bot or human?

And one more question - can I

And one more question - can I block messages from specified servers? How to do it?

See

See https://docs.ejabberd.im/admin/configuration/#mod-block-strangers

Also see the example configuration file. Something like this:

acl:
  bad_servers:
    server:
      - "xmpp.zombie.org"
      - "xmpp.spam.com"

access_rules:
  s2s: 
    - deny: bad_servers

s2s_access: s2s
Syndicate content