Block Con Command

I would like to be able to block access to a console command, how would I go about doing this?

function BlockCommand()
return false end
concommand.Add(“ThisCommandIsBlocked”, BlockedCommand)

zzaacckk, that’s an unreliable method as the client can just add their command after you’ve blocked it.

And it even got an error

Take a look at gm_sourcenet -
or gm_slog -