Step 1:
Copy the antihack folder into your dayz_server folder.
Spoiler

Step 2:
In \z\addons\dayz_server\init\server_functions.sqf:
Find:
#include "\z\addons\dayz_server\compile\server_toggle_debug.hpp"
Below it, add:
#include "\z\addons\dayz_server\antihack\init.sqf"
Spoiler

Step 3:
Copy the antihack.hpp file into the root of your mission folder.
Spoiler

Step 4:
In description.ext:
Find:
#include "\z\addons\dayz_code\Configs\CfgServerTrader\CfgServerTrader.hpp"
Below it, add:
#include "antihack.hpp"
Spoiler

Step 5:
Copy the Antihack.dll and Antihack.ini files into your server's root folder.
Spoiler

Step 6:
Adjust the settings in the Antihack.ini file to fit your server.
Please keep in mind the following:
- The file-paths for the logs can be whatever you choose. They can be relative or absolute paths.
- The [CheckFiles] section must have two valid paths. Each path should be the same, with only the file varying: The first path must point toward your BattlEye publicvariable.log file. THIS IS VERY IMPORTANT!
- The second path must point toward your BattlEye scripts.log file. THIS IS VERY IMPORTANT!
- All bans issued by the Antihack will be written to this file.
- You will need to have a program automatically reload this file so that the bans are loaded immediately. BEC can be configured to do this with the following command being added to its config file:
Spoiler

Spoiler

Step 7:
In your BattlEye scripts.txt:
Find:
//new2
Below it, add:
1 AH_MEMCHKLOGIN_REQ=
Spoiler

Step 8:
In your publicvariable.txt:
Find:
//new
Below it, add:
1 AHPV_MemChk
Find:
5 !=(remExField|remExFP)
Change it to:
5 !=AHPV_(Ban|Deploy|LOG|MemChk|SafeZoneDH|StaffReq) !=AHPV_Retrieve[a-zA-Z0-9]{15,25} !=(remExField|remExFP)
Spoiler

Installation completed!
It is recommended that you rotate your BattlEye logs every restart. I have included a log rotator in the zip folder for this purpose. It will prevent the file scans from having to scan huge files.