IP blacklist
Posted: 06 Feb 2024, 19:21
Hello,
I have methods to detect login abuse with LoginAssistantComponent. I would like to add the attacker's IP address automatically to the server IP blacklist or to the "Banned Ip Address" section.
I can't use banUser because when the user is logging in I can only access the LoginData which doesn't has a user value even though I know what the IP is using session.getAddress. Is there or will there be a way to add banned IPs automatically from server code? Maybe I can do it somehow with getBannedUserManager?
I have methods to detect login abuse with LoginAssistantComponent. I would like to add the attacker's IP address automatically to the server IP blacklist or to the "Banned Ip Address" section.
I can't use banUser because when the user is logging in I can only access the LoginData which doesn't has a user value even though I know what the IP is using session.getAddress. Is there or will there be a way to add banned IPs automatically from server code? Maybe I can do it somehow with getBannedUserManager?