Medieval scribes protected their work by threatening death, or worse.
In the Middle Ages, creating a book could take years. A scribe would bend over his copy table, illuminated only by natural light—candles were too big a risk to the books—and spend hours each day forming letters, by hand, careful never to make an error. To be a copyist, wrote one scribe, was painful: “It extinguishes the light from the eyes, it bends the back, it crushes the viscera and the ribs, it brings forth pain to the kidneys, and weariness to the whole body.”
Given the extreme effort that went into creating books, scribes and book owners had a real incentive to protect their work. They used the only power they had: words. At the beginning or the end of books, scribes and book owners would write dramatic curses threatening thieves with pain and suffering if they were to steal or damage these treasures.
They did not hesitate to use the worst punishments they knew—excommunication from the church and horrible, painful death. Steal a book, and you might be cleft by a demon sword, forced to sacrifice your hands, have your eyes gouged out, or end in the “fires of hell and brimstone.”
“These curses were the only things that protected the books,” says Marc Drogin, author of Anathema! Medieval Scribes and the History of Book Curses. “Luckily, it was in a time where people believed in them. If you ripped out a page, you were going to die in agony. You didn’t want to take the chance.”

Drogin’s book, published in 1983, is the most thorough compendium of book curses ever compiled. A cartoonist and business card designer, Drogin had taken an adult-education class in Gothic letters and became entranced with medieval calligraphy. While researching his first book, he came across a short book curse; as he found more and more, hidden in footnotes of history books written in the 19th century, his collection grew to include curses from ancient Greece and the library of Babylon, up to the Renaissance.
Source: Protect Your Library the Medieval Way, With Horrifying Book Curses – Atlas Obscura