Limiting access of a Script/Class

There was a very related discussion topic not that long ago