• ConCommand: Whitelist
    6 replies, posted
Call me stupid, but is it possible to setup some type of concommand whitelist for the dev console? I.E on a Server, players attempting to run their scripts in the dev console won't be able to because they're not whitelisted.
As far as I'm aware you can't intercept C-defined console commands in Lua. You can intercept the creation or execution of Lua-defined commands/cvars however.
So, I cannot restrict lua_openscript but I can restrict something like ulx noclip via a whitelist?
In particular, lua_openscript can be blocked with sv_allowcslua 0. In almost all cases, concommands that you'd want to block are classed as cheats anyway, so as long as you have sv_cheats 0 you don't have much to worry about. Commands that aren't cheats are usually none of the server's business. If a certain concommand is giving you trouble, tell us which one.
You should be able to use a module like slog. I don’t know if that version of the module will work or if you would have to download the soruce and recompile it.
Thank you for the informative response. No command in particular. I just know some scripts that are used for exploiting require the player to use the console while in-game. I have sv_allowcslua set to 0 & !cac anti-cheat. I was simply just wondering if there was anything else I could do help with the cat & mouse game.
Well, I don't know much about cheats to be honest, but you do seem to know that it's a cat & mouse game. There's nothing you can do that can't be bypassed. From what I've heard, !CAC is pretty good, so unless you actually experience cheaters you don't need to supplement it IMO.
Sorry, you need to Log In to post a reply to this thread.