How to Add a Password to Your DayZ Server
Adding a join password restricts access to your DayZ server so only players who know the password can connect. The password is configured in the same file used for other server settings. You may also want to change your server name to signal that the server is private.
Steps
Step 1: Log into the Game Control Panel and navigate to your DayZ service.
Step 2: Stop your server if it is running.
Step 3: Click Configuration Files, then click Text Editor next to serverDZ_By_HostHavoc.cfg.
Step 4: Locate the following line:
password = "";
Step 5: Add your desired password between the quotation marks. Example:
password = "mypassword";
Step 6: Click Save, then start your server.
Tip: To remove the password later, clear the value so the line reads
password = "";again and save.