I do not really understand what you want, either because
1. you do not fully say what you need
or
2. i do not understand English well)
if you want to protect your mod in the hands of third persons, then this is a useless undertaking, because cod2 scripts are not compiled and with minimal programming skills, a person will get rid of your protection
it is best to avoid getting your code to outsiders, all protections against all exploits inside the game are included in the libcod, observe safety, be careful when creating HTTTPRedirect so that nothing superfluous gets there, that's all