my coworker's previous employer blocked all code-sharing and question-and-answer sites for programmers because of a pathological fear of accidental IP dilution. it's a real thing.
I guess contractors are all over the map in how they try to make sure to comply with the "rules", though.