illegal vs prohibited

illegal

adj
  • Forbidden by established rules. 

  • Contrary to or forbidden by law, especially criminal law. 

  • Breaching certain enacted statutes of positive law; not lawful, not legal (cf. immoral, unethical) 

  • Being or doing something illegally. 

  • Being an illegal immigrant; residing in a country illegally. 

  • Totally fictitious, and often issued on behalf of a non-existent territory or country. 

noun
  • An illegal immigrant. 

  • Contraband, esp. illegal substances such as drugs. 

  • A spy working abroad illegally and undercover, without visible ties to his or her country’s authorities. 

prohibited

adj
  • Forbidden; unallowed 

How often have the words illegal and prohibited occurred in a corpus of books? (source: Google Ngram Viewer )