[How-to] Kick banned IPs before they load


#1

I’ve noticed that there’s a lot of demand for IP banning/white-listing. Mr.Scammer has a solution for this but I’ve seen complaints that “banned” IPs need to load the map and resources first before they are being kicked. So I forged a little script for you guys to update your white-/black-listing resources with.

http://pastebin.com/UEvYVqYy

You can also shorten the code a bit with the following snippet, though I don’t know how consistent that “~600ms” delay is so you’ll have to do the science on that yourself.

http://pastebin.com/jY7wKfkK