Change log path

Hi,
I want know how i can change log file because all players IP is stored in the XX.XX.XX.XX/log file and we see better for personnal privacy. :grin:
Thanks

I’ve had the same problem. I got a small script that puts a 0 (binary 0) where the “l” in /log is in the binary, so you no longer can get the logs from outside.

I can not say that I recommend doing this, but it “worked for me” on Linux with the latest server. I have no idea if this breaks anything. So, be careful, don’t use the script if you don’t understand what it does. Backup before use, it might break everything. :slight_smile:

#!/bin/sh

# "Patch" CitizenMP.Server.exe to block /log

if [ "$1" = "" ];then echo "Usage: $0 <filename of CitizenMP.Server.exe>";exit 1;fi
if [ \! -f "$1" ];then echo "Can not find file $1.";exit 1;fi

echo "Creating backup: ${1}.backup"
cp ${1} ${1}.backup || exit 1

MD5=`md5sum $1|cut -d' ' -f1` 
case "$MD5" in
  2d9848ca6b56ef72c65ccf84e8bf7f15)
    /usr/bin/printf '\x00' | dd conv=notrunc of=$1 bs=1 seek=$((0x00251f4d))
    echo "Done..."
    break
    ;;
  *)
    echo "Unknown version. Exiting."
    exit
    ;;
esac