How to ban people permanently, and how to unban people



  • Recently, one of our clan members left us and joined a rival clan, giving each and every one of them the password to our server. They joined and trolled the whole server, kicking people and banning people.
    We have now changed the password and we need to know how to permanently ban them and unban the ones they banned.



  • To unban people stop the server and go to the config file: PCServer-CDWGame.ini <br />find the section [CDW.AOCAccessControl] which is probably at the very bottom and delete the ban entries <br />(If you don’t stop the server the changes wont save)<br /><br />For banning people in game login as an admin then:<br />adminkickban player1 <–console will show a numbered list of all players with “player1” in their name<br />confirmban <number of player from the list> <amount of seconds (0 is perm)> <reason><br /><br />To do the bans via the config file it’s a little more complicated, however if that’s what you want I can type that out also



  • <small>@BlaZe:</small><br><blockquote>To unban people stop the server and go to the config file: PCServer-CDWGame.ini <br />find the section [CDW.AOCAccessControl] which is probably at the very bottom and delete the ban entries <br />(If you don’t stop the server the changes wont save)<br /><br />For banning people in game login as an admin then:<br />adminkickban player1 <–console will show a numbered list of all players with “player1” in their name<br />confirmban <number of player from the list> <amount of seconds (0 is perm)> <reason><br /><br />To do the bans via the config file it’s a little more complicated, however if that’s what you want I can type that out also</blockquote><br />Thank you, that was very helpful :)



  • There are 2 formats the config file will accept:

    1. The new version with timed bans which looks like this

    Bans=(DurationSeconds=0,EnactedTime=(Year=2014,Month=7,DayOfWeek=6,Day=5,Hour=13,Min=56,Sec=49,MSec=332),IPPolicy="DENY,1.161.24.247,NetId=(Uid=(A=15208619,B=17825793)),PlayerName=“Tall, Dark and Deranged”,Reason=“Test”,NetIDAsString=“0x01100001E810AB”)

    The 3 coloured parts are various identifiers for this specific player (PlayerName/Reason mean nothing)

    • The IPPolicy part isn’t really of much use so can be ignored or deleted (I also don’t know how to calculate it out of game as it uses steam sockets or something)
    • The Uid is the players steam ID x2 which ill explain after
    • The NetIDAsString is a hexadecimal of the Uid with 0x01100001 added

    To find the Uid of a player starting with their steam profile:

    • Convert steam profile to steam ID with http://steamidfinder.com/ (result for this example is STEAM_0:1:7604309)
    • The number after the 2nd colon multiplied by 2 –> 7604309 * 2 = 15208618
    • That number plus the number after the 1st colon –> 15208618 + 1 = 15208619
    • This number then becomes the “A” portion in the Uid (The “B” portion is always 17825793, unsure why)
    • eg: NetId=(Uid=(A=15208619,B=17825793))

    To find the NetIDAsString you simply get the A portion of the Uid and convert that to a hexadecimal and add 0x01100001 to the front

    • 15208619 converted to hex using calculator set to programmer = E810AB
    • Add the 0x01100001 to the front –> 0x01100001E810AB

    (The NetIDAsString can be found in game via the “getplayerinfo” command by an admin or any player if bAnyUserCanGetSteamID=true in your config file)

    Set the ban duration to 0 for permanent or since it’s measured in seconds 31449600 for 1 year
    This sort of ban then goes under [CDW.AOCAccessControl] in PCServer-CDWGame.ini, if [CDW.AOCAccessControl] is not in the config file just add it to the bottom

    Bans with IPPolicy/Dayoftheweek/hour/min/msec etc all deleted still work eg:

    [CDW.AOCAccessControl]
    Bans=(DurationSeconds=0,EnactedTime=(Year=2014,Month=7,Day=5,Hour=13),NetId=(Uid=(A=15208619,B=17825793)),PlayerName=“player1”,Reason=“N/A”,NetIDAsString=“0x01100001E810AB”)

    2)The old format of ban is somewhat simpler but I’m not certain it still works and if it does it may get patched out anyway

    IPPolicies=DENY,
    BannedIDs=(Uid=(A=15208619,B=17825793))

    It uses the same Uid as A and B from the other ban format but the ban itself goes in a different location

    Still in PCServer-CDWGame.ini but goes under [Engine.AccessControl], Since these bans have no timed options they are all permanent, they then stack up like this:

    [Engine.AccessControl]
    IPPolicies=ACCEPT;*
    bAuthenticateClients=True
    bAuthenticateServer=False
    bAuthenticateListenHost=True
    MaxAuthRetryCount=8
    AuthRetryDelay=8
    GamePassword=
    AdminPassword=
    IPPolicies=DENY,
    BannedIDs=(Uid=(A=15208619,B=17825793))
    IPPolicies=DENY,
    BannedIDs=(Uid=(A=15208619,B=17825793))
    IPPolicies=DENY,
    BannedIDs=(Uid=(A=15208619,B=17825793))
    IPPolicies=DENY,
    BannedIDs=(Uid=(A=15208619,B=17825793))


Log in to reply