forbid vs prevent

forbid

verb
  • To disallow; to proscribe. 

  • To oppose, hinder, or prevent, as if by an effectual command. 

  • To deny, exclude from, or warn off, by express command. 

prevent

verb
  • To stop (an outcome); to keep from (doing something). 

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