Ban anonymous users

Is it possible to ban anonymous users?

When ever they log in again they get a new resourceid?

I think there is no way to ban an anonymous user.

You can disable anonymous users in general. Force everyone to create a valid account, which you can ban.