Earlier quoted context omitted.
Fortunately when that is your only offer and you don't have a job you can tell the court you signed that under duress. Which is to say courts will not look favorably on the whole thing. Courts tend look unfavorably on any agreement that doens't allow you to earn a living doing what you know how to do. As such non-competes as bad as they are are very hard to actually enforce in court. The threat of going to court thou…
The problem with noncompetes isn't that you'll get dragged into court over them, it's that old employer makes a call to new employer and you get shown the door. Now you have to sue somebody to get your rights upheld.
Obviously that's mostly going to work for people with major leverage in the job market, but there have been some notable success stories lately of people not getting sacked.