Skip to content

Instantly share code, notes, and snippets.

@XMPPwocky
Created June 30, 2015 06:11
Show Gist options
  • Save XMPPwocky/4b7e3ac880a5c923a1d8 to your computer and use it in GitHub Desktop.
Save XMPPwocky/4b7e3ac880a5c923a1d8 to your computer and use it in GitHub Desktop.
// TF2 hardening config
alias locked "echo Caution: blocked cvar change!"
// Blocks all custom files. Critical.
cl_allowdownload 0; alias cl_allowdownload locked
// Just in case.
cl_downloadfilter none; alias cl_downloadfilter locked
// Blocks uploading custom files. Other players can't see your sprays. Remove this if you care.
cl_allowupload 0; alias cl_allowupload locked
// Enforces that Steam screenshots come through Steam- this way, if screenshots are taken, you at least know about it. Really doesn't do much.
cl_steamscreenshots 1; alias cl_steamscreenshots locked
// Disables HTML MOTDs. Some servers won't let you play with this; find better servers.
cl_disablehtmlmotd 1; alias cl_disablehtmlmotd locked
// "evil" commands
alias host_writeconfig locked
alias play locked
alias jpeg locked
alias screenshot locked
alias plugin_load locked
// this one prevents you from using RCON, but it also keeps malicious servers from banning you from other servers
alias rcon locked
alias _resetgamestats locked
alias bench_start locked
alias bench_end locked
alias bench_upload locked
alias BindToggle locked
alias con_logfile locked
alias envmap locked
// reduce potential info leaks
alias mem_dump locked
alias memory locked
alias linefile locked
alias listdemo locked
alias mem_dumpvballocs locked
alias mem_periodicdumps locked
alias playdemo locked
alias voice_inputfromfile locked
alias voice_writevoices locked
// Prevents bypassing locked cvars by changing aliases
alias alias locked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment