[Include] [WIP] Ban system
#11

Quote:
Originally Posted by Slice
Посмотреть сообщение
How should rangebans be managed? Currently they blend together with the normal bans, but perhaps a bit too much. Whitelist functionality perhaps?
Ban exceptions would be amazing. It's something that should really be a part of SA-MP. You could clone your bans table structure and rename it to exceptions, if an IP exists in the exceptions then don't bother looking it up in bans.

Quote:
Originally Posted by Slice
Посмотреть сообщение
Which approach would be best for DNS look-ups: plugin or external HTTP requests?
I firstly go with what makes it easier for you, the developer, as both have advantages. I believe the HTTP would be the easiest way to go, but obviously would leave you with a delay. A plugin would give you more of an ability to remove that delay, either by using a constant list or having an dynamically increasing cache. However, use of a plugin adds an extra dependency which can be annoying.

Quote:
Originally Posted by Slice
Посмотреть сообщение
If a player has several bans on his range/IP, how should this be handled? Currently GetBanIndex retrieves the 1st ban index, and LiftBan removes whichever ban index was passed to it, and only that. Maybe something simple like sort of a JustMakeItSoThisPoorPlayerCanJoinTheServerIDontCar eHow(ip).
You could have a GetBanIndices(IP:ip, dest[], len = sizeof(dest)) which populates the dest array with all the ban indices that the ip is included in. The function would return the number of ban indices that that IP is a part of (if it's not excepted)
Reply


Messages In This Thread
Ban system - by Slice - 07.11.2011, 20:41
Re: [WIP] Ban system - by Pinguinn - 07.11.2011, 20:42
Respuesta: [WIP] Ban system - by Manuel7284 - 07.11.2011, 21:34
Re: [WIP] Ban system - by Fool - 08.11.2011, 03:09
Re: [WIP] Ban system - by RBTDM - 08.11.2011, 07:41
Re: [WIP] Ban system - by iPLEOMAX - 08.11.2011, 08:16
Re: [WIP] Ban system - by Slice - 08.11.2011, 08:36
Re: [WIP] Ban system - by Simon - 08.11.2011, 08:40
Re: [WIP] Ban system - by Slice - 08.11.2011, 08:52
Re: [WIP] Ban system - by Darius - 08.11.2011, 09:18
Re: [WIP] Ban system - by Simon - 08.11.2011, 09:58
Re: [WIP] Ban system - by Slice - 08.11.2011, 13:52
Re: [WIP] Ban system - by Mr_Scripter - 08.11.2011, 14:15
Re: [WIP] Ban system - by Slice - 10.11.2011, 17:52
Re: [WIP] Ban system - by AndreT - 10.11.2011, 18:10
Re : [WIP] Ban system - by Habdel - 10.11.2011, 18:33
Re: [WIP] Ban system - by Slice - 10.11.2011, 19:01
Re: [WIP] Ban system - by TheArcher - 10.11.2011, 19:13
Re: [WIP] Ban system - by AndreT - 10.11.2011, 20:45
Re: [WIP] Ban system - by Slice - 11.11.2011, 07:02
Re: [WIP] Ban system - by Calgon - 11.11.2011, 14:00
Re: [WIP] Ban system - by Slice - 15.11.2011, 13:33
Re: [WIP] Ban system - by thiaZ_ - 15.11.2011, 15:31
Re: [WIP] Ban system - by Pinguinn - 15.11.2011, 16:09
Re: [WIP] Ban system - by Slice - 15.11.2011, 16:22
Re: [WIP] Ban system - by Chris# - 15.11.2011, 16:54
Re: [WIP] Ban system - by Astralis - 15.11.2011, 19:28
Re: [WIP] Ban system - by Scenario - 16.11.2011, 02:41
Re: [WIP] Ban system - by Slice - 16.11.2011, 05:30
Re: [WIP] Ban system - by Slice - 16.11.2011, 18:58
Re: [WIP] Ban system - by TheArcher - 05.09.2012, 18:25
Re: [WIP] Ban system - by Ada32 - 06.01.2014, 12:44
Re: [WIP] Ban system - by Sojo12 - 11.01.2014, 08:59

Forum Jump:


Users browsing this thread: 5 Guest(s)