In my country a lot of people in IT are contractors (not employees) and sometimes these contracts are wild (like not working on anything else during that time and stuff like that).
That kind of clause doesn’t fly in either the UK or US, since it is disguised employment. The definition of a contractor is someone who sets their own rate and hours, and works under their own direction.