I'm looking for a way to prevent an ArcGIS ModelBuilder tool from running if it's been published to ArcGIS Server. Or, even better, for a way to prevent the tool from being published to Server in the first place.
Ideally, I'd like to find a way to keep the tools from running without a license. This has been discussed in Copy protection via license file for ModelBuilder models? although no specific code is given. If licensing isn't possible, I'd like to keep these tools from being published to Server. Does anyone have ideas for Python coding (or a method directly in ModelBuilder) that could achieve this?