Wiktionary
blot one's copy book
vb. (context idiomatic English) to damage one's own reputation through bad behavior.