I know a lot of scripts handle IP ban, IP range ban etc. I was trying to make a method that would block a user as best as I can. I came up with:
Thanks for ideas.
Head to the “Security” section and find the “IP Address Deny Manager”, then enter a specific IP address or range of addresses to block. Here, the result is more substantive: Anyone trying to access your site from these addresses will get an error message instead of seeing your page.
The easiest way to ban an IP address is by specifying the IP address in the /ban-ip command. You should see the message "Banned IP address 172.16. 5.128 belonging to TheNotWanted" appear in the server console. In this example, the player named TheNotWanted will see the message "Connection Lost.
In plain: you can't.
Some user can block to receive cookies, or even to use a proxy to fake it's IP address, you you just can't make sure some user cant access your application.
An (extreme) option is to force all your legitimate users to install a client certificate and to check it at server-side but, as I said, it's a extreme solution. I don't like to install certificates just to access some site.
I suggest you just let it go; sometime in future your troll will get bored and will look for something more useful to do with his/her time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With