This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
subzero22's profile picture

Stop Program From Running On Server?

Started by subzero22, 17 October 2013 - 03:56 AM
subzero22 #1
Posted 17 October 2013 - 05:56 AM
First off sorry if it's in the wrong area as I'm not sure where to ask this.

I was wondering how to keep a program from running on a server as I'm working on a server and want it protected before I make it public. I've searched google and maybe searched the wrong terms for nothing to show up so is there a possible way for the server or put something into the core cc file to stop a program from running if a computer or turtle tries to run it?

Edit: Oh and can you stop a turtle from placing certain blocks down like tnt for example?
Bomb Bloke #2
Posted 17 October 2013 - 07:10 AM
How would you stop people running certain scripts? You block scripts by name, they only need to change the names and they've bypassed you. You block scripts by hash, and any edits to the script contents will do the same. It should be possible to allow only certain scripts (via modification of the shell), but then you've greatly neutered ComputerCraft as no one may write their own code without every change being manually approved.
subzero22 #3
Posted 17 October 2013 - 07:15 AM
ah ok well what about placing certain blocks? like is there a plugin or a .ini file I can place file that won't allow certain blocks to be placed?

As for the scrips there's really only one script I want stopped. I don't want to place it here as I don't want others to learn about it.

Even if searching for a key word in the script or something will help.
Wojbie #4
Posted 17 October 2013 - 07:23 AM
Problem is that every script can be rewritten to look different but do exactly same thing.
subzero22 #5
Posted 17 October 2013 - 07:25 AM
ya I guess your right hmm.

But still is there a way to stop it from placing a certain block?
amtra5 #6
Posted 17 October 2013 - 08:13 AM
I believe you can set permissions for the "[Computercraft]" player, but don't quote me on that ;)/>
subzero22 #7
Posted 17 October 2013 - 10:40 PM
Oh sweet never thought of that. thanks. Also does it have to be opped or what's the benefits/downsides of it being opped as on every server I've played on it's been opped. tekkit and ftb alike lol.
campicus #8
Posted 17 October 2013 - 10:46 PM
I believe you can set permissions for the "[Computercraft]" player, but don't quote me on that ;)/>

You can definitely do this.